Flash Q
Flash Q
Out of context: Reply #2
- Started
- Last post
- 5 Responses
- System-Idle0
functions and for loops are also useful to set lots of mc's.
eg. if you had 20 buttons named 'btn1' - 'btn20' you can target these using the for loop and an incrementing variable.
script on btn: on(press){
resetfunc(this._name)
}this passes the name of the mc to the funtion
script for function:
function resetfunc(mcName){
for(i=0; i