Hi there, I am trying to write a few mouse events for multiple
movieclips. Now say I have the following:
function writeBtnEvents() {
for (var i:Number = 0; i < 35; i++) {
this._targetMc["btnHldr" + i].onPress = function(i:Number) {
trace("pressed: " + i);
}
this._targetMc["btnHldr" + i].onRollOver = function(i:Number) {
trace("roll over" + i);
}
this._targetMc["btnHldr" + i].onRollOut = function() {
trace("roll off");
}
}
}
I read somewhere that you can not pass args to an onPress function, etc.
Is this true? Is there a better way to accomplish something like this?
d
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com