This content has been marked as final. Show 3 replies
what's the initial value of depthMC? are those code blocks in two functions or some other block that repeatedly execute?
klad, depthMC is variable with the value of depth that a each movie clip will have. To give you more input, I am loading a XML file with information about my movie clips. One of the values the XML files gives me is depth, so I got the value and put it in depthMC. Basically I have only two values, “0” and -1. They specify if my movie clip will go to the beginning of my container or at the end.
About the block, I only use one each time for testing. I interchange them to check result off line and on line.
are you converting your xml depth data to a number?
are you executing the above code AFTER your xml onLoad method has executed so your data have loaded and been parsed BEFORE you try and use them?