I have this sample of code but the onLoadInit doesn't seem to fire at all. Any ideas? Is it the static functions?
Thx
class Demo extends MovieClip {
static var app : Demo;
function Demo() {
_root.createTextField("tf", 0, 0, 0, 800, 600);
var myListener:Object = new Object();
var myClip:MovieClip = this.createEmptyMovieClip("myMc", this.getNextHighestDepth());
var myLoader = new MovieClipLoader();
myListener.onLoadInit = lo;
myLoader.addListener(myListener);
myLoader.loadClip("temp.swf", myClip);
}
static function lo (_mc:MovieClip) {
trace("load init");
}
static function main(mc) {
app = new Demo();
}
}
--
-------------------------------------------------------
Risk everything - Create the impossible!
-------------------------------------------------------
--
MTASC : no more coffee break while compiling