Hey all,
Ive got a problem with a dynamic movie ive been working on that will become the basis of something greater. At runtime, I attach a movie called “thumb_mc” _root. This movie is attached to a class as shown here:
//constructor
Thumb = function(){}
//inherit from MovieClip
Thumb.prototype = new MovieClip();
//onLoad method
Thumb.prototype.onLoad = function(){
this.attachMovie("toolbar_mc", "toolbar_mc", 10);
}
Thumb.prototype.onRollOver = function(){
this.toolbar_mc.play();
}
Thumb.prototype.onRollOut = function(){
this.toolbar_mc.gotoAndStop(1);
}
//register class with library object
Object.registerClass("thumb_mc", Thumb);
The onLoad of this movie will create another movie from the library inside itself - “toolbar_mc”. Now, toolbar_mc contains a little animation and a button. And heres my problem:
After toolbar_mc is attached dynamically, the button inside it doesnt recieve any events - I cant rollover it or click it. If I stick it on the stage at design time, the button works.
What am I doing wrong here? I must be missing something!
Thanks for all and any help…
mafro