hey i was wondering if any one could help me with a rollover im trying to creat, i’ve looked at he tuts on this site but it doesn’t help much. i want to make a button and when the mouse rolls over it, i want a line to appear under the button on one side then go to the other side and fade out, then reverse on the roll out, either i don’t know what im doing with instances or the code but it’s just not working.
ok I’m not sure if this is exactly what you wanted, but I put together a lil example to give you an idea. Hope it helps. =)
yes thats exactly, i just need some one to explain how they did it , and i would be so happy, mabey explain a little of the code cuz im pretty much a flash newb
Ok what I did was first create a movieclip that contains the lil tween animation of the bar sliding across and fading. Then I applied these actions to the movieclip:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
} else {
this.prevFrame();
}
It’s basically telling the movieclip “this” to play this.nextFrame(); if the mouse is on it, if not “if else” then play this.prevFrame(); or reverse the animation. I hope that explains it a bit more.