all groups > flash actionscript > march 2006 >
You're in the

flash actionscript

group:

help with crosshair cursor


help with crosshair cursor Nevermynd
3/26/2006 5:33:30 PM
flash actionscript:
I am doing an arcitectural web site which you can view at www.informarch.com.
I am pretty new to flash but learning lots.
I'd like to possibly do a crosshair (a vertical line and horizontal line that
run the length and width of the movie and intersect where the cursor would be)
for the cursor and already have the code to do that.
The problem is that the flash site is made up of a main flash swf with
multiple other flash swf's that load and unload throughout the navigation of
different sections. So, I put the code in the main movie and of course as soon
as a new movie is loaded, the crosshair becomes hidden by the loaded movie
since the loaded movie is on top of the main movie.
Is there any easy way to fix this problem ?
Or will I need to go in and add that code to all the other movies that will
load? (like 70 or so) and if thats the only solution, will that actually work?
As I am writing this I could have tried that with a couple of them but haven't
yet.
Thank you in advance for any responses.

Re: help with crosshair cursor TimSymons
3/26/2006 6:36:49 PM
I assume that your cursor is in its own movieClip. To make sure that it stays
on top of everything else use the swapDepth() function and set your cursor
movieClip to a very high level. Something like:

crosshair_mc.swapDepths(500);

That should keep it above the other movies that you load.

Tim
AddThis Social Bookmark Button