swapDepth and getNextHighestLevel don't play nicely

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 7th, 2007, 15:15
New Member
Join Date: Jan 2007
Location: Tokyo
Age: 38
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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
  1. starts off invisble,
  2. changes to visible
  3. swaps to the top level
  4. changes to invisible,
and then the movie loops.

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
Reply With Quote

  #2 (permalink)  
Old Jan 7th, 2007, 23:41
New Member
Join Date: Jan 2007
Location: Tokyo
Age: 38
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Re: swapDepth and getNextHighestLevel don't play nicely

For everyone who was worried, I figured out how to solve it. I now use attachMovieClip, which, of course, works fine with getNextHighestLevel
Reply With Quote
  #3 (permalink)  
Old Jan 8th, 2007, 05:17
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: swapDepth and getNextHighestLevel don't play nicely

Glad you solved your problem, sorry we did not get here sooner to help!!
Reply With Quote
Reply

Tags
swapdepth

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 04:39.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43