flash - create a FlashBuilder4 mxml class instance using ActionScript? -


I have defined GUI interfaces using MXML. Considering these MXML objects, it has been compiled in my application, what is the procedure to instantiate these objects using the action script?

 myFoo: Mxml2ActionScriptClass ("FOO.mxml") = New AutomagicalMXMLFactory ("FOO .mxml"); MyFoo.addEventListener (etc etc) this.AddChild (myFoo); 

Yes that file name is for your MXML class, the class name that you use.

Therefore, if you have an MXML document by the name of "Foo.mxml", then that file will be classified as "square" with the keyword "foo" in the action sequence of any class Can start.

  var myFoo: Foo = new Foo (); Whatever.addChild (myFoo);  

Comments

Popular posts from this blog

php - multilevel menu with multilevel array -

c# - TypeConverter in propertygrid only converts from string, not to -

jQuery UI: Datepicker month format -