Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. package {
  2. import flash.events.Event;
  3. import flash.display.MovieClip;
  4.  
  5. public class liv extends MovieClip
  6. {
  7.  
  8. public function liv() {
  9. this.x = 530
  10. this.y = 185
  11. this.scaleX = 0.60
  12. this.scaleY = 0.60
  13.  
  14. stage.addEventListener (Event.ENTER_FRAME, UpdateFunksjon) ;
  15.  
  16.  
  17. }
  18.  
  19. public function UpdateFunksjon (e:Event) : void
  20. {
  21. if (liv == true)
  22. {
  23. liv.gotoAndStop ("shiny")
  24. }
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement