MC Fade On RollOver/RollOut Problem
I'm trying to fade my mc using goto actions on the timeline of the mc. The first time you rollover and then rollout, the AS works as expected. After that it appears to not execute the rollover again, but instead jumps to the rollout code. What am I doing wrong? Any help is appreciated. Thanks
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 02-26-2004, 04:13 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Quick Fade In / Fade Out On RollOver / RollOut
While taking a break from trying to figure out how to accomplish something in Flash MX 2004, I stumbled upon a site that is a perfect example of what I'm trying to do.
http://www.aperfectcircle.com
The project I'm working on has a circular navigation system with eight buttons around the circumference of the circle. The actual buttons are just symbols, so I want to have the name of the link quickly fade in above the middle of the circle when you mouseover a button, and then the name quickly fades out when the mouse leaves that button's hit area. I don't want to use tweened animation in a MC on the button's over state, because I want the fading to be totally smooth if you quickly move from one button to another, or if you move the mouse out of the hit area before it has fully faded in. I know there is a way to do this with hitstate and _alpha, but I have never used these commands before, and I can't find a very clear example of how to implement this behaviour with them.
So, in short, I need to put a script on a button, that will fade in another MC on rollover, and fade it out on rollout.
Please look at the site mentioned above to see exactly what I'm talking about, and thanks for any insight you can provide.
MC Fade On RollOver/RollOut Problem
I'm trying to fade my mc using goto actions on the timeline of the mc. The first time you rollover and then rollout, the AS works as expected. After that it appears to not execute the rollover again, but instead jumps to the rollout code. What am I doing wrong? Any help is appreciated. Thanks
On Rollover Fade In / Rollout Fade Out
hi i have a picture that should fade in on rollover and fade out on rollout.
i also searched the forums and tried this code:
Code:
stop();
t1._alpha = 0;
function fadeOut() {
t1._alpha -= 5;
if (t1._alpha == 0) {
clearInterval(myIntervalId);
}
}
function fadeIn() {
t1._alpha += 5;
if (t1._alpha >= 100) {
clearInterval(myIntervalId);
}
}
t1.onRollOut = function() {
myIntervalId = setInterval(fadeOut, 50);
};
t1.onRollOver = function() {
myIntervalId = setInterval(fadeIn, 50);
};
now it fades in and out again but after that it won't fade in again.. and its kinda "un-smooth" (maybe cuz of fps?)
thx for help
nico
RollOver/rollOut With Text Fade Problems
I seem to be having a unique problem with my current project...
What I need to do is a simple fade in out of text beside a button when it is rolled over/off.
I searched this forum and tried many different aproaches to it. As of now I have a basic "gotoandplay" action attached to a rollOver and rollOut of the button. (As you can tell I just switched from flash 5 and miss my telltarget...)
Like so:
__________________________________________
on (rollOver) {
with (_root.PHOTOfadeinout) {
gotoAndPlay("in");
}
}
on (rollOut) {
with (_root.PHOTOfadeinout) {
gotoAndPlay("out");
}
___________________________________________
This seems to work fine is you arrow over everything SLOW, but when you just graze a button with the pointer then it tends to fade in the text but not fade it out. Or you can be on the button and once you leave it then it won't fade out the text.
Again, the action script I'm using should work, and from what I've been reading for the last hour doing it that way has been sudjested many-a-time...
What I was wondering is if there is some actionscipt that I could use that will constantly check to see if the mouse is over the button? That way it won't get "hung up" and show the Fadeinout movie unless it's supposed to.
Attached is a file of my buttons.
Thanks very much...
Taking A Button And Making It Fade In And Out On Rollover And Rollout
hello,
i am trying to modify some code i have for expaning rollover buttons,
i want to use alpha to have it start at 50% transparency, then when you rollover it slowly goes to 100%... then when you roll off, it slowly goes back to 50%.
whats happens now, is that it starts at 100% transparency and just fades to nothing on rollover, the Rollout is doing nothing
This is my code so far, it invloves a button inside of a MC,
the MC code is this
onClipEvent (load) {
fade = 50;
}
onClipEvent (enterFrame) {
if (this._alpha > fade) {
this._alpha += 2;
} else if (this._alpha < fade) {
this._alpha -= 2;
}
}
the button code is this..
on (rollOver) {
fade = 130;
}
on (rollOut) {
fade = 100;
}
RollOver Button Fade In...rollOut Button Fade Out
ok, maybe this is simple but i cant get it to work....
i want to make a button (a circle) and when i roll over it a block of text or something should fade in and then stop at a fully visible state. it should wait at that state of appearance until the mouse rolls out of the button's hit area which should cause the the text block to fade out showing the button in it's normal Up state...i can't figure out what i have to do (scripting or MC wise) to make this work...please help me! thanks!
*Julie
A Rollover/rollout Movieclip With Rollover/rollout MC's Inside It
Hi there, I am trying to figure out how to make a bottom bar similar to the one seen on www.1000pis.com how he's got clips with animations inside the bar- here's what I've got so far: http://cg.psdsliced.com/test1/ - as you can see I have a date/time MC inside the bar_mc which is working fine but whenever I try to have a new rollover/rollout movieclip (or button) inside the bar_mc it won't work/won't show rollover animation.
so does anyone know how the guy at 1000pis.com does it or can offer me any help at all?
Problem With 3 Functions Button > On (rollOver) On (rollOut) On (rollOut) ...
on (rollOver) {
tellTarget ("_root.maitre_reception") {
gotoAndPlay (300);
}
}
on (rollOut) {
tellTarget ("_root.maitre_reception") {
gotoAndPlay (1);
}
}
on (rollOut) {
tellTarget ("_root.maitre_reception") {
gotoAndPlay (320);
}
}
. .. ... .... ..... ...... ........ ......... . .. ... .... ..... ...... ........ .........
A Button assigned with action above is used to control movie
clip , maitre_reception , when mouse is rolled over and rolled out ;
that works fine except that has the inconvenient to force me to
maintain the mouse over the button after releasing the click
in order to work - by obvius reasons because if I click and
roll out the mouse cursor it occurs the second condition:
on (rollOut) {
tellTarget ("_root.maitre_reception") {
gotoAndPlay (1);
causing the movie to go and play 1 before movie goes and
play 320 ;
Is there a way to avoid that ?
(to ensure only one click makes it
to play frame 320 even if cursos has been rolled out )
. .. ... .... ..... ...... ........ ......... . .. ... .... ..... ...... ........ .........
Button RollOver/RollOut Effects WITH Looping On RollOver
I'm planning to use this tutorial, below to make a button:
http://www.kirupa.com/developer/mx2004/button_effect.htm
My question is how can I make it so that only on the rollover, the effect will keep looping?
Example: http://jump5.com/
On the right side, the navigation has this nice hover animation with the pointing arrow that continues to twitch on rollover.
AS2 - Refine My Code...it Sucks : Six Clips Fade. Rollover One...other Fade Out
So I have six movie clips. When you rollover one I want the other five to fade out. this code that I did works but it has a potential to break with quick strokes. Any help would be great thanks. I also have a button surrounding the six clips that fade all back up. The reason for that is while they are going from clip to clip i dont want them to fade in a out.
------Here is a link of what im trying to acheiving.------
http://www.stellamccartney.com/us/en/beauty/
Thanks alot everyone.
------And here is my code-------
import mx.transitions.Tween;
import mx.transitions.easing.*;
function fadeOut(mc) {
var begin = 100;
var end = 25;
var time = .1;
var myTween:Tween = new Tween(mc, "_alpha", Regular.easeOut, begin , end , time , true);
}
function fadeIn(mc) {
var begin = 25;
var end = 100;
var time = .1;
var myTween:Tween = new Tween(mc, "_alpha", Regular.easeIn, begin , end , time , true);
}
btnOff.onRollOver = function() {
if (by1._alpha != "100") {
fadeIn(by1);
}
if (by2._alpha != "100") {
fadeIn(by2);
}
if (by3._alpha != "100") {
fadeIn(by3);
}
if (by4._alpha != "100") {
fadeIn(by4);
}
if (by5._alpha != "100") {
fadeIn(by5);
}
if (by6._alpha != "100") {
fadeIn(by6);
}
};
by1.onRollOver = function() {
if (by1._alpha != "100") {
fadeIn(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by2.onRollOver = function() {
if (by2._alpha != "100") {
fadeIn(by2);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by3.onRollOver = function() {
if (by3._alpha != "100") {
fadeIn(by3);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by4.onRollOver = function() {
if (by4._alpha != "100") {
fadeIn(by4);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by5.onRollOver = function() {
if (by5._alpha != "100") {
fadeIn(by5);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by6.onRollOver = function() {
if (by6._alpha != "100") {
fadeIn(by6);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
};
[CS3] My Code Sucks : Six Clips Fade. Rollover One...other Fade Out
So I have six movie clips. When you rollover one I want the other five to fade out. this code that I did works but it has a potential to break with quick strokes. Any help would be great thanks. I also have a button surrounding the six clips that fade all back up. The reason for that is while they are going from clip to clip i dont want them to fade in a out.
------Here is a link of what im trying to acheiving.------
http://www.stellamccartney.com/us/en/beauty/
Thanks alot everyone.
------And here is my code-------
import mx.transitions.Tween;
import mx.transitions.easing.*;
function fadeOut(mc) {
var begin = 100;
var end = 25;
var time = .1;
var myTween:Tween = new Tween(mc, "_alpha", Regular.easeOut, begin , end , time , true);
}
function fadeIn(mc) {
var begin = 25;
var end = 100;
var time = .1;
var myTween:Tween = new Tween(mc, "_alpha", Regular.easeIn, begin , end , time , true);
}
btnOff.onRollOver = function() {
if (by1._alpha != "100") {
fadeIn(by1);
}
if (by2._alpha != "100") {
fadeIn(by2);
}
if (by3._alpha != "100") {
fadeIn(by3);
}
if (by4._alpha != "100") {
fadeIn(by4);
}
if (by5._alpha != "100") {
fadeIn(by5);
}
if (by6._alpha != "100") {
fadeIn(by6);
}
};
by1.onRollOver = function() {
if (by1._alpha != "100") {
fadeIn(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by2.onRollOver = function() {
if (by2._alpha != "100") {
fadeIn(by2);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by3.onRollOver = function() {
if (by3._alpha != "100") {
fadeIn(by3);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by4.onRollOver = function() {
if (by4._alpha != "100") {
fadeIn(by4);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by5.onRollOver = function() {
if (by5._alpha != "100") {
fadeIn(by5);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by6.onRollOver = function() {
if (by6._alpha != "100") {
fadeIn(by6);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
};
Refine My Code : Six Clips Fade. Rollover One...other Fade Out
So I have six movie clips. When you rollover one I want the other five to fade out. this code that I did works but it has a potential to break with quick strokes. Any help would be great thanks. I also have a button surrounding the six clips that fade all back up. The reason for that is while they are going from clip to clip i dont want them to fade in a out.
------Here is a link of what im trying to acheiving.------
http://www.stellamccartney.com/us/en/beauty/
Thanks alot everyone.
------And here is my code-------
import mx.transitions.Tween;
import mx.transitions.easing.*;
function fadeOut(mc) {
var begin = 100;
var end = 25;
var time = .1;
var myTween:Tween = new Tween(mc, "_alpha", Regular.easeOut, begin , end , time , true);
}
function fadeIn(mc) {
var begin = 25;
var end = 100;
var time = .1;
var myTween:Tween = new Tween(mc, "_alpha", Regular.easeIn, begin , end , time , true);
}
btnOff.onRollOver = function() {
if (by1._alpha != "100") {
fadeIn(by1);
}
if (by2._alpha != "100") {
fadeIn(by2);
}
if (by3._alpha != "100") {
fadeIn(by3);
}
if (by4._alpha != "100") {
fadeIn(by4);
}
if (by5._alpha != "100") {
fadeIn(by5);
}
if (by6._alpha != "100") {
fadeIn(by6);
}
};
by1.onRollOver = function() {
if (by1._alpha != "100") {
fadeIn(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by2.onRollOver = function() {
if (by2._alpha != "100") {
fadeIn(by2);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by3.onRollOver = function() {
if (by3._alpha != "100") {
fadeIn(by3);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by4.onRollOver = function() {
if (by4._alpha != "100") {
fadeIn(by4);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by5.onRollOver = function() {
if (by5._alpha != "100") {
fadeIn(by5);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by6.onRollOver = function() {
if (by6._alpha != "100") {
fadeIn(by6);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
};
Button Rollout Fade
Ok, here's the problem: I'm creating a menu at work. The client wants the buttons to be 60% alpha, and switch to 100% alpha on rollover. So far so good.
The problem is that they want the alpha channel to fade back to 60% over several frames when the person rolls off the button. Since there isn't a button state for Rolloff, I can't simply drop an alpha fade movie clip in like I could with a fade in. (At least to my knowledge.)
I've tried several options so far, but none of them workover time: they simply drop the alpha down by one iteration, or back to 60% instantly. Does anyone know of an actionscript that can make a button (Or a movie clip it sits in) fade fout over time on a Rolloff action?
Sound To Fade On Rollout
I have sound attached to some buttons. ok it plays fine, but when i rollout the sound stops to abruptly it sounds terrible. How can i make it so the sound fades out for around 2 seconds instead of just stopping.
My code:
on (rollOver) {
mysound = new Sound();
mysound.attachsound("spooky");
mysound.start(0,1);
mysound.setVolume(100);
}
on (rollOut) {
mysound.stop();
}
Your help is appreciated.
Fade Button Out On RollOut
I know this seems really, really basic, but there's got to be another way to do this. I want The button to fade into a brighter color when you mouse over, then fade out (in a different way it fades in) on rollOut. I searched the tutorials on the site and I found out how to make it play backwards on rollOut, but I don't want it to do that. I want it to have a completely different animation on rollOut than rollOver. Right now I got it working, but not the way I want it to. On the "up" frame of the button, I have a movie clip fade out, and on the "over" frame I have it fade in. The only problem that this causes is when I jump to another part of the movie, the "up" animation plays again, and it looks really bad when it does because it's kind of out of nowhere.. Is there another method of having a rollOut animation other than the method I'm using? I'd really appreciate it. Thanks!
[F8] Sound Fade-out On Rollout
Hullo,
I'm currently trying to add a short sound to a button (about 2 seconds of audio), so that the sound begins playing on rollover, and then I want it to quickly fade out on rollout (If rollout occurs before the sound has reached the end as opposed to just abruptly cutting out).
Is there an easy way to do this?
Any help would be much appreciated. Thanks, and hope you had a Merry Christmas.
Dr. Cabbageface
Rollout Fade-out Not Working
Hello
I attach Movies(menu description) from the library fading them in and out.
What I like to achieve is that they fades in on Rollover, fades out on Rollout,
fades in on Release while fading out the description of last pressed, but at the same time the Rollover and Rollout effect for the description should still work.
At the moment nearly everything works except for the fade out.
Why?
PHP Code:
//import classes
import mx.transitions.Tween;
import mx.transitions.easing.*;
swfArray = new Array("page1.swf", "page2.swf", "page3.swf", "page4.swf", "page5.swf", "page6.swf", "page7.swf", "page8.swf");
var prevCon:MovieClip = this.createEmptyMovieClip("empty", this.getNextHighestDepth());
var prevCon_M:MovieClip = this.createEmptyMovieClip("empty_M", this.getNextHighestDepth());
//mcs to fade out (this with alpha 100);
prevCon._x = 100;
prevCon._y = 0;
prevCon_M._x = 45;
prevCon_M._y = 220;
var n:Number;
//memorize last pressed
function fadeTrans(myPrevClip:MovieClip, myClip:MovieClip) {
fadeOut = new Tween(myPrevClip, "_alpha", None.easeNone, 100, 0, 1, true);
fadeOut.onMotionFinished = function() {
fadeIn = new Tween(myClip, "_alpha", None.easeNone, 0, 100, 1, true);
removeMovieClip(myPrevClip);
fadeIn.onMotionFinished = function() {
for (j=1; j<=8; j++) {
_root["btn"+j].enabled = true;
}
//enable buttons
_root["btn"+n].enabled = false;
//but not last pressed
};
};
}
function fadeIn_M(myClip:MovieClip) {
new Tween(myClip, "_alpha", None.easeNone, 0, 100, 1, true);
}
function fadeOut_M(myClip:MovieClip) {
new Tween(myClip, "_alpha", None.easeNone, 100, 0, 0.5, true);
}
for (var i = 1; i<=8; i++) {
this["btn"+i].ID = i;
this["btn"+i].onRollOver = function() {
this.gotoAndStop("over");
var con_M:MovieClip = this._parent.createEmptyMovieClip("con_M"+this.ID, this._parent.getNextHighestDepth());
con_M._x = 45;
con_M._y = 220;
con_M._alpha = 0;
this.onEnterFrame = function() {
con_M.attachMovie("ITEM"+[this.ID], "ITEM"+[this.ID], 10);
fadeIn_M(con_M);
delete this.onEnterFrame;
};
};
this["btn"+i].onRollOut = this["btn"+i].onReleaseOutside=function () {
this.gotoAndStop("up");
fadeOut_M(con_M);
};
this["btn"+i].onRelease = function() {
//trace(this);
n = this.ID;
for (j=1; j<=8; j++) {
this._parent["btn"+j].enabled = false;
this._parent["btn"+j].gotoAndStop("up");
}
//disable buttons
var con:MovieClip = this._parent.createEmptyMovieClip("con"+this.ID, this._parent.getNextHighestDepth());
con._x = 100;
con._y = 0;
con._alpha = 0;
con.loadMovie(swfArray[this.ID-1]);
this.onEnterFrame = function() {
var percent:Number = Math.ceil((con.getBytesLoaded()/con.getBytesTotal())*100);
//trace(percent);
if (percent>=100) {
//after swf is loaded, do the Tween
delete this.onEnterFrame;
trace("prev= "+prevCon);
trace("con= "+con);
this.gotoAndStop("press");
fadeTrans(prevCon, con);
prevCon = con;
var con_M:MovieClip = this._parent.createEmptyMovieClip("con_M"+this.ID, this._parent.getNextHighestDepth());
con_M._x = 45;
con_M._y = 220;
con_M._alpha = 0;
this.onEnterFrame = function() {
con_M.attachMovie("ITEM"+[this.ID], "ITEM"+[this.ID], 1);
fadeTrans(prevCon_M, con_M);
prevCon_M = con_M;
delete this.onEnterFrame;
};
}
//end if
};
//end onEnterFrame
};
//end onRelease
}
//end for
On Rollover, On Rollout
I think user: zheelo asked this same question. I have a button with action on rollover and an action on rollout. it works like 4 or 5 times successfully then kind of has a mind of its own.???????? hmmmmm?? weird.
Rollover And Rollout
I've got a button and whenever i roll over it, i want a movie clip to play. When ever you move the mouse off of it, i want another movie clip to play. What are the 2 actionscripts i use to do this? i know i right clicked the button and under the actions, i did the On Mouse event and the first one is on rollover. What code do i use below that one?
Rollover And Rollout
ive been researching, looking, surfing and purchasing flash books and im still stuck...im trying to make buttons that when you rollover it cause and animated state and then when you roll out it does another
RollOver And Rollout
I haved several buttons in my movie and I want them to have rollover and rollout animations. I understand how to make a rollover, but when it rolls out I want the text to ease back to where it was. Thank you for any help.
RollOver / RollOut
Hi there, i've been using flash for quite a long time(ie:animations not websites), can someone explain this to me and point me in the right direction?
On rollOver and rollOut, how do you get the little clip your button plays to play, but also at the same time the user rolls over another button and how do you get the buttons to play without having a jerky animation where it only plays frame. Basically, how the heck do you play the rollOver/rollOut animation without stopping or jumping frames? anyone understand what i said... hehe sorry if i couldnt explain it too well, please help me out.. thanks a lot
RollOver, RollOut
I know I've seen it here before but can't seem to find it. I have simple buttons with rollover effects and it tells a MC to gotoAndPlay, and rollout gotoAndStop, blah. But, if you do it real fast, the rollover I mean, it sticks at the rollover effect unless you hover again and rollout. Is there a way to prevent this? Thanks for reading.
Rollover Rollout
How do you make a button that displays an animation when you rollover it, and displays another 1 when you rollout of it?
I just can't figure it out! I had movie clips all set up, telling 1 to go to the next frame on rollover and it stops at some point then telling it to go to the next frame on rollout. bah I'm missing something here
Help With Rollover/RollOut
Hello,
I have created a movieclip which has a rollover/rollout action. For some reason I can't get a duplicate of this movie clip to work.
This is the way I have it setup.
On the main/root clip I have these actions on frame 1.
_global.vanish;
_global.blocked = false;
_global.delayTime = 1000;
//
function sqPlay(clip) {
(clip._currentframe<10) ? clip.gotoAndPlay(11) : clip.play();
clearInterval(vanish);
blocked = false;
}
sq.onRollOver = function() {
//rollout
if (this._currentframe == 1 && !blocked) {
this.gotoAndPlay(2);
}
};
sq.onRollOut = function() {
//delay and rollback
if (!blocked) {
blocked = true;
vanish = setInterval(sqPlay, delayTime, this);
}
};
I have a movieclip with an instance of sq which works great. For some reason when I do a copy/paste of the movieclip the duplicates don't work.
Thanks for any help,
Shalom
Rollover And Rollout
This seems simple but I'm missing something. I know how to make a rollover but how do you get an animation to happen on a rollout. For example a button that fades in when rolled over and then it fades out on rollout. I tried using the on rollout script but it didn't work. Can someone point me in the right direction to a tutorial or a brief explanation of how it's done. Thanks
Rollover-rollout
hey guys. i'm remaking the index of my site to be cooler
http://www.strongbadforever.com/newindex.html
hold your mouse over copyright will ya... notice it moves in a pretty like that... well when your mouse rolls out i want it to roll out all pretty like that too... if you want the fla file you can download it here
http://www.strongbadforever.com/newindex.zip
thanks for the help!
Rollover, Rollout Bug
when you have a load of rollover and rollout animations on stage I have found that after a while one, or in many cases even more tend to not work or go wrong after a while; for instance i have 6 movie clips, all of which contain a "backwards" movie clip that moves its respective timeline backwards on rollout and after a while one just stops working!
is this a known bug and if so is there a work around to fix it? i have thought of naming the 6 different backwards movie clips backwards1, backwards2 and so on but didnt work to well!
thanks for all the help
RollOver, RollOut
alright, i have a movie clip with button animations for rollOver and an animation for rollOut. what i want to happen is this. i want the the rollOver to complete before its possible to rollOut. i dont know how to do this. anyone who knows how, let me know
Rollover Rollout
i have a movie clip with button animations for rollOver and an animation for rollOut. what i want to happen is this. i want the the rollOver to complete before its possible to rollOut. i dont know how to do this.
i mean....
if user makes a rollout verifies if the first movie clip of rollout finish
(maybe unfolding menu), if thats true, then star second movie clip, (to hide it).
help please
Using On (rollover)/ On (rollout) Please Help
Hello, I am tryin to create a button, where it moves and changes color after the mouse is over it,then when the mouse moves out, it will reverse what it jst did. i tried using this code:
"on (rollOver)
{
gotoAndPlay('lblname');
}
"- to make it move and change color, then
"on (rollOut)
{
gotoAndPlay('lblname2');
}"- to go back to its original color and place
so far the outcome is realy messed up and my buttons start glithcing out when i go over them.
Is this the proper way to create mouseover buttons, or is there a nother way or easier way? please help!
Rollover & Rollout
I had a piece of code a while back for animated movie buttons where you would use the nextFrame & prevFrame action to animate a simple rollover & rollout state. For some reason I can't find that code anywhere. If I remember right you have a movie with your animation inside. Inside you have a blank button to use as the rollover. I believe there is an onClipeEvent action on the movie that tells it to play nextFrame or prevFrame. Any thoughts? Thanks
Help With On RollOver, RollOut
Hello,
I'm trying to accomplish an effect that when a user rolls over an MC it fades down to say 25% alpha and when they roll over a second MC, the first one fades back to 100% alpha, while the 2nd MC fades out to 25%.
See http://www.realsimple.com for an example of this.
Any suggestions?
Thanks!
Rollover....rollout Help
hi. i am a pretty new flash user, working with flash CS3.
here is what the site i am building looks like thus far
http://wbuchinadesign.com/almat/almatgroup.html
i am having trouble with the dropdown (or up) buttons in the menu. right now only one has an action on it 'partners'. as you will notice, the menu drops up when rolled over, but when rolled off, it all vanishes. while this is what i wanted in a way, i need the two 'partners names' to stay when you roll off the main button.
i am so new to flash that i dont really know the lingo yet so this may not make any sense.
if anyone can give me some direction at all it would be great...i am LOST
thanks alot
-william
Rollover / Rollout
I would like to activate a rollover / rollout when you scroll over menu movieclips, but I only want them to work when I'm on this page:
name_mc
Here is my code - it's not working:
var current = 'name_mc';
menu_one_mc.onRollOver = function() {
rollover('menu_one_mc');
if(current == 'name') {
myPicLoader.contentPath = "2.jpg";
//i only want 2.jpg to load if i'm on name_mc
}
};
menu_one_mc.onRollOut = function() {
rollout("menu_one_mc");
};
Thanks!
Rollover / Rollout
Can somebody please make an example of a button using the rollover/rollout function...
I searched a little on the forum but nothing really struck the basics. I just need to examine an fla so that i can see how it works.
[F8] On (rollOver) “ And “on (rollOut)
Hi
Is there any one could guide me how to use the command
“on (rollOver) “ and “on (rollOut) “ on movie clip symbol or button symbol…!
What I am looking for is when the mouse moves over a symbol I want to have a movie played and when roll out the play should stop and go to the first frame…!
Am I putting the wording clear to be understood…? I would appreciate you help
[F8] RollOver And RollOut
I'm using a simple rollOver and rollout action but the action does not always happen when I rollOut. What might I look for?
Rollover And Rollout
Hey guys,
Im really stumped here, Is there any easy way to get a rollout for a button?. I can get the roll over when I add something to the up state, but I can't figure out how to add a rollout?.
Any help would be great
Rollover/Rollout
I ran a search, but I guess I'm a bit too new to all of this still. I would like to make a button that, on rollover, will slide to the right and then, on rollout, will slide back to its original spot. What's the easiest way to do this? I currently just make a button with a movie clip in the "over" state for the 1st part of the animation. I just don't understand the rollout animation. Also, is it very complicated to have the button stop where it's at in the animation and slide back if the user takes the cursor off of it before it reaches the end of its animation? Thanks for your time.
RollOver - RollOut
I have a movieclip and I want it to start and play when the mouse went over the movieclip...
So not when it is on the movieclip but:
When the mouse was on the movieclip and the when you leave the movie clip it has to begin and play....
How can help me with this..
Rollover & Rollout
I have question about rollover and rollout. I have a button which has mc in over frame zoom in a pic on rollover and zoom out on rollout. i dunno why it doesnt work. If somebody can take a look at the button 01 i would be very happy. Here is my fla
RollOver / RollOut?
hi folks
I'm a newbie and I had a question for the gurus that be:
I have a button that I made and I want to have something happen (basically jump to a fram and start playing) when I run my mouse over it, then reverse that when the mouse goes off it (go back to the start position and stop there.) I figured out that the code for the mouseover the button is
Code:
on (rollOut) {gotoAndPlay(1);
}
I assumed the code for the movie to back to frame one is
Code:
on (rollOut) {gotoAndStop(1);
}
Yet, nothing happens. Can someone spot my error? I've attached the file for viewing. (don't laugh!)
thanks in advance
Tay
Rollover Rollout
Im trying to find out how to make my "Complex button Rollover/Out effect"
goto and play a frame in my main timeline. Is it possible? In the tutorial (which was Great) ended with actionscript code to getURL("") but i want it to play a frame in main timeline like a button (eg: "on (release) {gotoAndPlay (4);}")
Rollover/Rollout Help
I'm new to flash as well as this forum...so this may be an easy one. I have created a rollover effect that enlarges a movieclip when rolled-over and shrinks back when rolled-out. I used this frame action in the movieclip timeline:
stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame();
}
};
this.onRollOver = function() {
rewind = false;
play();
};
this.onRollOut = function() {
rewind = true;
That works fine...but in the movieclip timeline I created other animations...graphic text, and image alpha-ing, etc...things that fade in with the enlarging of the movieclip. However, of course now all the graphics added to the mc timeline active the rollover effect because the size of the movieclip has expanded to encapsulate everything on that timeline.
Is there a way around this or is there another way to achieve this same effect.
Any help would be greatly appreciated...sorry if this is mundane.
Thanks,
Brandon
On Rollover And On Rollout
Right, well here's another pitiful question for you gods of flash...
so anyways I'm makin' a navbar for my site. I have a dynamic text field named "display". I want all the buttons on the bar to light up and change the variable "display" to um... "home" for example. and then on rollout go back to "click a button"
so I made a button and put this code with it:
on (rollOver){
_root.display = Home;
}
on (rollOut){
_root.display = Click a Button;
}
I figure there's just something wrong with the syntax, cause all I've ever had to change before were variable values, not characters/strings.
btw I just moved up to MX, why does it appear that I can give my dynamic text fields two different names?
Rollover And Rollout
hi guys,
need some help...
I have a button.., and when the mouse hovers the button, the
movieclip on the stage will play.. and when roll out the movie clip will play the "rollBack" framename.
Problem is when mouseovers and then mouseout very quick
on the button, it does not play the "rollBack" framename...
and stucked.
here's the sample code i put on my button :
CODE
on(rollOver)
{ _root.stage_investors_arrow.gotoAndPlay("rollStart");
}
on(rollOut)
{
_root.stage_investors_arrow.gotoAndPlay("rollBack");
}
RollOver RollOut
I should know this bit of code for this. I know how to do other things, but not this and this shoulda been the first thing I learned. Anyway. When you rollover a text to make it change color, then rollout of the text to make it go back.....well...the code I'm using only allows me to do it once and not over and over....help...please
on (rollOver) {
PR = new Color(PR);
PR.setRGB(0xFFFFFF);
}
on (rollOut) {
PR.setRGB(0x6F97A9);
}
PR is the name of the graphic I'm using
Rollover-rollout
hey guys. i'm remaking the index of my site to be cooler
http://www.strongbadforever.com/newindex.html
hold your mouse over copyright will ya... notice it moves in a pretty like that... well when your mouse rolls out i want it to roll out all pretty like that too... if you want the fla file you can download it here
http://www.strongbadforever.com/newindex.zip
thanks for the help!
|