If you plan to bind to the reference in the sub-component(class), you will need to type the variable as the application file name(its class name).  Typed as “Object”, the flex compiler won’t be able to set up the event listener/dispatchers properly.

 

I know that this interferes with your re-usability.

 

Tracy

 


From: [email protected] [mailto:[email protected]] On Behalf Of Marc Teichtahl
Sent: Monday, October 10, 2005 12:27 PM
To: [email protected]
Subject: RE: [flexcoders] Accessing the main Application Class

 

Abdul,

 

Thanks for your quick reply

 

I am passing in "this" in the Application intialize call and keeping this as an Object in the class.

 

----------------------------
Marc Teichtahl
XB Networks BV
Director, Engineering

Phone:  +31 (0)36 546 24 73
Mobile: +31 (0)65 582 47 89
[EMAIL PROTECTED]

http://www.xb.nl

 

 


From: [email protected] [mailto:[email protected]] On Behalf Of Abdul Qabiz
Sent: maandag 10 oktober 2005 18:16
To: [email protected]
Subject: RE: [flexcoders] Accessing the main Application Class

mx.core.Application.application is reference to application.

 

How are you trying to access it?

 

-abdul

 


From: [email protected] [mailto:[email protected]] On Behalf Of Marc Teichtahl
Sent: Monday, October 10, 2005 9:31 PM
To: [email protected]
Subject: [flexcoders] Accessing the main Application Class

 

Dear all,

 

I would like some advise as to the best method for accessing the main Application class from an external AS.

 

I am trying to achieve a base class that is used by the main application class to supply authentication etc and to at runtime update components and containers in the main Application class. To date, I have had no success.

----------------------------
Marc Teichtahl
XB Networks BV
Director, Engineering

Phone:  +31 (0)36 546 24 73
Mobile: +31 (0)65 582 47 89
[EMAIL PROTECTED]

http://www.xb.nl

 

 

 

Op dit e-mailbericht is een disclaimer van toepassing, welke te vinden is op http://www.xb.nl/disclaimer.html



--
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




Reply via email to