first commit
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 120 B |
Binary file not shown.
|
After Width: | Height: | Size: 114 B |
+14
@@ -0,0 +1,14 @@
|
||||
on(release){
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(_parent._parent._parent,"OnButtonClicked"),"");
|
||||
_parent.OnRelease(this);
|
||||
gotoAndStop("_down");
|
||||
play();
|
||||
for(child in _parent)
|
||||
{
|
||||
if(_name != child)
|
||||
{
|
||||
_parent[child].gotoAndPlay("_exit");
|
||||
}
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
on(rollOut, dragOut){
|
||||
gotoAndStop("_rollout");
|
||||
play();
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(_parent._parent,_parent,"OnButtonRollOut"),"");
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
on(rollOver){
|
||||
gotoAndStop("_over");
|
||||
play();
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(_parent._parent,_parent,"OnButtonRollOver"),"");
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
stop();
|
||||
@@ -0,0 +1 @@
|
||||
stop();
|
||||
@@ -0,0 +1 @@
|
||||
stop();
|
||||
@@ -0,0 +1 @@
|
||||
stop();
|
||||
@@ -0,0 +1 @@
|
||||
stop();
|
||||
@@ -0,0 +1 @@
|
||||
stop();
|
||||
@@ -0,0 +1,2 @@
|
||||
gotoAndStop("_up");
|
||||
play();
|
||||
@@ -0,0 +1 @@
|
||||
stop();
|
||||
@@ -0,0 +1 @@
|
||||
stop();
|
||||
@@ -0,0 +1,19 @@
|
||||
function OnRelease(buttonClip)
|
||||
{
|
||||
if(buttonClip == Yes)
|
||||
{
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(_parent._parent,"OnYesClicked"),"");
|
||||
}
|
||||
else if(buttonClip == No)
|
||||
{
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(_parent._parent,"OnNoClicked"),"");
|
||||
}
|
||||
_parent.gotoAndPlay("_close");
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
delete OnRelease;
|
||||
delete onUnload;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
this.buttonName = "$" + qualifyName(_parent._parent._parent,"YesButtonLabel");
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
this.buttonName = "$" + qualifyName(_parent._parent._parent,"NoButtonLabel");
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
stop();
|
||||
@@ -0,0 +1 @@
|
||||
stop();
|
||||
@@ -0,0 +1 @@
|
||||
_parent.backdrop.gotoAndPlay("_close");
|
||||
@@ -0,0 +1 @@
|
||||
_parent.backdrop.gotoAndPlay("_open");
|
||||
@@ -0,0 +1,3 @@
|
||||
stop();
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(_parent,"OnClosed"),"");
|
||||
@@ -0,0 +1,2 @@
|
||||
txtTitle.stringName = "$" + qualifyName(_parent,"Title");
|
||||
txtMessage.stringName = "$" + qualifyName(_parent,"Prompt");
|
||||
@@ -0,0 +1,51 @@
|
||||
function Close()
|
||||
{
|
||||
if(!closing)
|
||||
{
|
||||
closing = true;
|
||||
popup.gotoAndPlay("_close");
|
||||
}
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
delete Close;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!initialized)
|
||||
{
|
||||
_parent.OnContentLoaded(this);
|
||||
closing = false;
|
||||
if(_root.displayLeft != undefined)
|
||||
{
|
||||
var backdropX = _root.displayLeft;
|
||||
var backdropY = _root.displayTop;
|
||||
var backdropWidth = _root.displayWidth;
|
||||
var backdropHeight = _root.displayHeight;
|
||||
var clipPath = new Array();
|
||||
clip = this;
|
||||
while(clip != _root)
|
||||
{
|
||||
clipPath.push(clip);
|
||||
clip = clip._parent;
|
||||
}
|
||||
while(clipPath.length > 0)
|
||||
{
|
||||
var clip = clipPath.pop();
|
||||
backdropX -= clip._x;
|
||||
backdropY -= clip._y;
|
||||
var invScaleX = 100 / clip._xscale;
|
||||
var invScaleY = 100 / clip._yscale;
|
||||
backdropX *= invScaleX;
|
||||
backdropY *= invScaleY;
|
||||
backdropWidth *= invScaleX;
|
||||
backdropHeight *= invScaleY;
|
||||
}
|
||||
backdrop._x = backdropX;
|
||||
backdrop._y = backdropY;
|
||||
backdrop._width = backdropWidth;
|
||||
backdrop._height = backdropHeight;
|
||||
}
|
||||
initialized = true;
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
PLAY
|
||||
@@ -0,0 +1 @@
|
||||
PLAY
|
||||
@@ -0,0 +1 @@
|
||||
Are you sure you want to exit?
|
||||
@@ -0,0 +1 @@
|
||||
EXIT MISSION
|
||||
Reference in New Issue
Block a user