Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. import flash.display.MovieClip;
  2. import flash.events.Event;
  3. import flash.events.MouseEvent;
  4.  
  5. var back:MovieClip = new bg();
  6. var body:MovieClip = new hero_core();
  7. var RegistrationFail:MovieClip = new Reg_Fail();
  8.  
  9. back.x = stage.stageWidth/2;
  10. back.y= stage.stageHeight/2;
  11. addChild(body);
  12. addChild(back);
  13. addChild(Register);
  14. Register.x = 394
  15. Register.y = 512
  16.  
  17. stage.addEventListener(Event.ENTER_FRAME, loop);
  18. Register.addEventListener(MouseEvent.CLICK, Registration);
  19. Login.addEventListener(MouseEvent.CLICK, Login);
  20.  
  21. function loop(e:Event):void {
  22. }
  23.  
  24. function Registration(evt:MouseEvent):void {
  25. addChild(RegistrationFail);
  26. RegistrationFail.x= stage.stageWidth/2;
  27. RegistrationFail.y= stage.stageHeight/2;
  28. trace("Registration Failed")
  29. }
  30.  
  31. function Login(event:MouseEvent):void {
  32. if (Username1.text == Mitsukaru) {
  33. trace("Yes")
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement