home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 165
/
MOBICLIC165.ISO
/
mac
/
DATA
/
HOTE
/
libs
/
o
/
ed.swf
/
scripts
/
frame_1
/
DoAction.as
Wrap
Text File
|
2014-06-23
|
3KB
|
118 lines
function Test_ed()
{
trace("----------------------- Test_ed----- : " + Test_ed);
}
function StopAll()
{
ClearAllIntervals();
Mouse.show();
}
function ModulePause(p)
{
trace("xbModulePause : ");
if(_root.PauseEnCours == true)
{
return undefined;
}
_root.PauseEnCours = true;
ClearAllIntervals();
if(p == "jeu")
{
_root.Interface.NePasReferencer = true;
_o_.FigerMCs(_root);
trace("_o_.FigerMCs : " + _o_.FigerMCs);
trace("_o_ : " + _o_);
}
}
function ModuleResume(p)
{
trace("ModuleResume : " + ModuleResume);
if(_root.PauseEnCours != true)
{
return undefined;
}
if(p == "jeu")
{
_o_.DefigerMCs();
}
_root.PauseEnCours = false;
}
function FigerMCs(mc)
{
trace("FigerMCs : " + FigerMCs);
_xb_.ClipToPause = mc.Referencer();
var inc1 = 0;
_xb_.onEnterFrame = function()
{
inc1++;
if(inc1 == 1)
{
for(var _loc1_ in _xb_.ClipToPause)
{
if(typeof _xb_.ClipToPause[_loc1_] == "movieclip")
{
_xb_.ClipToPause[_loc1_].PauseFrame = _xb_.ClipToPause[_loc1_]._currentframe;
}
}
}
else if(inc1 == 2)
{
for(_loc1_ in _xb_.ClipToPause)
{
if(typeof _xb_.ClipToPause[_loc1_] == "movieclip")
{
_xb_.ClipToPause[_loc1_].PauseFrame2 = _xb_.ClipToPause[_loc1_]._currentframe;
if(_xb_.ClipToPause[_loc1_].PauseFrame2 != _xb_.ClipToPause[_loc1_].PauseFrame)
{
_xb_.ClipToPause[_loc1_].EnCoursDeLecture = true;
_xb_.ClipToPause[_loc1_].stop();
}
else
{
_xb_.ClipToPause[_loc1_].EnCoursDeLecture = false;
}
}
}
delete _xb_.onEnterFrame;
}
};
}
function DefigerMCs()
{
for(var _loc2_ in _xb_.ClipToPause)
{
if(typeof _xb_.ClipToPause[_loc2_] == "movieclip")
{
_xb_.ClipToPause[_loc2_].DejaReference = false;
if(_xb_.ClipToPause[_loc2_].EnCoursDeLecture == true)
{
_xb_.ClipToPause[_loc2_].play();
}
}
}
_root.PauseEnCours = false;
}
var _ed_ = this;
MovieClip.prototype.Referencer = function()
{
trace("Referencer : " + this);
if(arguments[0] == undefined)
{
var _loc3_ = [];
}
else
{
_loc3_ = arguments[0];
}
_loc3_.push(this);
this.DejaReference = true;
for(var _loc4_ in this)
{
if(typeof this[_loc4_] == "movieclip" && this[_loc4_].DejaReference != true && this[_loc4_].NePasReferencer != true)
{
this[_loc4_].Referencer(_loc3_);
}
}
return _loc3_;
};