This is a discussion on "swapDepth and getNextHighestLevel don't play nicely" within the Flash & Multimedia Forum section. This forum, and the thread "swapDepth and getNextHighestLevel don't play nicely are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
swapDepth and getNextHighestLevel don't play nicely
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
swapDepth and getNextHighestLevel don't play nicely
I've got a MC that I need to show briefly on top of everything else in the movie, so I used swapDepth(_root.getNextHighestLevel()).
(I can't just set the depth to an arbitrarily high number, because I'm using AS to draw lines during the movie. They become the new highest level, so the next time that arbitrary number is not high enough.) I've boiled everything down to a simple example involving two MCs. The movie has a simple plot involving our protaganist, the black circle. He
BUT, the second time, step 4 doesn't work. The black circle doesn't become invisible! (*) The .fla file is here. (*) Also of note, when the movie loops (the first time), the black circle is again on the bottom level. Seems strange that it doesn't retain its recently swapped-to level. Super-thanks to anyone who can help. - Rob |
|
|
|
|||
|
For everyone who was worried, I figured out how to solve it. I now use attachMovieClip, which, of course, works fine with getNextHighestLevel
|
![]() |
| Tags |
| swapdepth |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| play sounds, online | fmehdi | JavaScript Forum | 2 | Apr 4th, 2008 14:02 |
| VIPortals - Play Games, Win $$$ | gsquare567 | Free Web Site Critique | 2 | Mar 28th, 2008 22:04 |
| I cant get this flash video to play | mrb83sxt02 | Flash & Multimedia Forum | 1 | Mar 5th, 2008 14:36 |
| play | benbacardi | Flash & Multimedia Forum | 5 | May 10th, 2004 14:36 |