Forum Moderators: open

Message Too Old, No Replies

Trace and swapDepths only working on initial rollover

Seems to be caching rollover status, action only on initial rollover

         

catcherintherye51

12:46 am on Feb 14, 2007 (gmt 0)

10+ Year Member



I have a bizarre situation - I have a trace action that reports the _y value and a swapDepth when I rollover a movieclip.


trace(_parent._parent._parent+" "+_parent._parent+_parent._parent._y);
_parent._parent._parent.swapDepths(_parent._parent._y);

Works fine when I rollover the moviclip initially, but when I roll off and rollover it again it doesn't perform the trace, nor will it swap depths again. I actually have a dozen similar movieclips on the stage, but it only traces upon the initial rollover of each clip.

Hope that makes sense - Any ideas? (Aside from the fact that all the _parents above my not be the best coding on my part.)

Thanks!