home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Games #12
/
GEGA012.iso
/
eroticos
/
excitepochi.swf
/
scripts
/
frame_1
/
DoAction.as
Wrap
Text File
|
2006-01-07
|
2KB
|
91 lines
function xOnOff()
{
if(nSwitch = !nSwitch)
{
this.main_mc.gotoAndPlay("on" + nCompLv + "_lb");
trace("reaction");
gReaction(nCompLv);
onOffDt_txt = "ON";
}
else
{
nOnTime = 0;
nLvTF_txt = "LV" + nCompLv;
main_mc.gotoAndPlay("off" + nCompLv + "_lb");
onOffDt_txt = "OFF";
}
}
function xLv(nCLV)
{
if(nSwitch)
{
nLvTF_txt = "LV" + nCLV;
main_mc.gotoAndPlay("onon" + nCLV + "_lb");
}
else
{
nLvTF_txt = "LV" + nCLV;
main_mc.gotoAndPlay("exciteLV" + nCLV + "_lb");
}
}
function xEvents(nMessage, nRiskiness, nLabel)
{
if(nMessage == "end")
{
_root.events_txt = "...";
riskiness_mc.gotoAndStop(1);
}
else
{
_root.events_txt = nMessage;
riskiness_mc.gotoAndStop(nRiskiness);
if(nLabel.length !== 0)
{
trace("ここに別ウィンドウ");
}
}
}
nSwitch = false;
nVisible = true;
nEventStart = false;
nOnTime = 0;
nExcite = 0;
nExciteLv = new Array(100,200,500);
nCompLv = 0;
nEventTime = 180;
nEventBTime = Math.floor(Math.random() * 100);
nLvTF_txt = "LV0";
this.onEnterFrame = function()
{
if(nSwitch)
{
nOnTime++;
nExcite++;
if(nExcite > nExciteLv[2])
{
if(nCompLv <= 2)
{
nCompLv = 3;
xLv(nCompLv);
}
}
else if(nExcite > nExciteLv[1])
{
if(nCompLv <= 1)
{
nCompLv = 2;
xLv(nCompLv);
}
}
else if(nExcite > nExciteLv[0])
{
if(nCompLv <= 0)
{
nCompLv = 1;
xLv(nCompLv);
}
}
}
_root.nTimeTF_txt = nOnTime;
};