This content has been marked as final. Show 3 replies
A couple of observations, maybe nothing to do with your problem:
1) you attach a movieClip to _root, but you use a getNextHighestDepth of a different movieClip (contentMC ???
2) did you just quickly type this from memory or did you copy/paste the code? You have spaces in front of and after "root."
Other than that, I haven't understood what you mean with "loading bars in the timeline". Maybe you can expand on that a bit?
Maybe it's a timing issue. Create an additional button somewhere and put your contentPath assignment line into it's onRelease handler. Then execute your flash file, wait for some time when you see your "green thingies", then press the button.
If you get different results, the player control simply isn't ready yet when you hand it the contentPath in the same code block.
Alternatively, use the Media.setMedia() method to set the contentPath.