I am loading in several jpegs using loaders and storing their widths in variables by using onComplete handlers.
But a problem I’m having is that I have to have those widths from all the different loaded jpegs in another function I’m using to calculate positions.
Since the code in that other function executes before the onComplete handlers fire, the variables are not being propagated at the right time, screwing up the position equation.
I can’t call the position function from an onComplete handler because it needs info from all the onCompletes, not just one, and plus the function where the positions are setup is called by a handler from a loaded XML file.
Solutions?
Need to see the code?
(this is my first post by the way so, Hello. I’ve been coming here as a lurker for answers for a long, long time though.)