running out of ideas here, although i dont know why externalinterface didnt work for you, unless you are not allowed to touch the code of the flex swf and recompiling it to expose the vars inside to the wrapping exe. we did that in a VB-C++ and flex project - i had thought it will work for swfkit.
anyway, i dont know if this will help but in case you dont know, there is a way similar to using _root in a flash swf: MovieClip(mx.core.Application) the movieclip casting is just so the compiler wont nag you. Im not sure if that's what you really need, but it might help point to the right way :P May the force be with you :D --- stevekpeak8 <[EMAIL PROTECTED]> wrote: > I really appreciate the good ideas. > > I tried this approach, and it (unfortunately) didn't > work. > > What I really need, however is merely to be able to > find out how to > correctly notate the SCOPE of variables in the SWF, > and whether I > need to do anything specific to EXPOSE them in the > SWF file. > > Thanks, > > Steve > > > --- In [email protected], leds usop > <[EMAIL PROTECTED]> wrote: > > > > have you tried using FABridge or externalinterface > > instead? that is assuming of course swfkit > supports > > javascript. > > > > > > --- stevekpeak8 <[EMAIL PROTECTED]> wrote: > > > > > Thanks for the response, > > > > > > I'm not really trying to go between AVM2 and > AVM3 > > > for my actual > > > product. Yes, opening a Flex app in Flash > AMOUNTS > > > to doing so, but > > > that's just to try to get a better view of how > to > > > access the AVM3 > > > variables. > > > > > > All I'm trying to do is to gain access to some > of > > > the AVM3 variables > > > in my Flex swf so that my EXE wrapper can > > > communicate with the SWF. > > > > > > BTW... Are there any utilities available that > would > > > let me peer > > > inside an AVM3 SWF? > > > > > > Thanks in Advance. > > > > > > Steve > > > > > > > > > --- In [email protected], leds usop > > > <rptlead@> wrote: > > > > > > > > You cant access avm2(as2 swfs) scripts loaded > > > within > > > > avm3 (as3 swfs -->flex swfs) and vice versa. > Well > > > at > > > > least not directly. If you forcibly load an > as3 > > > swf in > > > > flash 8, certainly you will not be able to see > the > > > > scripts/ vars within except perhaps the > version > > > var. > > > > Same thing goes with loading as2 swfs within > as3, > > > > unless you are using the as2 swf as assets for > > > > skinning and the like, you will lose the > > > > script-enabled functionalities in that as2 > swf. > > > You > > > > can check out the docs for more details about > > > this. > > > > > > > > You may want to take a look at FlashInterface > > > here: > > > > > > > > > > http://www.flashextensions.com/products/flashinterface.php > > > > > > > > although i think you will have to change which > > > loads > > > > which... anyway, it's better than not being > able > > > > to use your as2 functionalities entirely - > unless > > > you > > > > port all of them into as3 :) I hope that > helps. > > > Best > > > > of luck! > > > > > > > > -leds > > > > > > > > --- stevekpeak8 <stevek@> wrote: > > > > > > > > > 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 > > > > > <claus@> 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: > > > > > > > === message truncated === ____________________________________________________________________________________ The fish are biting. Get more visitors on your site using Yahoo! Search Marketing. http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php

