Alex had pointed out something similar I was doing - that I needed to import mx.Application in the <mx:Script> area.
On Sep 14, 2007, at 2:08 PM, neilwcameron wrote: > Thats just the thing, I'm accessing it from another component. :( > > I'm trying a few things now to try and get the instantiated class and > call the functions from that...on it goes. > > --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: >> >> You shouldn't need Application.application unless you are >> accessing from >> another component/document. >> >> >> >> ________________________________ >> >> From: flexcoders@yahoogroups.com >> [mailto:[EMAIL PROTECTED] On >> Behalf Of neilwcameron >> Sent: Friday, September 14, 2007 8:02 AM >> To: flexcoders@yahoogroups.com >> Subject: [flexcoders] SWFLoader Issue >> >> >> >> Hi Guys, >> >> In my application I have a line of code that is used to set up my >> components: >> >> Application.application.mainDisplay.createComponentsFromDescriptors >> (true >> ); >> >> But when I try to load my app with SWFLoader for testing purposes, it >> fails because on the SWFLoader app, there is no such component as >> mainDisplay of course. >> >> Is there anyways around this? I've tried quite a few things but to no >> avail. Any ideas? >> >> Thanks >> >> Neil >> > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders% > 40yahoogroups.com > Yahoo! Groups Links > > >