hey everyone,
i was wondering if anyone knew how to make an object fade in on mouse over, and fade out on mouse out, using action script
hey everyone,
i was wondering if anyone knew how to make an object fade in on mouse over, and fade out on mouse out, using action script
The object has to be Button or MovieClip.
In the action panel for that object use following...
onClipEvent (load) { //movieclip only, remove this instance if using Button objectthis._alpha = 50;
}
on (rollover) {
this._alpha = 100;
}
on (rollout) {
this._alpha = 50;
}
if You are using button, then give it an instance name and in frame of the button use following code
mybutton._alpha = 50;
is there a way to have it with smooth transitions?
your going to have to use java script for this. on the mouse over proc reduce opacity in an interval that you want, once that opacity is reached load the new image at the same opacity gradulay gaining opacity. that make since? there are scripts out there for it, i'll google it.
EDIT**
Here's a great tut i found for ya, this is exactly what you want I think
^^ sorry to sound harsh, but the above is complete horsepoop -
you are NOT going to have javascript for this, as flash can do this almost natively. alas, I don't know how.
you could try http://www.actionscript.org/tutorials.shtml
blah, have a nice day man. :-)
Okay, here we go, addressing each post in order:
djwilliams, he asked for "actionscript" solutions, which implies Flash. Your link was helpful (I took a look at it, and I'll come back to it if I ever need to make something fade in-out with JS), but ultimately not what he was asking for. Still, thanks for the contribution.
philou, if something "sounds harsh" you should probably rephrase it in the first place instead of posting it and apologizing ![]()
.
djwilliams, there's no need to react so harshly, as you did in the last paragraph of your post right above mine.
Consider this a warning, gentlemen. ![]()
-NC
horsepoop is indeed way better than my previous wording, dunno what made me say that.
apologies, DJ ![]()