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

movie clips acting as buttons 1

Status
Not open for further replies.

nofx1728

Technical User
Jan 26, 2006
65
US
I'm using Flash Pro 8. I have a movie clips titled productsNav_mc that animates in several other movie clips that are acting as my buttons. Inside my productsNav_mc I have my first mc (button) leather_mc. Inside my leather_mc I have my text layer, an arrow layer that is tweened to move the arrow closer to the text on rollover- and back to the original location on rollout, my invisibile button layer, my label layer, and my actions layer. The rollover tween lasts 15 frames and the rollout tween lasts 15 frames. There is a stop action on the 1st frame, and on the 15th frame. I put the actions on my invisible button (top most layer with content.)
Code:
on (rollOver) {
	gotoAndPlay("rollover");

}

on (rollOut) {
	gotoAndPlay("rollout");

}

on (press) {
	getURL("[URL unfurl="true"]http://www.tek-tips.com");[/URL]

}

Here is my problem. The movie plays correctly if you passively move your mouse over and off of the button. But if you quickly jerk your mouse away the rollover and rolloff events get messed up. They skip the tween part, and go straight to the ending position. How can I fix this glitch to make sure my movie is going to play correctly no matter what the users movements are? I would think the solution would be to increase my inv button size, but I'm limited on space, and I'll run into my other mc's. Please help.

Thanks,

nofx1728
 
hmm.. never heard of it before, I'm going to do some research on it from google. Thanks for the advice. Does this mean that I don't need to have both a rollover and rolloff tween? I just need the one? Currently I have the first 15 frames tweening the rollover, and the next 15 tween the rolloff.

nofx1728
 
I'm lost on this hitTest. Been trying to research it on google, can't find any example of what I'm trying to accomplish. I don't have any x,y values, so what do I put in the ()?

Thanks,

nofx1728
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top