If you give your component an id when you instantiate it, you can use that id as a reference into the component’s public members:

 

In mxmk:

<MyComponent id=”mycomp” …/>

 

In AS:

mycomp.init();

 

Tracy

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of keithtucci
Sent: Wednesday, August 30, 2006 12:07 AM
To: [email protected]
Subject: [flexcoders] how to call a method in a custom mxml component

 

how do i go about calling a method in a custom mxml component from the
main applciation...

currently in my mxml component, 'creationcomplete' calls my init
method, but it only fires one time, when the applciation loads, but i
need to fire that init method at other times, after the application has
already loaded...

any help will be greatly appreciated...

thanks

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to