first commit
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
on(press){
|
||||
client.OnPress();
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
on(release){
|
||||
client.OnRelease();
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
on(rollOut, dragOut){
|
||||
client.OnRollOut();
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
on(rollOver, dragOver){
|
||||
client.OnRollOver();
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
function OnCurrentFactionChanged(faction)
|
||||
{
|
||||
gotoAndPlay(faction);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
_root.DetachFactionObserver(this);
|
||||
delete OnCurrentFactionChanged;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!factionSkinned)
|
||||
{
|
||||
gotoAndPlay(_root.GetCurrentFaction());
|
||||
_root.AttachFactionObserver(this);
|
||||
factionSkinned = true;
|
||||
}
|
||||
+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();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
function OnCurrentFactionChanged(faction)
|
||||
{
|
||||
gotoAndPlay(faction);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
_root.DetachFactionObserver(this);
|
||||
delete OnCurrentFactionChanged;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!factionSkinned)
|
||||
{
|
||||
gotoAndPlay(_root.GetCurrentFaction());
|
||||
_root.AttachFactionObserver(this);
|
||||
factionSkinned = true;
|
||||
}
|
||||
+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();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
function OnCurrentFactionChanged(faction)
|
||||
{
|
||||
gotoAndPlay(faction);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
_root.DetachFactionObserver(this);
|
||||
delete OnCurrentFactionChanged;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!factionSkinned)
|
||||
{
|
||||
gotoAndPlay(_root.GetCurrentFaction());
|
||||
_root.AttachFactionObserver(this);
|
||||
factionSkinned = true;
|
||||
}
|
||||
+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();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
function OnCurrentFactionChanged(faction)
|
||||
{
|
||||
gotoAndPlay(faction);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
_root.DetachFactionObserver(this);
|
||||
delete OnCurrentFactionChanged;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!factionSkinned)
|
||||
{
|
||||
gotoAndPlay(_root.GetCurrentFaction());
|
||||
_root.AttachFactionObserver(this);
|
||||
factionSkinned = true;
|
||||
}
|
||||
+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();
|
||||
+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();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
function OnCurrentFactionChanged(faction)
|
||||
{
|
||||
gotoAndPlay(faction);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
_root.DetachFactionObserver(this);
|
||||
delete OnCurrentFactionChanged;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!factionSkinned)
|
||||
{
|
||||
gotoAndPlay(_root.GetCurrentFaction());
|
||||
_root.AttachFactionObserver(this);
|
||||
factionSkinned = true;
|
||||
}
|
||||
+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();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
function OnCurrentFactionChanged(faction)
|
||||
{
|
||||
gotoAndPlay(faction);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
_root.DetachFactionObserver(this);
|
||||
delete OnCurrentFactionChanged;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!factionSkinned)
|
||||
{
|
||||
gotoAndPlay(_root.GetCurrentFaction());
|
||||
_root.AttachFactionObserver(this);
|
||||
factionSkinned = true;
|
||||
}
|
||||
+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();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+179
@@ -0,0 +1,179 @@
|
||||
function SetState(newStateLabel)
|
||||
{
|
||||
if(newStateLabel != stateLabel)
|
||||
{
|
||||
imageStage.clip.gotoAndPlay(newStateLabel);
|
||||
backgroundStage.clip.gotoAndPlay(newStateLabel);
|
||||
buttonStage.clip.gotoAndPlay(newStateLabel);
|
||||
stateLabel = newStateLabel;
|
||||
}
|
||||
}
|
||||
function OnPress()
|
||||
{
|
||||
if(isEnabled)
|
||||
{
|
||||
SetState("_down");
|
||||
}
|
||||
}
|
||||
function OnRelease()
|
||||
{
|
||||
if(isEnabled)
|
||||
{
|
||||
SetState("_over");
|
||||
}
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnClicked"),"");
|
||||
}
|
||||
function OnRollOver()
|
||||
{
|
||||
if(!isOver)
|
||||
{
|
||||
if(isEnabled)
|
||||
{
|
||||
SetState("_over");
|
||||
}
|
||||
isOver = true;
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnRollOver"),"");
|
||||
}
|
||||
}
|
||||
function OnRollOut()
|
||||
{
|
||||
if(isOver)
|
||||
{
|
||||
if(isEnabled)
|
||||
{
|
||||
SetState("_up");
|
||||
}
|
||||
isOver = false;
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnRollOut"),"");
|
||||
}
|
||||
}
|
||||
function AttachContent()
|
||||
{
|
||||
var _loc1_ = imageStage.clip;
|
||||
if(_loc1_ != undefined)
|
||||
{
|
||||
_loc1_.removeMovieClip();
|
||||
}
|
||||
if(imageClipName != undefined && imageClipName.length > 0)
|
||||
{
|
||||
var _loc2_ = imageClipName + (!isSelected ? "Normal" : "Highlighted");
|
||||
_loc1_ = imageStage.attachMovie(_loc2_,"clip",0);
|
||||
_loc1_.gotoAndPlay(stateLabel);
|
||||
}
|
||||
_loc1_ = backgroundStage.clip;
|
||||
if(_loc1_ != undefined)
|
||||
{
|
||||
_loc1_.removeMovieClip();
|
||||
}
|
||||
if(backgroundClipName != undefined && backgroundClipName.length > 0)
|
||||
{
|
||||
_loc1_ = backgroundStage.attachMovie(backgroundClipName + (!isSelected ? "Normal" : "Highlighted"),"clip",0);
|
||||
_loc1_.gotoAndPlay(stateLabel);
|
||||
}
|
||||
}
|
||||
function SetVisibility(visArg)
|
||||
{
|
||||
var _loc1_ = Number(visArg) != 0;
|
||||
_visible = _loc1_;
|
||||
flashyThingy._visible = _loc1_;
|
||||
}
|
||||
function SetEnabled(enableArg)
|
||||
{
|
||||
var _loc1_ = Number(enableArg) != 0;
|
||||
if(_loc1_ != isEnabled)
|
||||
{
|
||||
isEnabled = _loc1_;
|
||||
SetState(!isEnabled ? "_disabled" : "_up");
|
||||
}
|
||||
}
|
||||
function SetSelected(selectArg)
|
||||
{
|
||||
var _loc1_ = Number(selectArg) != 0;
|
||||
if(_loc1_ != isSelected)
|
||||
{
|
||||
isSelected = _loc1_;
|
||||
AttachContent();
|
||||
}
|
||||
}
|
||||
function SetFlashing(flashArg)
|
||||
{
|
||||
if(flashyThingy == undefined)
|
||||
{
|
||||
return undefined;
|
||||
}
|
||||
var _loc1_ = Number(flashArg) != 0;
|
||||
if(flashyThingy.initialized)
|
||||
{
|
||||
if(_loc1_)
|
||||
{
|
||||
flashyThingy.Start();
|
||||
}
|
||||
else
|
||||
{
|
||||
flashyThingy.Stop();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
flashyThingy.shouldPlay = _loc1_;
|
||||
}
|
||||
}
|
||||
function SetHighlighted(highlightArg)
|
||||
{
|
||||
var _loc3_ = highlightArg != 0;
|
||||
if(_loc3_)
|
||||
{
|
||||
if(highlightClip == undefined)
|
||||
{
|
||||
highlightClip = _global.CreateHUDGadgetFlash(this);
|
||||
}
|
||||
}
|
||||
else if(highlightClip != undefined)
|
||||
{
|
||||
highlightClip.Close();
|
||||
highlightClip = undefined;
|
||||
}
|
||||
}
|
||||
function GetHelpSite()
|
||||
{
|
||||
return Pointer.encode(helpSite);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
highlightClip.Close();
|
||||
delete SetState;
|
||||
delete OnPress;
|
||||
delete OnRelease;
|
||||
delete OnRollOver;
|
||||
delete OnRollOut;
|
||||
delete AttachContent;
|
||||
delete SetVisibility;
|
||||
delete SetEnabled;
|
||||
delete SetSelected;
|
||||
delete SetFlashing;
|
||||
delete SetHighlighted;
|
||||
delete GetHelpSite;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!initialized)
|
||||
{
|
||||
stateLabel = "_disabled";
|
||||
isEnabled = false;
|
||||
isSelected = false;
|
||||
isOver = false;
|
||||
var buttonClip = buttonStage.attachMovie(buttonClipName,"clip",0);
|
||||
buttonClip.client = this;
|
||||
buttonClip.gotoAndPlay("_disabled");
|
||||
AttachContent();
|
||||
SetEnabled("1");
|
||||
initialized = true;
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
|
||||
if(!extern.InGame && flashyThingy != undefined)
|
||||
{
|
||||
}
|
||||
}
|
||||
stop();
|
||||
@@ -0,0 +1,29 @@
|
||||
function GetSellButton()
|
||||
{
|
||||
return Pointer.encode(sellButton);
|
||||
}
|
||||
function GetRepairButton()
|
||||
{
|
||||
return Pointer.encode(repairButton);
|
||||
}
|
||||
function GetPauseButton()
|
||||
{
|
||||
return Pointer.encode(pauseButton);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
delete GetSellButton;
|
||||
delete GetRepairButton;
|
||||
delete GetPauseButton;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!initialized)
|
||||
{
|
||||
sellButton.helpSite = helpSite;
|
||||
repairButton.helpSite = helpSite;
|
||||
pauseButton.helpSite = helpSite;
|
||||
initialized = true;
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
|
||||
}
|
||||
stop();
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
on(construct){
|
||||
vertAlignment = "top";
|
||||
horzAlignment = "right";
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
on(construct){
|
||||
buttonClipName = "RA3CommandModeButtonClip";
|
||||
imageClipName = "RepairButton";
|
||||
backgroundClipName = "";
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
on(construct){
|
||||
buttonClipName = "RA3CommandModeButtonClip";
|
||||
imageClipName = "ObjectivesButton";
|
||||
backgroundClipName = "";
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
on(construct){
|
||||
buttonClipName = "RA3CommandModeButtonClip";
|
||||
imageClipName = "SellButton";
|
||||
backgroundClipName = "";
|
||||
}
|
||||
Reference in New Issue
Block a user