home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 127
/
MOBICLIC127.ISO
/
mac
/
DATA
/
DSS127
/
DSS127_03
/
DSS127_03.swf
/
scripts
/
frame_480
/
DoAction.as
Wrap
Text File
|
2010-09-13
|
4KB
|
130 lines
gereTextes.masqueLM({codeLM:"LM06_02"});
gereTextes.masqueLM({codeLM:"LM06_03"});
gereTextes.masqueLM({codeLM:"LM06_04"});
swfStocker["A_" + gModuleName + "_WIKI_FUTUR"]._visible = 0;
stop();
if(getPos(listPlanets,0) == -1)
{
gotoAndStop("06_FIN_A");
}
else
{
nbDrags = 1;
listCible = ["ZONE_06_02","ZONE_06_03","ZONE_06_04"];
dragClip = "ZONE_06";
var i = 1;
while(i <= nbDrags)
{
this[dragClip + "_" + gimme2digits(i)].pDrag = i;
this[dragClip + "_" + gimme2digits(i)].onRollOver = function()
{
this.useHandCursor = 0;
if(_root.drag == undefined)
{
this.useHandCursor = 1;
gereCursor(3);
this.gotoAndStop("E2");
}
};
this[dragClip + "_" + gimme2digits(i)].onRollOut = function()
{
if(_root.drag == undefined)
{
gereCursor(1);
this.gotoAndStop("E1");
}
};
this[dragClip + "_" + gimme2digits(i)].onPress = function()
{
if(_root.drag == undefined)
{
gereCursor(1);
this.gotoAndStop("E1");
_root.drag = this.pDrag;
this.origX = this._x;
this.origY = this._y;
this.diffX = _root._xmouse - this._x;
this.diffY = _root._ymouse - this._y;
this.origDepth = this.getDepth();
this.swapDepths(15050);
}
};
this[dragClip + "_" + gimme2digits(i)].onRelease = this[dragClip + "_" + gimme2digits(i)].onReleaseOutside = function()
{
this.swapDepths(this.origDepth);
if(_root.foundDrop == undefined)
{
joueBruitage({nomSon:"B_NO"});
this._x = this.origX;
this._y = this.origY;
}
else
{
listPlanets[foundDrop] = 1;
switch(foundDrop)
{
case 0:
_root.gotoAndStop("06_02_A");
break;
case 1:
_root.gotoAndStop("06_03_A");
break;
case 2:
_root.gotoAndStop("06_04_A");
}
}
_root.drag = undefined;
};
this[dragClip + "_" + gimme2digits(i)].onEnterFrame = function()
{
if(_root.drag == this.pDrag)
{
this._x = _root._xmouse - this.diffX;
this._y = _root._ymouse - this.diffY;
if(this._x < -85)
{
this._x = -85;
}
else if(this._x > 628)
{
this._x = 628;
}
if(this._y < 75)
{
this._y = 75;
}
else if(this._y > 468)
{
this._y = 468;
}
_root.foundDrop = undefined;
var _loc3_ = 0;
while(_loc3_ < _root.listCible.length)
{
if(_root[_root.listCible[_loc3_]].hitTest(this._x + 88,this._y + 67,1))
{
switch(_loc3_)
{
case 0:
this.gotoAndStop("E3");
break;
case 1:
this.gotoAndStop("E4");
break;
case 2:
this.gotoAndStop("E5");
}
_root.foundDrop = _loc3_;
}
_loc3_ = _loc3_ + 1;
}
if(foundDrop == undefined)
{
this.gotoAndStop("E2");
}
}
};
i++;
}
}