Topic: Movie Clip Depths (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=30156" title="Pages that link to Topic: Movie Clip Depths (Page 1 of 1)" rel="nofollow" >Topic: Movie Clip Depths <span class="small">(Page 1 of 1)</span>\

 
redroy
Paranoid (IV) Inmate

From: 1393
Insane since: Dec 2003

posted posted 03-31-2008 19:48

On this article it states that "Depth values for movie clips can range from -16384 to 1048575". I have a problem where I have 4 movie clips created at runtime that I want to be behind anything created within the movie. If I place those 4 movie clips starting at -16384, -16383 etc. they seem to overwrite the first few movie clips that aren't created at runtime. I'm going to have any number of objects within the movie so I don't want to have to use swapDepths() for everthing... I'd rather just throw the 4 I know of behind everything and not worry about it. I tried putting in a lower range like -17000 and it works... I'm just unclear as to why it's working and what problems that may cause. Any insight would be much appreciated... thanks!

redroy
Paranoid (IV) Inmate

From: 1393
Insane since: Dec 2003

posted posted 03-31-2008 20:45

Ok, I got it working by placing everything I wanted on top of the 4 clips in it's own movie clip... then calling it with attachMovie which allows me to set the depth... seems to be working. If anybody has any other insights/tips on depths please share. Thanks!

Blaise
Paranoid (IV) Inmate

From: London
Insane since: Jun 2003

posted posted 03-31-2008 22:50

What was the reason they had to be the lowest depths?

Would it have been easier to set _visible to false to position them offstage?

redroy
Paranoid (IV) Inmate

From: 1393
Insane since: Dec 2003

posted posted 04-02-2008 07:03

The 4 clips are the "background" of the entire movie... a dynamic box will adjust in size and position based off of vars passed to it... then the content will fill in (which was originally showing behind the box until I made the above adjustment).

Blaise
Paranoid (IV) Inmate

From: London
Insane since: Jun 2003

posted posted 04-02-2008 10:46

Oh ok, in which case your method is probably the way I would have gone with it.

Did you look at using swap depths?

redroy
Paranoid (IV) Inmate

From: 1393
Insane since: Dec 2003

posted posted 04-02-2008 17:33

Cool, very re-assuring.

Yeah I worked on trying to get swapDepths() working for almost 2 hours but because of my unique circumstances with dynamic movie clips mixed with inline and also the play head jumping back and forth it would create duplicate instances of whatever movie clip I was trying to move forward (whenever the play head jumped back).



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu