Thanks for the reply Igor, The code is in the createChildren() method. As I said, if the loader is created using the createClassObject(), everything works fine. Maybe something related to the externalContent class or the "initialized" field? I´m confused!
Marcelo. Igor V. Sadovskiy wrote: >Hello Marcelo. > >Are you trying to access and initialize "cont" Loader instance from >ImageViewer class constructor? Try to override createChildren() method and >move initialization code to. > >Regards, >Igor > >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On >Behalf Of Marcelo de Moraes Serpa >Sent: Tuesday, January 24, 2006 3:12 AM >To: [email protected] >Subject: [osflash] component on stage X createClassObject() > >I´m trying to accomplish a very simple thing but for some weird reason >its not working... > >I have a MovieClip symbol on the library its linked to the imageViewer >class, which extends UIComponent. This symbol has a Loader component >instance named "cont" on its stage, its easiear to do this way and then >script the rest if needed. > >Even though it appears to be there when I run the test movie app, I just >can´use any of the properties or methods of the cmp - they don´t work. >The scenario changes if I create this Loader component at runtime using >createClassObject(), then everything works fine. I wonder why this >behaviour? > >Thanks, > >Marcelo. > > > > > >_______________________________________________________ >Yahoo! doce lar. Faça do Yahoo! sua homepage. >http://br.yahoo.com/homepageset.html > > > >_______________________________________________ >osflash mailing list >[email protected] >http://osflash.org/mailman/listinfo/osflash_osflash.org > > >_______________________________________________ >osflash mailing list >[email protected] >http://osflash.org/mailman/listinfo/osflash_osflash.org > > > _______________________________________________________ Yahoo! doce lar. Faça do Yahoo! sua homepage. http://br.yahoo.com/homepageset.html _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
