home *** CD-ROM | disk | FTP | other *** search
- class signal extends MovieClip
- {
- var clickN;
- var sizeN;
- var moveInter;
- var suVis = "no";
- function signal()
- {
- super();
- }
- function come()
- {
- this._xscale = 20;
- this._yscale = 20;
- this._x = 310;
- this._y = 155;
- this.clickN = 3;
- this.gotoAndStop(this.clickN);
- }
- function moveF(mc)
- {
- clearInterval(mc.moveInter);
- mc.gotoAndStop(1);
- }
- function onEnterFrame()
- {
- if(_root.playIng == "no")
- {
- this.removeMovieClip();
- }
- if(_root.speedN > 0)
- {
- if(this._y < 301)
- {
- this.sizeN = 20 + 0.53 * (this._y - 150);
- }
- else
- {
- this.sizeN = 100;
- }
- this._yscale = this._xscale = this.sizeN;
- this._x += _root.speedN / 1.5;
- this._y += _root.speedN;
- }
- if(this.suVis == "no")
- {
- if(this.clickN != 1)
- {
- if(this.clickN != 2)
- {
- if(this.clickN == 3)
- {
- if(this._y > 230 && this._y <= 260)
- {
- if(_root.speedN == 0)
- {
- trace("섰음 " + this._y + " , " + this);
- _root.user_mc.j100.gotoAndPlay(2);
- this.moveInter = setInterval(this.moveF,500,this);
- _root.gameSocreF(100);
- this.suVis = "yes";
- }
- }
- else if(this._y > 240)
- {
- if(this.suVis = "no")
- {
- trace("안섰음 " + this._y + " , " + _root.user_mc._y);
- this.suVis = "yes";
- }
- }
- }
- }
- }
- }
- if(this._y > 320)
- {
- this.removeMovieClip();
- }
- }
- }
-