Claus,

Thanks very much for your reply.

Unfortunately, I can't do this the way you suggest, as I'm not 
operating in a typical WEB environment.  I'm in an .EXE environment 
using a tool called SWFKit.

Here's the thing...  If I take my output SWF, and load it from within 
Flash Professional 8, I can "list variables" from the debug menu. 
Using most SWFs that are created in Flash itself, I CAN gain 
visibility to many/all of the variables defined within Flash.  
However, from a SWF created in FLEX, I can only see ONE variable:

Level #0:
Variable _level0.$version = "WIN 8,0,22,0"

And I AM able to see this variable from within the SWFKit environment.

There's GOT to be a way to mark other variables in Flex to make them 
appear in this exported list of variables, don't you think?  I'm 
hoping that someone at Adobe can help me with an MXMLC trick to 
export variables to the Flash'variables' list.

ANY HELP WILL BE GREATLY APPRECIATED.

Thanks AGain, Claus
--- In [email protected], Claus Wahlers <[EMAIL PROTECTED]> wrote:
>
> 
> > When I define a VAR in Flex, I know that the MXML compiler turns 
that 
> > into a FLASH variable in the output SWF…  But What DOMAIN is that 
> > variable listed in (for example _root in a .FLA)?
> > 
> > I need to know this because we're using SWFKit to turn a SWF into 
an 
> > EXE, and I need the domain in order to get/set Flex Variables 
from 
> > with in the SWF wrapper.
> 
> You need to go the other way round: At startup of your application, 
grab 
> the LoaderInfo.parameters object which contains the variables 
passed to 
> your SWF from the outside, something like this:
> 
> var flashVars:Object = root.loaderInfo.parameters;
> var myFlashVar:String = flashVars['myFlashVar'];
> 
> Cheers,
> Claus.
> 
> -- 
> claus wahlers
> côdeazur brasil
> http://codeazur.com.br/
> http://wahlers.com.br/claus/blog/
> 
> --
> READ CAREFULLY. By reading this email you agree, on behalf of your 
> employer, to release me from all obligations and waivers arising 
from 
> any and all NON-NEGOTIATED agreements, licenses, terms-of-service, 
> shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, 
> non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I 
have 
> entered into with your employer, its partners, licensors, agents 
and 
> assigns, in perpetuity, without prejudice to my ongoing rights and 
> privileges. You further represent that you have the authority to 
release 
> me from any BOGUS AGREEMENTS on behalf of your employer.
>


Reply via email to