Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

63 users online



need help with a button

need help with a button

Currently viewing this thread: 1 (0 members and 1 guests)


kevindmac

kevindmac

Neverside Newbie
Status: Offline!

need help with a button

i was wondering if someone could right a tutorial on how to make a roll over link button on flash mx 2004 profesional.

basically what i want is a text>then when u hover over it a animation goes over it. like a scratch out or line through. then when u click it, it goes to a page. and when u are done hovering over it. the animation goes backwards to the text. could some one help me out.
thanks

rosem

rosem

Neversidian
Status: Offline!

You're in luck, I'm very bored and about to go to bed - but I thought I would help you out a little Smile You better like it because I embarass myself at the end by taking forever to close the damn panels to show the rest of the actionscript panel (I usually work with dual monitors each at over 1600X1200 each, and for this video I did it on one monitor @ 800X600 Smile )

So here is the video. You basicly make a button - tell flash to convert it to a button - set what you want the up over hit and release stats to look like - and then code it when you're all done Smile

Watch it here :

http://www.rosem.com/work/random/flashbutton.htm

If you have any questions afterwards, just post here, or pm me.

Thanks,
Mike

Last edited by rosem, March 28th, 2005 10:26 AM (Edited 1 times)

devonair

devonair

Neverside Newbie
Status: Offline!

That was pretty cool rosem..

Another approach is to make your "button" a movie clip that performs whatever animation you want. Put a stop() action in the first frame to keep it from playing immediately.

Now, if it isn't already, put it on the stage, give it an instance name of myBtn_mc or whatever you want then use this (this is some of the most useful script ever - I use it in just about every project I do with an animated rollover)..

PHP:

<?php
myBtn_mc
.onRollOver = function() {
    
this.onEnterFrame = function() {
        
this._currentframe == this._totalframes delete this.onEnterFrame this.nextFrame();
    };
};
myBtn_mc.onRollOut myBtn_mc.onDragOut = function () {
    
this.onEnterFrame = function() {
        
this._currentframe == delete this.onEnterFrame this.prevFrame();
    };
};
?>

hope that might help out..

d.

___________________

obod | weapons of mass dysfunction

kevindmac

kevindmac

Neverside Newbie
Status: Offline!

hey yeah i tried it and i just didnt get it. some questions. can u do with a text like. news instead of boxes. and what i was going for so u have a better idea is like at:
http://www.solidstaterecords.com/index.php

click that and then hover over like artist or news. and ull see what i mean.
and also during the tutorial it said press f4. what does that do. im on a g4 powerbook and when i presss f4 all it does is turns up the volume. thanks for your help.

-kevindmac-

rosem

rosem

Neversidian
Status: Offline!

yeah, just covert the text to shape, and you'll all set to go.

devonair, yeah I was going to say that the best way to do it would be to use MovieClips - but thats usually when people get more into actionscripting. Thanks for reminding me though. Smile

kevindmac

kevindmac

Neverside Newbie
Status: Offline!

hey rosem

i know but how do u do an animation on the roll over part. like on the link above

rosem

rosem

Neversidian
Status: Offline!

Oh, my bad...

Do you know how to do motion tweens?

Because you would just make one and put it in the "Over" state.

kevindmac

kevindmac

Neverside Newbie
Status: Offline!

no i dont know how to make a motion tween. im a farley new with flash. could u explain it to me

kevindmac

kevindmac

Neverside Newbie
Status: Offline!

is any one going to help me with the motion tween. on the over part of the button. ROSEM i need u buddy hahaha

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0121 seconds.