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";
The ID attribute makes it a private variable within the class or component, so
is just fine.
You are talking about doing this within the same component or class, right? If not you should bind the value to a variable and use getters and setters, like so
and then