Name
import (LzLibrary) (swf7 swf8 swf9)
Details
Static Properties (1)
-
libraries
-
static public var libraries;
Static Methods (1)
-
findLibrary()
-
<method name="findLibrary" args="libname" />
static private function findLibrary(libname);
Initial Attributes (1)
Initial Attributes are given as attributes in LZX but are not generally available as properties in JavaScript.
-
stage
-
<attribute name="stage" />
Properties (2)
-
loaded
-
<attribute name="loaded" />
public var loaded = false;
-
loading
-
<attribute name="loading" />
public var loading = false;
Methods (6)
-
construct()
-
<method name="construct" args="parent, args" />
private function construct(parent, args);
-
destroy()
-
<method name="destroy" />
private function destroy();
-
init()
-
-
load()
-
-
toString()
-
<method name="toString" />
public function toString();
-
unload()
-
private function unload();
To 'unload' a snippet, three things have to be done:
1. Destroy all the instances that were created by the snippet.
This is done by calling `iii.destroy();` for each instance
iii. Note that if you have created references to the instance
outside of the snippet, you must `delete` those references.
2. Destroy all classes that were created by the snippet. This
is done by calling `ccc.destroy();` for each class ccc. Note
that if you have created references to the class outside of
the snippet, you must `delete` those references.
3. Unload the snippet. This is done by calling
`sss.unload()`, where sss is the name of the snippet (in the
import tag).
At this point, you can re-load the snippet by calling
`sss.load()`. If you know you will never use the snippet
again, you can call `sss.destroy();` to remove the snippet
from your application altogether.
LZX Synopsis
<class name="
LzLibrary" extends="
LzNode
">
<method name="
construct
" args="
parent,
args" />
</class>
JavaScript Synopsis
private
LzLibrary extends
LzNode
{
prototype private function
construct
(
parent,
args);
prototype private function
destroy
();
prototype private function
init
();
prototype private function
load
();
prototype private function
unload
();
}