I am looking for button roll-over effect, exactly the same as the ones in marcomedia site which fade slowly after your mouse moves out. It is tricky to make? I’m only newbie on the world of Flash MX.
Also what is best learning methods for learning to use flash? Like college course, on your own, samples or learning book etc
Thanks
system
February 7, 2003, 10:41am
2
There was a post on the action script forum about this as well. If you go through the MX tutorial you put 3 buttons in it that have a background colour fade in under the semi transparent buttons… If you need an example, its already on your computer, hehe… Unless ofcourse you deleted the tutorials
system
February 7, 2003, 2:21pm
3
Tutorial doesn’t cover the buttons from macromedia site, nor are samples files too.
I’m hoping anyone here have the samples so that I can work on them? Thanks
system
February 8, 2003, 5:33am
4
the best way of learning is doing tutorials (liike the ones in kirupa :)), for me it works atleast…
and i think theres a similar rollover effect in the tutorials section here, maybe you could try that
system
February 8, 2003, 7:18am
5
the effect is quite simple
its a simple mouse over and out effect, and to have the delayed reaction to the out, make the tween a bit longer than the over , so it will slowly fade out, if you want i can make a quick fla.
system
February 8, 2003, 7:24am
6
system
February 8, 2003, 7:28am
7
or u could do that, lol ,:beam:
system
February 8, 2003, 7:37am
8
your method is good, though its not really like the macromedia one, the roll out is longer than the over. can this be done in code as well?
system
February 8, 2003, 7:39am
9
oh !! so sorry soulty :-\
i didn’t see the if you want i can make a quick fla part … :*(
system
February 8, 2003, 7:43am
10
can the delay of the out tween be done in code? using your method?
system
February 8, 2003, 7:56am
11
i guess so … [size=1]untested[/size]
onClipEvent (enterFrame) {
if (this.hitTest (_root._xmouse, _root._ymouse, true)) {
this.nextFrame ()
} else {
this.gotoAndStop (1)
}
like that ??
system
February 8, 2003, 8:01am
12
thats the same as the fla isent it?
with that code, is it possible to have a longer tween for the out than have the same tween for both over and out.
system
February 8, 2003, 8:07am
13
well … as i can see … there’s no out animation in macromedia’s buttons
?? that’s what the last code does … it plays forward and returns to its original state when your mouse is not over them …
system
February 8, 2003, 8:10am
14
maybe i’m not getting your point … can you post your quick fla ? so i can see what are you talking exactly ??
system
February 8, 2003, 8:27am
15
ok here is the effect , as you can see the out tween is longer than the over tween, can this be done with your code??
system
February 8, 2003, 8:31am
16
oh i see …
the answer is no … the code would fade in and out the mc at the same fps :-\
system
February 8, 2003, 8:37am
17
could you use frame labels where the tween is, and call them for when the hittest is true and false?
system
February 8, 2003, 9:07am
18
well yes … but you’d need to use a flag so it won’t keep playing the same frame inAnimation
onClipEvent (enterFrame) {
if (this.hitTest (_root._xmouse, _root._ymouse, true)) {
if (!flag) {
this.gotoAndPlay(“inAnimation”)
flag ++
}
} else {
this.gotoAndPlay(“outAnimation”)
delete flag
}
}
or something like that …
system
February 8, 2003, 9:19am
19
kool, i 'll give it a go. =)
system
February 8, 2003, 12:04pm
20
Thanks kax and Soulty!
They are what I wanted, cheers! I have looked at Kax’s file, I am really surprised at how simple it is, supposed I need to know more about flash!
=)