/ Published in: ActionScript 3
Simple but useful
Expand |
Embed | Plain Text
//Create a movieclip and tick export for actionscript in the creation dialog. Give it a class. That class is how you identify it in your code: //Here, the movieclip's class is Button var _button:Button = new Button(); function CreateButton() { this.addChild(_button); }
Comments
Subscribe to comments
You need to login to post a comment.

Note that the var name and the class name cannot be the same otherwise AS3 will throw a type error.