Thanks for answering Alex. At least External Interface works, so I'll just build on that. I'll do a test to see what the difference in speed is with AS2's SetVariable. Not that it matters since we don't have any options, but hey, curiosity ain't a sin, right? I'll post my findings later this week.
Bart 2007/9/24, Alex Harui <[EMAIL PROTECTED]>: > > setVariable is not supported in AS3. It is reflected back to the JS > layer, so getVariable works, but you can't get to it from AS3. I don't know > if EI is still that much slower, so give it a try. The last person who ran > into this just make a JS wrapper from setVariable to EI. > > > ------------------------------ > > *From:* [email protected] [mailto:[EMAIL PROTECTED] *On > Behalf Of *Bart Wttewaall > *Sent:* Monday, September 24, 2007 2:58 AM > *To:* [email protected] > *Subject:* [flexcoders] SetVariable vs External Interface & AS3's root > > > > Hi List, > > I made an application in AS2 a while ago that got fed values externally by > LUA code. There were 2 ways of doing this: by making use of External > Interface, or by using flashobject.SetVariable (prop, value). > > After some tests it became clear that the use of External Interface was as > much as 15x slower than setting a property on the _root with SetVariable, so > I implemented a method of registering those _root properties and watched > them with Object.watch(), dispatching an event whenever the value changed. > > Now we're ready to port the application to AS3 (Flex 2), but since there > is no more _root I'm at a loss of where the properties are set in the > application. I haven't found them in Application.application.root. They > ARE being set, since after setting a property's value, I can access it using > GetVariable. So where can I access it from within my application? I'd like > to listen to incomming data in this way. If possible I woulnd't want to use > the External Interface, unless you tell me the '15x slower issue' has been > resolved. > > I thought that the LoaderInfo class had something to do with it, but it > seems to only return parameters that are set with the flashobject at > initialization... > > Thanks in advance, > > Bart Wttewaall > > >

