Posted By

sebastianassaf on 08/15/08


Tagged

as3


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

THEPWN3R
themill
tspitzr


Lynda.com - AS3 - Using a loop to generate instances of a class


 / Published in: ActionScript 3
 

Used to place instances of symbols onto stage with AS

  1. var boarder:mcBoarder;
  2. var boarderX:Number = 127;
  3. var boarderY:Number = 271;
  4. var boarderR:Number = 0;
  5.  
  6. for(var i:Number = 0; i < 6; i++)
  7. {
  8. boarder = new mcBoarder();
  9. addChild(boarder);
  10. boarder.x = i * 75;
  11. boarder.x = boarderX;
  12. boarder.y = boarderY;
  13. boarderY -= 75;
  14. boarderX += 75;
  15. boarderR -= 45;
  16. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: sebastianassaf on August 15, 2008

Used to place instances of symbols onto stage with AS

You need to login to post a comment.