Name

LzLoader (as2)

Synopsis

JavaScript: LzLoader
Type: Class
Access: private
Runtimes: as2
Topic: Kernel.AS2
Declared in: WEB-INF/lps/lfc/kernel/swf/LzLoader.lzs

Superclass Chain

LzLoader

Known Subclasses

Known Direct Subclasses: LzLibraryLoader (as2), LzMediaLoader (as2)

Details

Static Properties (1)

__LZmonitorState
static private var __LZmonitorState = false;
Set to true to monitor loadMovie state changes when debugging

Static Methods (1)

debugLoadObj()
static public function debugLoadObj(loadobj : MovieClip, typename : String);
Annotate loadobj for debugging Can be used by subclasses that provide their own loadobj. Cf., LzMediaLoader

Properties (14)

attachDepth
public var attachDepth = 9;
copyLoopsPerFrame
public var copyLoopsPerFrame = 1000;
copyQueue
public var copyQueue = null;
doCacheRequest
public var doCacheRequest = true;
doPersist
public var doPersist = false;
maxLoopTime
public var maxLoopTime = 2000;
minHeader
public var minHeader = 10;
newContextDepth
public var newContextDepth = 3238;
proxied
public var proxied = true;
queuing
public var queuing = false;
requestheaders
public var requestheaders = { ... };
secure
public var secure = false;
secureport
public var secureport = null;
timeout
public var timeout = 30000;

Methods (19)

abort()
private function abort(req);
copyFlashData()
private function copyFlashData();
copyFlashXML()
private function copyFlashXML(node, trimwhitespace : boolean, nsprefix : boolean);
_dbg_name()
private function _dbg_name();
destroy()
private function destroy();
doTimeOut()
private function doTimeOut(loadobj : MovieClip);
getLastLoadtime()
private function getLastLoadtime();
getLoadMovie()
private function getLoadMovie();
This creates an initial movie that we keep state on. LzLoadQueue will attach a movie to that to load the actual resource into. We can't use the same movie, because loading replaces all attributes. We have to use a movie here instead of an object, because movies can only be attached to movies.
initialize()
public function initialize(owner, args);
initializeRequestObj()
private function initializeRequestObj(loadobj);
queuedCopyFlashXML()
private function queuedCopyFlashXML(xmlnode);
queuedCopyFlashXML_internal()
private function queuedCopyFlashXML_internal();
removeCopyTask()
private function removeCopyTask();
request()
private function request(o);
requestDirectXML()
private function requestDirectXML(o);
Request a data load using Flash XML object
returnData()
private function returnData(loadobj, data);
[1] A movieclip whose _parent is the loader request movieclip [see getLoadMovie()] [2] A Flash XML Object (holding the response from a serverless data request) which is also the object referred to in the various bookeeping for queues, timeouts, etc.
setHeaders()
public function setHeaders(headers);
startCopyTask()
private function startCopyTask();
unload()
private function unload(loadobj : MovieClip);

Events (4)

ondata
public event ondata;
onerror
public event onerror;
onrequest
public event onrequest;
ontimeout
public event ontimeout;

JavaScript Synopsis

private LzLoader {
  static public function debugLoadObj (loadobj : MovieClip, typename : String);
  static private var __LZmonitorState  = false;
  public var attachDepth  = 9;
  public var copyLoopsPerFrame  = 1000;
  public var copyQueue  = null;
  public var doCacheRequest  = true;
  public var doPersist  = false;
  public var maxLoopTime  = 2000;
  public var minHeader  = 10;
  public var newContextDepth  = 3238;
  public var proxied  = true;
  public var queuing  = false;
  public var requestheaders  = { ... };
  public var secure  = false;
  public var secureport  = null;
  public var timeout  = 30000;
  prototype private function abort (req);
  prototype private function copyFlashData ();
  prototype private function copyFlashXML (node, trimwhitespace : boolean, nsprefix : boolean);
  prototype private function _dbg_name ();
  prototype private function destroy ();
  prototype private function doTimeOut (loadobj : MovieClip);
  prototype private function getLastLoadtime ();
  prototype private function getLoadMovie ();
  prototype public function initialize (owner, args);
  prototype private function initializeRequestObj (loadobj);
  prototype public event ondata ;
  prototype public event onerror ;
  prototype public event onrequest ;
  prototype public event ontimeout ;
  prototype private function queuedCopyFlashXML (xmlnode);
  prototype private function queuedCopyFlashXML_internal ();
  prototype private function removeCopyTask ();
  prototype private function request (o);
  prototype private function requestDirectXML (o);
  prototype private function returnData (loadobj, data);
  prototype public function setHeaders (headers);
  prototype private function startCopyTask ();
  prototype private function unload (loadobj : MovieClip);
}