[haXe] mc._lockroot doesn't seem to work :(
filt3r at free.fr
filt3r at free.fr
Mon Dec 3 13:34:09 CET 2007
Thinks for your answer but it doesn'tt work in onLoadInit
In fact, I've seen, it works only after creating this movie clip, like that :
var mcl = new MovieClipLoader();
mcl.addListener( Main );
_mcTarget = mcRoot.createEmptyMovieClip( "__targetClip" , 1 );
_mcTarget._lockroot = true;
mcl.loadClip( url, _mcTarget );
...and not during loading ... :(
Another idea ?
Selon Baluta Cristian <cristi.baluta at gmail.com>:
> no, the best place is onLoadInit. onLoadComplete tells you only that
> bytesLoaded=bytesTotal, but the content itself is not initialized.
>
> On Dec 3, 2007 10:57 AM, <filt3r at free.fr> wrote:
>
> > 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,
> >
> >
> > --
> > haXe - an open source web programming language
> > http://haxe.org
> >
>
>
>
> --
> Cristi
> www.ralcr.com
>
More information about the Haxe
mailing list