first commit
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
on(press){
|
||||
OnPress();
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
on(release){
|
||||
OnRelease();
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
on(rollOut){
|
||||
OnRollOut();
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
on(rollOver){
|
||||
OnRollOver();
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
on(press){
|
||||
gotoAndStop("_down");
|
||||
play();
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
on(release){
|
||||
gotoAndStop("_over");
|
||||
play();
|
||||
OnClicked(this);
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
on(rollOut){
|
||||
gotoAndStop("_up");
|
||||
play();
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
on(rollOver){
|
||||
gotoAndStop("_over");
|
||||
play();
|
||||
}
|
||||
+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();
|
||||
+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();
|
||||
+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();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
gotoAndStop("_" + qualifyName(_parent._parent,"NumAvailablePoints"));
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
on(construct){
|
||||
label = "Cancel";
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
on(construct){
|
||||
label = "Confirm";
|
||||
}
|
||||
+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();
|
||||
+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();
|
||||
+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();
|
||||
+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();
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
text = "$" + qualifyName(_parent._parent._parent,_parent.label + "ButtonLabel");
|
||||
}
|
||||
+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();
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
on(construct){
|
||||
_type = "RenderImage";
|
||||
_imageMap = "";
|
||||
_mode = "";
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
_imageMap = qualifyName(_parent._parent,"Image");
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
_visible = _parent._parent.selected;
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
on(construct){
|
||||
_type = "RenderImageDisabled";
|
||||
_imageMap = "";
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
_imageMap = qualifyName(_parent._parent,"Image");
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
on(construct){
|
||||
_type = "RenderImage";
|
||||
_imageMap = "";
|
||||
_mode = "";
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
_imageMap = qualifyName(_parent._parent,"Image");
|
||||
}
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
function SetVisibility(vis)
|
||||
{
|
||||
_visible = vis != 0;
|
||||
}
|
||||
function SetAvailability(availability)
|
||||
{
|
||||
gotoAndPlay(availability);
|
||||
}
|
||||
function SetSelected(selArg)
|
||||
{
|
||||
selected = selArg != 0;
|
||||
content.selectedOverlay._visible = selected;
|
||||
}
|
||||
function SetDependenceUponPriorRow(dependenceArg)
|
||||
{
|
||||
arrow._visible = dependenceArg != 0;
|
||||
}
|
||||
function OnPress()
|
||||
{
|
||||
}
|
||||
function OnRelease()
|
||||
{
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnClicked"),"");
|
||||
}
|
||||
function OnRollOver()
|
||||
{
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnRollOver"),"");
|
||||
}
|
||||
function OnRollOut()
|
||||
{
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnRollOut"),"");
|
||||
}
|
||||
function GetHelpSite()
|
||||
{
|
||||
return Pointer.encode(_parent.helpSite);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
delete SetVisibility;
|
||||
delete SetAvailability;
|
||||
delete SetSelected;
|
||||
delete SetDependenceUponPriorRow;
|
||||
delete OnPress;
|
||||
delete OnRelease;
|
||||
delete OnRollOver;
|
||||
delete OnRollOut;
|
||||
delete GetHelpSite;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!initialized)
|
||||
{
|
||||
arrow._visible = false;
|
||||
selected = false;
|
||||
initialized = true;
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
|
||||
}
|
||||
+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();
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
on(construct){
|
||||
vertAlignment = "top";
|
||||
horzAlignment = "left";
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
function BindFunction(fn, obj)
|
||||
{
|
||||
return function(buttonClip)
|
||||
{
|
||||
fn.call(obj,buttonClip);
|
||||
};
|
||||
}
|
||||
function Close()
|
||||
{
|
||||
if(!closing)
|
||||
{
|
||||
gotoAndStop("_close");
|
||||
play();
|
||||
closing = true;
|
||||
}
|
||||
}
|
||||
function GetPurchaseButton(row, col)
|
||||
{
|
||||
return Pointer.encode(dialog.rows[String(row)][String(col)]);
|
||||
}
|
||||
function SetProgressToNextRank(progress)
|
||||
{
|
||||
var _loc1_ = Math.round(progress * 25) + 1;
|
||||
dialog.ProgressMeter.gotoAndStop(_loc1_);
|
||||
}
|
||||
function SetNumAvailablePoints(points)
|
||||
{
|
||||
dialog.techPoints.gotoAndPlay("_" + String(points));
|
||||
}
|
||||
function OnConfirm()
|
||||
{
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnConfirmClicked"),"");
|
||||
if(!extern.InGame)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
}
|
||||
function OnCancel()
|
||||
{
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnCancelClicked"),"");
|
||||
if(!extern.InGame)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
}
|
||||
function OnClosed()
|
||||
{
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnClosed"),"");
|
||||
}
|
||||
function GetHelpBox()
|
||||
{
|
||||
return Pointer.encode(helpBox);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
delete BindFunction;
|
||||
delete Close;
|
||||
delete GetPurchaseButton;
|
||||
delete SetProgressToNextRank;
|
||||
delete SetNumAvailablePoints;
|
||||
delete OnConfirm;
|
||||
delete OnCancel;
|
||||
delete OnClosed;
|
||||
delete GetHelpBox;
|
||||
delete dialog.confirmButton.OnClicked;
|
||||
delete dialog.cancelButton.OnClicked;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!initialized)
|
||||
{
|
||||
_parent.OnContentLoaded(this);
|
||||
helpBox.loadMovie("HelpBox.swf");
|
||||
dialog.confirmButton.OnClicked = BindFunction(OnConfirm,this);
|
||||
dialog.cancelButton.OnClicked = BindFunction(OnCancel,this);
|
||||
initialized = true;
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
|
||||
}
|
||||
dialog._visible = false;
|
||||
if(!extern.InGame)
|
||||
{
|
||||
_global.qualifyName = function(clip, label)
|
||||
{
|
||||
return String(clip) + ":" + label;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
stop();
|
||||
@@ -0,0 +1,2 @@
|
||||
stop();
|
||||
OnClosed();
|
||||
@@ -0,0 +1 @@
|
||||
dialog._visible = true;
|
||||
Reference in New Issue
Block a user