Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. function PrepareImages() {
  2. images[0] = this.addChild(new Image1());
  3. images[1] = this.addChild(new Image2());
  4. images[2] = this.addChild(new Image3());
  5. images[3] = this.addChild(new Image4());
  6. images[4] = this.addChild(new Image5());
  7. images[5] = this.addChild(new Image6());
  8. images[6] = this.addChild(new Image7());
  9. images[7] = this.addChild(new Image8());
  10. images[8] = this.addChild(new Image9());
  11. images[9] = this.addChild(new Image10());
  12. for (var i: int = 0; i < ImageCount; i++) {
  13. images[i].addEventListener(MouseEvent.MOUSE_OVER, HighlightImage);
  14. images[i].tag = i;
  15. }
  16. }
  17. PrepareImages();
  18.  
  19.  
  20. function HighlightImage(e:MouseEvent):void {
  21. HighlightedImage = e.target.Tag;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement