In my Main application I used label (like id=firstname) so we can use in main used firstname.text for databinding. But I have created canves custom component and load in main application using viewstack.
In canves custom component how can I Bind label(id=firstname).
I tried:
var username:string = firstname.text but not show undefine firstname.
How can I access all label and component in Main application to custom application. Please refer any URL.
In short, you use binding. Add a property called
firstnameto CustomComponent.mxml and bind it to yourfirstnameTextbox:Then, you bind the
firstnameto a value in your main.mxml:Now, whenever you change
_firstnamein Main.mxml, it will automatically filter up to the textbox in your custom component.