Skip to main content
Participant
April 4, 2008
Question

swapDepths

  • April 4, 2008
  • 1 reply
  • 191 views
Hello,

I searched for the topic on the forum and didn't find anything related. I am pretty green with flash and still learning the ropes, so please bear with me.

I have a .png file loading dynamically into a movieclip holder I created at authoring time. Now I have another movieclip I created at authoring time that rests behind the first movieclip. I wanted to swap those movie clips, but when I use:
instanceName.swapDepths(instance2Name)
it doesn't seem to work. Am I having issues with the depth fields because its loading that .png file dynamically?
Should I just manually set the depth with instanceName.swapDepths(10000)?
The code is at work so I can't post it until tomorrow - but I was just hoping for some general feedback.

thanks!
This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
April 4, 2008
there shouldn't be a problem if your instance names are correct (and both instances have the same parent).