everything is in the library correctly.
now the ‘pic_box’ gets attached but the other one doesn’t. if i do this:
_root.attachMovie(‘load_bar’, ‘load_bar’, 1, {_x:100, _y:100})
it attaches fine.
I have a class attached to the pic_box, and if i remove the class ID in the linkage panel, it attaches the load bar. It has nothing to do with what is contained in the class because if i comment out all the code but the:
class name {}
it still doesn’t work.
I am REALLY stumped…
which thing are you talking about the class, or the attachmovie?
Either way, i know i did that right, because its worked in other projects i’ve done, i’ve just never needed to attach a movie, and then attach a movie to the attchted movie.
now have a look at this, i dont know if i am going mad or something, but i SWORE, that the only way you can have a MC use a class is if you use attachmovie…
well, have a look at the file i have attachted. Any ideas of why is it doing this?
I think i have narrowed down the problem.
Is has to do with assigning classes to a MC thats in the library and then modifying something to the MC in the library that had a class assigned to it. Modifying includes loading a jpg or attaching a another MC onto it.
Look at the fla and .jpg i have attached (mx2004only), if you change the class ID of the pic_cont in the library to nothing it loads fine, if you have it changed to the pic_cont class then it doesn’t work…
if anybody has ANY idea on how to fix this, i would GREATLY appreate it!
ahhhh,
i fixed problem.
My class was only defined by class name{}
i needed to extend to the movie clip class to inherite all the movieClip class’s functions…
so i needed to do class name extends MovieClip {
HTH, anyone who had the same problem as me…