Sorry... in my example you must read :
var final = c.attachMovie('foo', 'clip1', 1, {_x:10, _y:10}); ; x=10 & y =
10
EKA+ :)
2007/2/22, eka <[EMAIL PROTECTED]>:
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 <[EMAIL PROTECTED]>:
>
> 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
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org