Groups | Blog | Home
all groups > flash actionscript > april 2004 >

flash actionscript : bug in attachmovie?



jigen3
4/4/2004 8:04:58 PM
hi,
i am using flash mx and am attaching movies to a main movie:

main_mc.attachMovie("movie0", "movieInstance0", 0);
movieInstance0._x = 211;
movieInstance0._y = 132;

and it works ok. but when, for the sake of my own clarity i decide to change
the name "movieInstance" to "car"

main_mc.attachMovie("movie0", "car0", 0);
// _x, _y assignment FAILS
car0._x = 211;
car0._y = 132;

the movieclip doesn't appear in the spot where i assigned it (it appears at
0,0), changing the names back to "movieInstance" solves the problem, however,
though leaves me wondering. anyone else experience this quirky behavior?

jigen3
jigen3
4/4/2004 8:40:11 PM
also, attachMovie() behavior is very quirky to me, sometimes it works,
sometimes it doesn't, i reached a point where my original code doesn't do
anything at all now. anyone experience anything like this?
tralfaz
4/4/2004 10:54:39 PM

[quoted text, click to view]

car0._x = 211; // wrong
main_mc.car0._x = 211; // correct

You are attaching car0 to main_mc.
tralfaz

AddThis Social Bookmark Button