Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package {
- import flash.display.*;
- import flash.events.*;
- public class Main extends MovieClip{
- public var safe:Boolean = false;
- public function Main() {
- addEventListener(Event.ENTER_FRAME,onFrame);
- win.alpha = 0;
- }
- public function onFrame(e:Event){
- if(start.hitTestPoint(mouseX,mouseY)){
- safe = true;
- }
- if(safe){
- if(end.hitTestPoint(mouseX,mouseY)){
- win.alpha = 1;
- }
- if(bad.hitTestPoint(mouseX,mouseY,true)){
- safe = false;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement