rollOver/rollOut on stage

rollOver/rollOut on stage

Post by aaronexodu » Thu, 15 Sep 2005 04:46:41


I created a very simple text ticker using the Label component. The text comes
from an external file and I set the label.html = true, so that it is easy to
just include html to change the text properties and to make it very easy to
insert a hyperlink. The problem is, I want the ticker to slow down when you
mouseover the movie. My first instinct was to just make a giant transparent
button, and that works fine, but when I do that, you can't click on the
hyperlink anymore. Is there some kind of rollOver/out event that can be used
to detect when the mouse has entered or left the stage? Is there any way to
emulate that? I've tried several method's including checking the mouse's
coordinates against the stage with hittest, but those coordinates don't always
have values outside the stage when the mouse leaves it.
 
 
 

rollOver/rollOut on stage

Post by bwm_raze » Thu, 15 Sep 2005 06:37:44

Can't you just place the invisible button behind the text?

 
 
 

rollOver/rollOut on stage

Post by aaronexodu » Thu, 15 Sep 2005 07:34:53

I've tried that too. What happens is when you mouse over the link it speeds up the ticker again because the lower button triggers the rollout event, making it a bit of a pain to click on :-P