jan_flanders

Untitled

May 5th, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var b:Block = new Block() ;
  2. b.stop();
  3. b.addEventListener(MouseEvent.CLICK, onClick);
  4. function onClick(event:MouseEvent):void
  5. {
  6.     trace(event.currentTarget.name);
  7. }
  8. world.addChild(b);
  9. var k = Math.random();
  10. if (k<0.4)
  11. {
  12.     b.gotoAndStop("xda");
  13.     b.name = "bX:" + 1 + "|bY:" + 2+"|bt:"+b.currentLabel;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment