Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package{
- import flash.display.*;
- import flash.text.*;
- import flash.events.*;
- public class validarusuarios extends MovieClip{
- public var id:String = 'Juan';
- public function validarusuarios(){
- gotoAndStop(1);
- var boton1:botonentrar = new botonentrar();
- boton1.x = 100;
- boton1.y = 100;
- addChild(boton1);
- boton1.addEventListener(MouseEvent.CLICK, entrada)
- }
- public function entrada(event:MouseEvent){
- gotoAndStop(1); }
- public function entrar(){
- gotoAndStop(2);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement