Creating and positioning dynamic buttons in as3 inside a movie clip

HI AM NEW TO as3, can anyone help me to create dynamic buttons and assign click events, please view the application photo to know my requirements.

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

      

Pls help me accomplish this function in as3.

thanks

0


a source to share


1 answer


Here starts:



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;
}

      

+1


a source







All Articles