AS2.0 help
AS2.0 help
Out of context: Reply #6
- Started
- Last post
- 10 Responses
- ondo0
try this
// This is an array, a list of the buttons used.
var myButtons:Array = [myButton_2, myButton_3, myButton_4];// Loops on all buttons from the first to the last one
for (var i:Number =0; i<myButtons.length; i++) {
var thisObj:Object = this;
// When the mouse rolls over this menu option... go down just a bit.
// NOTICE: I'm not taking into consideration the problem of having the hit area going down and "moving" the
// mouse area and out of the button (possible rollover flicking). This is just a simple example afterall.
thisObj[myButtons[i]].onRollOver = function() {
thisObj.scaleTo(90, 0.5, "easeoutelastic");
};
}the NOTICE: bit is what Im trying to solve (with invisible buttons)