Can I bring a symbol to the front (a la arrange) during a rollover event? I have some closely packed buttons and I’d like the current one on top.
Thanks,
WW
Can I bring a symbol to the front (a la arrange) during a rollover event? I have some closely packed buttons and I’d like the current one on top.
Thanks,
WW
An example would be something like
[AS]
on (rollOver){
this.swapDepths(1);
}[/AS]
*Originally posted by lostinbeta *
**An example would be something like
[AS]
on (rollOver){
this.swapDepths(1);
}[/AS] **
Hmmm, that doesn’t seem to do anything. Isn’t swapdepths strictly for movieclips?
Thanks,
WW
Erm… yeah, sorry, I forgot to mention that
In Flash MX you can use on handlers on movie clip symbols. So that would mean either your movie clip has to be your button, or you button has to be inside the movie clip and you will need to use hitTest to determine if the mouse is over the movie clip.
Button.prototype.swapDepths = MovieClip.prototype.swapDepths;
done. now the swapDepths method works for Buttons too.
I did not know you could do that. ROCKIN!
really!? :-\
well… now you know.
Yeah really, I am not too AS inclined :-\ I just type stuff and hope it works
lucky you… it usually works.
Yep, pure luck. Your’s works from skill, mine works from luck
nah… that’s not entirely true.
i’m a lucky guy too!! :beam:
Yeah, you’re lucky you’re so smart!
::if you want to challenge me I can smother you with flattery all night! :evil: ::
Originally posted by lostinbeta
Don’t mind me, I am quite hyper and feel like being annoying tonight
??
:!: No fair, quoting my posts in other threads tonight shouldn’t count!
07-03-2003 11:22 PM
ehmm… technically, you posted it yesterday. does it count?
Crap… stupid loopholes :sure:
After reading this post I felt someone needed to say… “…and knowing is half the battle”
Mer
[size=1]:: stops thread hijacking, has to get up early tomorrow ::[/size]
and since i’m retiring, i guess lost wins this one.
*Originally posted by kax *
**
Button.prototype.swapDepths = MovieClip.prototype.swapDepths;
done. now the swapDepths method works for Buttons too. **
This sort of works…the next problem is, on rollout(), the button (which has a rollover state) shows up as both the rollover() and rollout() states, one on top of the other. How to get the button to return to it’s rollout() state?
could you use a tell target to get it to return to is origional state?
:: Copyright KIRUPA 2024 //--