home *** CD-ROM | disk | FTP | other *** search
- package game
- {
- import flash.display.MovieClip;
- import flash.events.Event;
- import flash.events.MouseEvent;
- import flash.utils.clearTimeout;
-
- [Embed(source="/_assets/assets.swf", symbol="game.SplashMovie")]
- public class SplashMovie extends MovieClip
- {
-
-
- private var firstPlay:Boolean = false;
-
- public var warningWords:MovieClip;
-
- public var skipBtn:skip_btn;
-
- private var tm:uint = 0;
-
- public var skipButton:MovieClip;
-
- public var __LOGO:MovieClip;
-
- public var LOGO:MovieClip;
-
- public var warning:MovieClip;
-
- public var LOGO1:MovieClip;
-
- public function SplashMovie()
- {
- firstPlay = false;
- tm = 0;
- super();
- addFrameScript(509,frame510,565,frame566,603,frame604);
- this.x = 320;
- this.y = 240;
- warningWords = this.getChildByName("warning") as MovieClip;
- skipButton = this.getChildByName("skipBtn") as MovieClip;
- warningWords.visible = false;
- this.addEventListener(Event.ENTER_FRAME,checkMovie,false,0,true);
- skipButton.addEventListener(MouseEvent.CLICK,skipMovie,false,0,true);
- }
-
- private function checkMovie(param1:Event) : void
- {
- if(this.currentFrame >= this.totalFrames)
- {
- if(firstPlay)
- {
- firstPlay = false;
- }
- this.removeEventListener(Event.ENTER_FRAME,checkMovie);
- BroadCaster.getInstance().run("onSplashDone","");
- stop();
- }
- }
-
- internal function frame604() : *
- {
- LOGO1.gotoAndStop(Language.branding_nr);
- }
-
- internal function frame566() : *
- {
- LOGO.gotoAndStop(Language.branding_nr);
- }
-
- private function removeWarning() : void
- {
- try
- {
- clearTimeout(tm);
- }
- catch(Err:Error)
- {
- }
- warningWords.visible = false;
- }
-
- internal function frame510() : *
- {
- __LOGO.gotoAndStop(Language.branding_nr);
- }
-
- public function skipMovie(param1:MouseEvent = null) : void
- {
- this.removeEventListener(Event.ENTER_FRAME,checkMovie);
- BroadCaster.getInstance().run("onSplashDone","");
- stop();
- }
- }
- }
-