I am trying to make an effct where a bunch of square fade in sequence (without using Voetsjoebas code btw, I’m practicing my own), but I have a problem with the handlers. I want to assign a handler to _root[“square”+(i-1)] but it doesnt work if I do. Check out the comments in the code as well. Thanks.
NB - What you see now is the proper effect but I need to move the handler to a different place so that I can assign a different handler to _root.
no no. I know associative array, what I dont understand is the ++i…i missed the dumb stuff. I looked it up and I see the operator but when I change it to i+1 it doesnt work. Isnt it the same?
If you use ++i it increments and then uses the new value, if you use i++ or i+1 it increments after the use and in the case of i+1 it doesn’t store the value unless you have i=i+1