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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set up up a mouse over test on a button?

Status
Not open for further replies.

AtomicMatter

Vendor
Jan 7, 2003
3
GB
I have a problem with a nav bar I made, you can check out the navbar (along with a cool banner I made) here
If you run your mouse down the navabr you can see the animations, this is done by putting a button symbol inside a movie symbol. On the first frame of the movie symbol I have the button, in this frame if the mouse rolls over, the movie (stopped by frist frame) goes to next frame and plays (which plays the animation) the rest of the frames for the layer with the button in (frame 2 and to the end where it stops) if the mouse rolls out, the movie symbol will go back to frame 1 and stop. Get the picture?

Now, the problem with this is that if you move your mouse down too fast and the mouse cursor goes off the flash "area" on the page, the animation will finish and will stick on the last frame of the animation, even though the mouse is somewhere else.

I think I know a way around this. I want to run a check on that last frame to see if the cursor is still there on the button at that last frame, if it isn't, then go back to frame 1 (and therefore, stop) but if it is, go back to the start of the frame (script) and check again.

One huge problem, how do i do this?
 
Hmm...I can't see this as a problem that you have created. I tried out your buttons, but I could only get the scenario you described to happen once. If the rollout action reverses the animation then on every rollout the animation will reverse. You have done that, and the mouse pointer is no longer over the button, so that action will take effect. I'm not exactly sure what you think would be a solution to that, and how testing the last frame would give you a clue to the problem. Honestly I think that this is a Flash bug. Likely, the problem is that your frame rate too slow. What is your frame rate? I would advise that you increase it to at least 25-30.
 
I have taken this into consideration, the frame rate is already very high (85 fps) I can e-mail you the fla so you can take a look for yourself. Would that be OK with you?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top