Skip to main content
Known Participant
April 25, 2008
Question

MovieClip IN FRONT of an XML loaded jpg

  • April 25, 2008
  • 3 replies
  • 402 views
This is a general question.

I'm building an XML loading image gallery and I want a MovieClip to go IN FRONT of the images. I've tried to bring it to the stage in a function before, after and within the loading function, but it always appears behind the images and disappears. I've even tried drawing it code and setting in a function before, after and within the image loading function, but that doesn't work.

HELP!
This topic has been closed for replies.

3 replies

kglad
Community Expert
Community Expert
April 26, 2008
there's something other than that code causing your problem. if you add the child objects in that order mc will be on top. you do not need to swap depths.
kglad
Community Expert
Community Expert
April 26, 2008
and what did you check that shows mc is even defined?
Known Participant
April 26, 2008
mcBlock is a movieclip in the library. It is defined. I can see it appear first on the stage and then get covered up by imageloader and there are no complier errors. The code is working fine, it is just not appearing the order I want.
kglad
Community Expert
Community Expert
April 25, 2008
check the methods of the displayobjectcontainer class (in particular, swapChildrenAt() ) to see how you can control the relative depths of your display objects.
Known Participant
April 26, 2008
Didn't work. Although I successfully switch the children positions in the code below (confirmed with trace statements), the imageloader still appears on top of the movie clip. Any other suggestions anyone? Thanks.