[osflash] [OT] since flashlounge is still blown away ... can you explain this:

eka ekameleon at gmail.com
Thu Feb 22 07:39:20 EST 2007


Hello :)

you target the bad movieclip ;)

var r:MovieClip = this.createEmptyMovieClip ('root', 1); // x=0 & y = 0

var c:MovieClip = r.createEmptyMovieClip('container', 1) ;  x=0 & y=0


var final = c.attachMovie('foo', 'clip1', 1, {_x:10, _y:10});  ; x=0 &  y =
0

trace(final._y) ; // 10 :)
trace (c._y) // 0 ...

The attachMovie modify the new movieclip and not the target of this
movieclip.

EKA+ :)

2007/2/22, Michael Stuhr <michael.stuhr at gmail.com>:
>
> var r:MovieClip = this.createEmptyMovieClip ('root', 1);
> var c:MovieClip = r.createEmptyMovieClip('container', 1);
> c.attachMovie('foo', 'clip1', 1, {_x:10, _y:10});
> trace (c._y) // traces 0 ???
>
> i always thought the above should trace '10' instead of '0' ?!
>
> why is that ?
>
> micha
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20070222/e885fbd7/attachment.htm


More information about the osflash mailing list