Created
July 2, 2011 09:02
-
-
Save yoshimax/1059875 to your computer and use it in GitHub Desktop.
Progression SerialList
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var list:SerialList = new SerialList(); | |
| for (var i:int = 1; i<=3; i++) { | |
| var className:String = "Item" + i + "Btn"; | |
| var customClass:Class = getDefinitionByName( className ) as Class; | |
| itemsArray[i] = new customClass(); | |
| list.addCommand( new AddChild(container, itemsArray[i]) ); | |
| } | |
| list.execute(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment