home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 141
/
MOBICLIC141.ISO
/
mac
/
DATA
/
GAM141
/
GAM141_00
/
GAM141_00.swf
/
scripts
/
frame_2
/
DoAction.as
Wrap
Text File
|
2012-01-10
|
1KB
|
72 lines
stop();
trace("Frame INIT");
_global.playSFX = function(sfx)
{
_root.soundObjects[gBruitageName + sfx].start();
};
_global.setButRoll = function(obj, sfx, IB)
{
obj.IB = IB;
obj.onRollOver = obj.onDragOver = function()
{
if(!isMSGBox)
{
if(gOnDir == "1")
{
getUrl("cursor2", "");
}
this.gotoAndPlay("E2");
playSFX(sfx);
if(this.IB !== undefined)
{
gereTextes.afficheIB(this,this.IB);
}
}
};
obj.onRollOut = obj.onDragOut = function()
{
if(gOnDir == "1")
{
getUrl("cursor1", "");
}
this.gotoAndPlay("E1");
if(this.IB !== undefined)
{
gereTextes.masqueIB();
}
};
};
_global.setButClick = function(obj)
{
obj.onPress = function()
{
if(!isMSGBox)
{
this.gotoAndPlay("E3");
}
};
};
_global.stopIt = function(obj)
{
obj.stop();
for(var _loc2_ in obj)
{
if(typeof obj[_loc2_] == "movieclip")
{
stopIt(obj[_loc2_]);
}
}
};
_global.playIt = function(obj)
{
obj.play();
for(var _loc2_ in obj)
{
if(typeof obj[_loc2_] == "movieclip")
{
playIt(obj[_loc2_]);
}
}
};
InitOk();