Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Skip_btn.addEventListener(MouseEvent.CLICK, SkipToGoToScene);
- function SkipToGoToScene(event:MouseEvent):void
- {
- MovieClip(this.root).gotoAndPlay(1, "Opening");
- }
- //Skip_btn functions
- Skip_btn.addEventListener(Event.ENTER_FRAME, skipDisable);
- function skipDisable(event:Event) {
- if (this.currentFrame < 213)
- { Skip_btn.mouseEnabled = false;
- } else {
- Skip_btn.mouseEnabled = true;
- }
- if (this.currentFrame > 213) {
- Skip_btn.removeEventListener(Event.ENTER_FRAME, skipDisable);
- }
- }
- this.root.getChildByName("Skip_btn").mouseEnabled = true;
- MovieClip(this.root).currentFrame
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement