first commit
This commit is contained in:
+54
@@ -0,0 +1,54 @@
|
||||
function OnPress()
|
||||
{
|
||||
gotoAndStop("down");
|
||||
play();
|
||||
}
|
||||
function OnRelease()
|
||||
{
|
||||
gotoAndStop("over");
|
||||
play();
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add _global.qualifyName(this,"OnClicked"),"");
|
||||
}
|
||||
function OnRollOver()
|
||||
{
|
||||
gotoAndStop("over");
|
||||
play();
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add _global.qualifyName(this,"OnRollOver"),"");
|
||||
}
|
||||
function OnRollOut()
|
||||
{
|
||||
gotoAndStop("up");
|
||||
play();
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add _global.qualifyName(this,"OnRollOut"),"");
|
||||
}
|
||||
function SetSelected(selectedArg)
|
||||
{
|
||||
imageMC.gotoAndPlay(selectedArg == 0 ? "normal" : "selected");
|
||||
}
|
||||
function GetHelpSite()
|
||||
{
|
||||
return Pointer.encode(helpSiteMC);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
delete OnPress;
|
||||
delete OnRelease;
|
||||
delete OnRollOver;
|
||||
delete OnRollOut;
|
||||
delete SetSelected;
|
||||
delete GetHelpSite;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!initialized)
|
||||
{
|
||||
hitAreaButton.onPress = _global.bind0(this,OnPress);
|
||||
hitAreaButton.onRelease = _global.bind0(this,OnRelease);
|
||||
hitAreaButton.onRollOver = _global.bind0(this,OnRollOver);
|
||||
hitAreaButton.onRollOut = _global.bind0(this,OnRollOut);
|
||||
initialized = true;
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add _global.qualifyName(this,"OnInitialized"),"");
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
on(construct){
|
||||
vertAlignment = "top";
|
||||
horzAlignment = "right";
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
@@ -0,0 +1,21 @@
|
||||
function GetFastForwardButton()
|
||||
{
|
||||
return Pointer.encode(ffButtonMC);
|
||||
}
|
||||
function SetVisibility(visArg)
|
||||
{
|
||||
_visible = visArg != 0;
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
delete GetFastForwardButton;
|
||||
delete SetVisibility;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!initialized)
|
||||
{
|
||||
_parent.OnContentLoaded(this);
|
||||
initialized = true;
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add _global.qualifyName(this,"OnInitialized"),"");
|
||||
}
|
||||
Reference in New Issue
Block a user