Movie clip button inside movie clip

hey ive got a slider menu which opens when clicked. however the buttons (also mc instanced) inside the slider mc wont work… here is the code:

//Menu Slider Background
_root.menuSlider_MC.onRollOver = function() {
new Tween(_root.menuSlider_MC, “_x”, Bounce.easeOut, _root.menuSlider_MC._x,-250, 20);s
}

_root.menuSlider_MC.onRollOut = function() {
new Tween(_root.menuSlider_MC, “_x”, Bounce.easeOut, _root.menuSlider_MC._x,-305, 20);s
}

_root.menuSlider_MC.onPress = function() {
new Tween(_root.menuSlider_MC, “_x”, Bounce.easeOut, _root.menuSlider_MC._x,50, 20);s
}

//Menu Buttons
_root.menuSlider_MC.web_MC.onRollOver = function() {
trace(“yes”);
}

the slider mc works however i cant seem to get the ‘web_MC’ to respond…

how can i fix this? cheers.

Hi,

This will not work because the last event


//Menu Buttons
_root.menuSlider_MC.web_MC.onRollOver = function() {
trace("yes");
}

will not be triggered, why?
Because of the rollover event of his parent


//Menu Slider Background
_root.menuSlider_MC.onRollOver = function() {
new Tween(_root.menuSlider_MC, "_x", Bounce.easeOut, _root.menuSlider_MC._x,-250, 20);s
}

Solution:
You could do a new movieclip inside menuSlider_MC, lets call it menuSlider_BG with this code


_root.menuSlider_MC.menuSlider_BG.onRollOver = function() {
new Tween(this._parent, "_x", Bounce.easeOut, _root.menuSlider_MC._x,-250, 20);s
}

Let me know how it worked.

btibia out :thumb2:

there not directly on elements?