home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sony Picture Package
/
PICTUREPACKAGE.ISO
/
Cyber
/
en
/
opening.swf
/
scripts
/
frame_1
/
DoAction.as
Wrap
Text File
|
2004-01-13
|
939b
|
46 lines
function setColor()
{
skipColor = new Color(this.skip_mc);
}
function rollOverAction()
{
setColor();
skipColor.setRGB(rollOverRGB);
}
function rollOutAction()
{
skipColor.setRGB(initRGB);
}
function pressAction()
{
mySnd.start();
}
function releaseAction()
{
skipColor.setRGB(rollOverRGB);
skipBtn_mc.enabled = false;
skipBtn_mc._visible = false;
_parent.main_mc.loadMovie("main.swf");
this.gotoAndPlay("sceneStart");
}
function returnAction()
{
skipColor.setRGB(initRGB);
skipBtn_mc.enabled = true;
skipBtn_mc._visible = true;
}
bgmSnd = new Sound(this);
thisSnd = new Sound(this);
seSnd = new Sound(this);
mySnd = new Sound(this);
mySnd.loadSound("snd/click.mp3",false);
this.onEnterFrame = function()
{
if(mySnd.getBytesLoaded() >= mySnd.getBytesTotal())
{
this.onEnterFrame = null;
}
};
var initRGB = 540780;
var rollOverRGB = 2267596;