Hi vijay,

If you're saying you want to be able to get to a component that's located in the MXML file from your ActionScript Class, you could also do it like this:


//some useful imports
import mx.controls.TextArea; //import the component into the class
import mx.core.Application; //for communicating with the main app

//create a variable to reference the component
private var _ta:TextArea;

//define the variable inside your constructor function
_ta = Application.application.myTA; //myTA being the id you gave the component in the MXML


And from there you can communicate from the class to the component. HTH...

P E A C E

Hasan
hasan.otuome.com
www.marxmedia.net
thesourcecode.org
Adobe Certified Professional (Flash MX2004 Developer)



On 9/4/06, viju kumar <comeinsidetochat@ yahoo.com> wrote:

Hello Group,

We need to access the component defined in the mxml
into the actionscript file. But we are unable to get
the access of the component in class file.

How can we access the controls in the class file from
mxml file.

Please help.

Thank You
vijay

__._,_.___

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