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

Baluta Cristian cristi.baluta at gmail.com
Mon Dec 3 14:27:38 CET 2007


why do you need to lock the root anyway? use 'this'. or maybe will work if
you lock the root from flash.

On Dec 3, 2007 2:34 PM, <filt3r at free.fr> wrote:

> 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
> >
>
>
>
> --
> haXe - an open source web programming language
> http://haxe.org
>



-- 
Cristi
www.ralcr.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20071203/76f0a274/attachment.htm


More information about the Haxe mailing list