PDA

View Full Version : help with activateTab() idea


zerodotcom
12-16-2006, 10:50 PM
I am trying to do something similiar to the microsoft.com website. (bottom tabs). I understand onRollOver, but the thing that I like (that i cant figure out) is that it doesnt immediately make the new tab appear. If you only rollover the link, it doesnt work, you have to actually stop on the link.

I tried it with just making the animation pause, but if the user doesn't hover over for a specified period of time, i dont want anything to happen.

sunlis
12-18-2006, 11:51 PM
I'm not really sure what you're asking, but this will delay the rollOver:
onRollOver = function() {
var count:Number = 0;
onEnterFrame = count();
};
count = function() {
count += 1;
if (count > 12) {
activateTab();
}
};
activateTab = function() {
//automagically make a tab do it's thing here
};

You might need to provide a bit more information about how your project is set up, so that we know how to code this.

zerodotcom
12-24-2006, 06:10 AM
You helped me. Thanks a lot.