I have 4 buttons on stage names but1, but2 etc…
Essentialy what I need to know is how can I obtain the name or array number of the currently rolled over button, the code below returns nothing:
buttons_array = "but1", "but2", "but3", "but4"];
overButton = function () {
var overbut = this._root[buttons_array*]
trace ("overbut = " + i)
//
for (var i in buttons_array) {
this[buttons_array*].onRollOver = overButton;
}
ie.
I roll over but1 and so overbut = but1,
Then I rollover but2 so overbut=but2, and so on…
Thx