silencer01
11-28-2006, 03:40 AM
Hi all,
I have a movieClip that which is acting like a button. Once the user rolls over the movie clip, it will attach movieClip which again will act like buttons. The problem i'm having is that i cannot get the button events to work for the attached buttons. Here is my code:
phMC.onRollOver = function(){
for (var i:Number = 0; i<2; i++) {
var posY:Number = phMC.mcInfo.ph._height;
phMC.mcInfo.ph.attachMovie("mcBtnInfo", i, i);
phMC.mcInfo.ph[i].txtInfo.text = "Test: " + i;
phMC.mcInfo.ph[i]._y = posY;
phMC.mcInfo.ph[i].btnBg.onRollOver = function(){
//this function is not working!!!
trace("over");
}
}
}
Thanks!
I have a movieClip that which is acting like a button. Once the user rolls over the movie clip, it will attach movieClip which again will act like buttons. The problem i'm having is that i cannot get the button events to work for the attached buttons. Here is my code:
phMC.onRollOver = function(){
for (var i:Number = 0; i<2; i++) {
var posY:Number = phMC.mcInfo.ph._height;
phMC.mcInfo.ph.attachMovie("mcBtnInfo", i, i);
phMC.mcInfo.ph[i].txtInfo.text = "Test: " + i;
phMC.mcInfo.ph[i]._y = posY;
phMC.mcInfo.ph[i].btnBg.onRollOver = function(){
//this function is not working!!!
trace("over");
}
}
}
Thanks!