actionscript question
actionscript question
Out of context: Reply #6
- Started
- Last post
- 11 Responses
- ornj0
maybe put references to the states into an array?
var states:Array = [...];
for(var i:Number = 0; i < states.length; states++) {
states[i].onRelease = function() { ... }
states[i].onRollOver = function() { ... }
// I do this to avoid the button getting stuck.
states[i].onRollOut =
states[i].onDragOut =
states[i].onReleaseOutside = function() { ... }
}- thats a little much for meflyingnowhere
- If you want to avoid copy pasting code 50 times its what you have to do. Suck it up.ornj
- hahahmikotondria3