/*Load im externen swf *
var loadSwf: Ladevorrichtung = neue Ladevorrichtung ();
var requestSwf: URLRequest = neues URLRequest („photo_gallery.swf“);
loadSwf.contentLoaderInfo.addEventListener (Event.COMPLETE, onCompleteHandler);
loadSwf.contentLoaderInfo.addEventListener (ProgressEvent.PROGRESS, onProgressHandler);
loadSwf.load (requestSwf);
/* fügen swf Stadium hinzu *
Funktion onCompleteHandler (loadEvent: Ereignis) {
stage.addChild (loadEvent.currentTarget.content);
}
/* Fortschritt tracking*/
Funktion onProgressHandler (mProgress: ProgressEvent) {
var-Prozente: Zahl = mProgress.bytesLoaded/mProgress.bytesTotal;
Spur (Prozent);
}
|