The only thing I would like to recreate is the yellow “people” tab and its functionality (have it pop out and still select the options inside then go back when you roll out). I would like to get this working for several tabs but am having a bit of trouble. I am using the “onMouseMove” which is causing it to move a bit slowly. Can anyone help me find a better way to do this? Here is the link to the example I mentioned and my actionScript so far:
this.onMouseMove = function() {
var bound1:Object = strength_btn.getBounds(this);
var bound2:Object = cleanliness_btn.getBounds(this);
var bound3:Object = productivity_btn.getBounds(this);
var bound4:Object = mainenance_btn.getBounds(this);
if (this._ymouse>bound1.yMin && this._ymouse<bound1.yMax && this._xmouse<bound1.xMax && this._xmouse>bound1.xMin) {
var up1:Tween = new Tween(strength_btn, “_y”, Strong.easeOut, strength_btn._y, 69, .5, true);
} else {
var down1:Tween = new Tween(strength_btn, "_y", Strong.easeOut, strength_btn._y, 264.1, .5, true);
}
if (this._ymouse>bound2.yMin && this._ymouse<bound2.yMax && this._xmouse<bound2.xMax && this._xmouse>bound2.xMin) {
var up2:Tween = new Tween(cleanliness_btn, “_y”, Strong.easeOut, cleanliness_btn._y, 69, .5, true);
} else {
var down2:Tween = new Tween(cleanliness_btn, "_y", Strong.easeOut, cleanliness_btn._y, 264.1, .5, true);
}
};
}
Any help is greatly appreciated!
Thanks,
renis