Action Script - how to access label component defined in mxml file within action script class method

Posted by buddhi on Stack Overflow See other posts from Stack Overflow or by buddhi
Published on 2010-03-25T13:02:33Z Indexed on 2010/03/25 13:13 UTC
Read the original article Hit count: 663

Filed under:
|

I have a label component in a mxml file like below

<mx:Label x="700" y="409" text="Label" id="lble" width="131" height="41"/>

if i want to access it and change its text content within a method defined in action script class that i have written, how to do it?

lble.text="test";

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about mxml