home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 127
/
MOBICLIC127.ISO
/
mac
/
DATA
/
DSS127
/
DSS127_03
/
DSS127_03.swf
/
scripts
/
frame_420
/
DoAction.as
Wrap
Text File
|
2010-09-13
|
1KB
|
48 lines
function initPhoto(hostClip, photo)
{
trace(hostClip);
trace(photo);
var _loc2_ = new MovieClipLoader();
_loc2_.addListener(mclListener);
myID = "I_" + gModuleName + "_" + photo;
trace(myID);
_loc2_.loadClip(_global.gModulePath + moduleInfo.getResourceById(myID).firstChild.attributes.src,hostClip);
}
stop();
if(getPos(listTele,0) == -1)
{
gotoAndStop("ATTENTE");
}
else
{
var i = 1;
while(i <= 2)
{
this["ZONE_05_" + gimme2digits(i)].pZone = i;
this["ZONE_05_" + gimme2digits(i)].onRollOver = function()
{
gereCursor(2);
this.gotoAndStop("E2");
joueBruitage({nomSon:"B_TELESCOPE"});
gereTextes.afficheIB({mc:this,codeIB:"IB_05_" + gimme2digits(this.pZone),X:this._x,Y:this._y});
};
this["ZONE_05_" + gimme2digits(i)].onRollOut = function()
{
gereTextes.masqueIB();
gereCursor(1);
this.gotoAndStop("E1");
stopBruitage({nomSon:"B_TELESCOPE"});
};
this["ZONE_05_" + gimme2digits(i)].onPress = function()
{
listTele[this.pZone - 1] = 1;
gereTextes.masqueIB();
gereCursor(1);
this.gotoAndStop("E1");
stopBruitage({nomSon:"B_TELESCOPE"});
_root.gotoAndStop("05_" + gimme2digits(this.pZone));
};
i++;
}
}