[haXe] mc._lockroot doesn't seem to work :(

filt3r at free.fr filt3r at free.fr
Mon Dec 3 09:57:37 CET 2007


Hi !
I'm using a swf8 loader made with haxe, that contains code like that (Main.hx):
static function loadTarget( url : String )
{
	var mcl = new MovieClipLoader();
	mcl.addListener( Main );
	_mcTarget = mcRoot.createEmptyMovieClip( "__targetClip" , 1 );
	mcl.loadClip( url, _mcTarget );
}

static function onLoadComplete( e ) // called before onLoadInit(best place for a
_lockroot, isn't it ?)
{
	_mcTarget._lockroot = true;
}
static function onLoadInit( e ){ ... }

In my external loaded movie made with flash I've that :
trace( this );  //_level0.__targetClip
trace( _root ); // _level0

Why ? What I 'm doing wrong ?
i've tried to put _lockroot every where, nothing changes, it seems like it
doesn't work.
Can anybody tell me what's going wrong please ? or is it a bug ?
Thanks in advance,




More information about the Haxe mailing list