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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -