Name

import (LzLibrary) (as2)

Synopsis

LZX: import
JavaScript: LzLibrary
Type: Class
Access: private
Runtimes: as2
Topic: LZX.Syntax
Declared in: WEB-INF/lps/lfc/kernel/swf/LzLibrary.lzs

Superclass Chain

node (LzNode) » import (LzLibrary)

Known Subclasses

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()
<method name="init" />
private function init();
load()
<method name="load" />
private function load();
toString()
<method name="toString" />
public function toString();
unload()
<method name="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=" findLibrary " args="libname" />
  <attribute name=" loaded " />
  <attribute name=" loading " />
  <method name=" construct " args="parent, args" />
  <method name=" destroy " />
  <method name=" init " />
  <method name=" load " />
  <method name=" toString " />
  <method name=" unload " />
</class>

JavaScript Synopsis

private LzLibrary extends  LzNode  {
  static private function findLibrary (libname);
  static public var libraries ;
  public var loaded  = false;
  public var loading  = false;
  prototype private function construct (parent, args);
  prototype private function destroy ();
  prototype private function init ();
  prototype private function load ();
  prototype public function toString ();
  prototype private function unload ();
}