Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

buttons & movies

Status
Not open for further replies.

neobadlands

Programmer
Sep 2, 2000
24
DE
OK, this is what I´m trying to do, respectively what I did:

I want a very small arrow (it is a font arrow) to work as a button. But since it is so small it is kinda hard to hit.
That´s why I put a transparent rectangle over it, sized so that it is comfortable to hit, and made it the button.
So far, so fine.
On mouseover I want the button to glow, smooth.
So on mouseover I load a 2nd swf, in which it starts to glow, and put it right on my arrow.
The prolem is that this 2nd swf is loaded into level 1, so it is right over my transparent rectangle, and I get problems with the Hit-function if I move the mouse over this 2nd arrow.
It is even a little more complicated, because on mouseout I want the arrow to smoothly cool down, therefore I made a 3rd swf, which I load on mouseout, at the same time I unload the 2nd "glow" swf.
It works, as long as I do not move my mouse on the arrow.
Can anyone follow, and maybe tell me an easier way to do it?!

Thanx
Neo
 
Hi,
I may be barking up the wrong tree here but why are you loading .swf files into the mouse events? Wouldn't it be easier to put in a movie symbol into the mouse over and out? Then you wouldn't have the level problem. Also it could be one movie with the rollover and off. Put a stop action in between and do a go to and play frame "whatever" to play the mouse out.
If the rollover is very complicated then it might be better to make it a movie clip and have the go to and play actions within it. Use variables to set the state of the button. I.e. event = "1" for the btn up and event = "0" for the btn down and so forth.
Hope this is vaguely comprehensible and a helps a little bit.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top