View Full Version : help with nested buttons..
FlashPlaya
January 31st, 2006, 08:31 PM
I am trying to build a top nav that moves on resize.. I have it working but for some reason I can't get the sub buttons to work? Here is the example of that I am trying to achieve: http://www.dyaddesigns.com/emailer.swf
here is the file: http://www.dyaddesigns.com/emailer.fla
thanks!! :thumb2:
joene
January 31st, 2006, 09:49 PM
Ah, the problem of nested rollOvers. See, the thing with nested buttons is: when you roll over the "container", you can't evoke another onRollOver event for the nested buttons.
When you roll over the container button, you need to delete the onRollOver event for that button. That way you can access the buttons within. When you roll out, you can re-establish the onRollOver event.
FlashPlaya
February 1st, 2006, 12:50 AM
works with this
createEmptyMovieClip("checker", 500);
function btnOver() {
this.tween("_y", -10, 1, "easeOutShine");
delete this.onRollOver;
var _this = this;
checker.onEnterFrame = function() {
if (!_this.hitTest(_xmouse, _ymouse, true)) {
delete this.onEnterFrame;
_this.onRollOver = btnOver;
_this.tween("_y", -85, 1, "easeOutShine");
}
};
}
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.