Button roll-over effects like Macromedia site?

I am working on my buttons a similar to Soulty’s but it’s far too complicated for me, I think they r over-engineered for a so simple button animations! I couldn’t get them to work as it was trickly to work on which layer, which graphics should convert to and which frames etc. :frowning:

But I had done a menu, working the same was as Kax’s…it looked great but I would like to make out-animation last a bit longer. I suppose there is a simpler way to make out-animation last longer? Cheers

hey barnettgs , yeah my style is kinda rough and ragged, because iam not very AS based (not yet anyway, (-: ) , but if you want to make out-animation last longer you might be able to use the code Kax wrote earlier.



onClipEvent (enterFrame) {
if (this.hitTest (_root._xmouse, _root._ymouse, true)) {
if (!flag) {
this.gotoAndPlay("inAnimation")
flag ++
}
} else {
this.gotoAndPlay("outAnimation")
delete flag
}
}

on his original fla , in the movie clip he had one tween, so i though maybe you can have two tweens, one for over and one for out, and use a frame label for out, and then call it in the AS. I have yet to try this, beacause i have been busy with work, but give it a go and tell me how it went. :smirk:

however … i wouldn’t do that :slight_smile:

you’d be using cpu resources for no reason …
i’d use a simple onRollOver and onRollOut handlers :smirk:

by the way … in the script i posted before you’d need another flag in the [color=red]else[/color] statement … i just noted that i didn’t wrote it. once again i wouldn’t do that … besides now the script would be bigger for such a little thing

i’d use a simple onRollOver and onRollOut handlers

hook us up a example, for barnettgs sake, :wink:

…hehe

for barnettgs sake … here’s the example :wink:

[size=1]**NOTE: **you’re allowed to hit me with a trout after seeing the example … :P[/size]

that file looks o so familiar, lol :smirk:

really ?? i don’t know why you’re saying such thing …

i just made it from scratch !! :stuck_out_tongue:

but seriously , is there any other way to do this?

there’s always another way to do everything :slight_smile:

i have something in mind but i’ll test it later … i’m supposed to be working right now :sure:

thanks for trying to help me out! :wink:

Also there is one thing I forgot about, is linking them up. How do I link buttons up in action script? I haven’t done them before.

Cheers

Ok, I have done it now…using ‘roll over’ and ‘roll out’ functions in Action Script.

It works fine with normal mouse movement but if I move mouse across button too fast, it will flash instead of glowing. So I know it isn’t same as macromedia site as they don’t flash if you move mouse too fast.

So here is my Fla file shown below and see if there is something wrong with it. Thanks!

thats great dude, nice work, one question , how did you make flash go into those movie clips and use goto statements???

dnt u usually use

onClipEvent (enterFrame)

*Originally posted by Soulty *
**thats great dude, nice work, one question , how did you make flash go into those movie clips and use goto statements???

dnt u usually use

onClipEvent (enterFrame) **

I had tried OnClipEvent, it’s bit complicated for me to use it…how do I enable rollout with these code like OnClipEvent? But I suppose it will be same effect?

The reason its ‘flash’ because I move mouse on it, first few frames playing but when mouse moves out too early, it jumps to frame 17 making it flash rather than playing it all the way from 2 to 16 then goes dim from 17 to 32.

yeah i knew about the flash thing, just curious on how u made the movie a button without using onClipEvent, but i guess u can use movie clips as buttons in flash MX, didnt really think about that.

*Originally posted by Soulty *
**yeah i knew about the flash thing, just curious on how u made the movie a button without using onClipEvent, but i guess u can use movie clips as buttons in flash MX, didnt really think about that. **

I can see what u mean. I guess I am using rollover/rollout because I intended to use it as a button. Anyway, I will figure out a way to prevent button ‘flashing’ if mouse move across fast.
Cheers

posted by Soulty
but seriously , is there any other way to do this?

=)

lol

Nice, so you got it workin, even does the small fade when you quickly pass over it. nice work! :slight_smile: :slight_smile:

:::but seriously if there another way to do this?? ,

hehehe , lol :crazy:

lol :stuck_out_tongue:

actually i had the file two days ago … i forgot to reply until i saw this thread again a few minutes ago :crazy:

lucky you did , cant let talent go to waste!

by the way , why is your framerate on your timeline sooooooooooo BIG???

48fps?? that would make not so good computer choke on a preloader!:smirk:

you think so ?? that’s my default fps =)

i like fast and smooth animations. but i change to 24 almost everytime i do something for the forums