first commit
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
function onUnload()
|
||||
{
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnClipDestroyed"),"");
|
||||
delete onUnload;
|
||||
}
|
||||
if(!initialized)
|
||||
{
|
||||
var initContent = {_type:qualifyName(this,"Render"),_x:shape._x,_y:shape._y,_width:shape._width,_height:shape._height};
|
||||
var contentClip = attachMovie("SimpleRenderingSurfaceContentPlaceholder","content",0,initContent);
|
||||
initialized = true;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
_visible = false;
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
function Raise()
|
||||
{
|
||||
_visible = true;
|
||||
}
|
||||
function Lower()
|
||||
{
|
||||
_visible = false;
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
delete Raise;
|
||||
delete Lower;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!initialized)
|
||||
{
|
||||
_visible = false;
|
||||
intialized = true;
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
|
||||
}
|
||||
stop();
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
function OnContentLoaded(clip)
|
||||
{
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnContentLoaded"),Pointer.encode(clip));
|
||||
}
|
||||
function LoadContent(url)
|
||||
{
|
||||
this.createEmptyMovieClip("content",0);
|
||||
this.content.loadMovie(url);
|
||||
}
|
||||
function UnloadContent()
|
||||
{
|
||||
content.removeMovieClip();
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
delete OnContentLoaded;
|
||||
delete LoadContent;
|
||||
delete UnloadContent;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!initialized)
|
||||
{
|
||||
initialized = true;
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
|
||||
}
|
||||
stop();
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
function AttachContent(contentType)
|
||||
{
|
||||
contentClip = attachMovie(contentType,"content",0);
|
||||
contentClip._x = placeholder._x;
|
||||
contentClip._y = placeholder._y;
|
||||
contentClip._width = placeholder._width;
|
||||
contentClip._height = placeholder._height;
|
||||
return Pointer.encode(contentClip);
|
||||
}
|
||||
function DetachContent()
|
||||
{
|
||||
if(contentClip != undefined)
|
||||
{
|
||||
contentClip.removeMovieClip();
|
||||
}
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
delete AttachContent;
|
||||
delete DetachContent;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!initialized)
|
||||
{
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
|
||||
initialized = true;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
_visible = false;
|
||||
}
|
||||
Reference in New Issue
Block a user