flex - Calling one MXML from AS code -
i creating air application, mainapp.mxml has button , vbox. when clicked on button, child.mxml should displayed in vbox.
would appreciate if code in flex , easy me modify tags.
can me how please! in advance
add click handler button, in handler create instance of child , add vbox:
<mx:button id="mybutton" label="my button" click="mybutton_clickhandler(event)"/>
and handler:
function mybutton_clickhandler(event:event):void { var child:child = new child(); myvbox.addchild(child); }
Comments
Post a Comment