Vin
Vin

Reputation: 105

Creation and positioning of dynamic buttons in as3 inside a movie clip

HI Am NEW TO as3 , can any one help me regarding creation of dynamic buttons and assign click events, please view the attachment picture to know my requirements..

    http://i39.tinypic.com/9gkmds.jpg

Pls guide me done this functionality in as3.

Thanks

Upvotes: 0

Views: 1176

Answers (1)

Iain
Iain

Reputation: 9442

Here's a start:

for (var i:int = 0; i < 8; i++)
{
   var button:SimpleButton = new MyButton(); //whatever the library linkage of your button is
   addChild(button);
   button.x = i * 100;
}

Upvotes: 1

Related Questions