PDA

View Full Version : swap depth


mitchinator1
07-21-2005, 07:12 PM
I'm not really sure why this happens, but for some reason, it does. I have my first layer, which we will call layer 1. The second, layer 2, is below that. Layer one is the cursor, layer 2 is the effect on the cursor. Now, for some reason, flash messes up the layers, and the effect appears on top of the cursor. I've been looking, but no luck so far. It would be great if you could help. thanks. :D

G3k0
07-21-2005, 07:51 PM
Thats odd. Are you sure they are on different layers? If so just try switching the two layers in the timeline window.

Swas
07-22-2005, 04:17 AM
I'm kind of confused by what you mean, you could swap the depths in AS

cursor.swapDepths (10000);

the syntax may be incorrect, i havent coded in a while.

The Brown Cow
07-22-2005, 08:02 AM
Movieclips attached by actionscript always appear at a higher depth than clips in the authoring environment.

Use Swas' swapDepths code to move the original cursor clip up to some reasonable depth.

mitchinator1
07-22-2005, 12:16 PM
ok thanks..thats what i was asking. thanks swas :)

EDIT* ok it didn't work, but i just removed the cursor. speaking of effects, does anyone have a scripted fire, that follows the cursor?

Nexus
07-22-2005, 08:53 PM
The search tool is a wonderful thing...

http://forums.xgenstudios.com/showthread.php?t=15607

G3k0
07-22-2005, 09:41 PM
sounds good. You can have lil sparks coming off of it and I have a decent burning sound. I think.

Chimpy
07-23-2005, 02:05 AM
Or maybe you could make it so in the Winter, frost comes off it, and in the Summer, fire comes off it. Just reprogram it a bit every 6 months.

mitchinator1
07-23-2005, 07:59 AM
Yeah, thats a good idea... or somehow set it up to work with the clock... thanks everyone!

oh nexus, yes i've seen those before, and they're pretty neat, but some of them are way too big to sue to follow the cursor..also with the effect following the cursor, it doesn't remove the movie clip, and it starts to lag after moving the cursor for a little bit. i can send the code if that helps, and there is a removemovieclip at the end.