RollOut
I'd like to do something llike in http://www.jjdonline.com/ .It's very easy but I can't properly use the the Rollover function. Is there anything similar I can learn from? I attach a fla that I did. Thank you
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 02-20-2003, 10:53 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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 )
. .. ... .... ..... ...... ........ ......... . .. ... .... ..... ...... ........ .........
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?
On (rollOut) ?
I have a swf in the center of the home page.
When I click a button, appears one big image in the up layer, in full of swf.
I need that this big image roll out when I exit swf.
I may not place a invisible button in border!!
What do I???
On Rollout?
I'm having problems with the on rollout action with my rollover-dropdown-menus. The menus work fine one the way down, but on the roll out they take a while to roll up. Can anyone help me to make them roll up instantly, or just dissappear?
Thanks
/rollout <-- What Is This?
Hey guys-
This may be a noob question but what does the following script mean?
code: on(release){
tellTarget("/rollover"){
//do something
}
}
? I found for a tut on advanced rollovers. I have seen this backslash sytax used before, When does one use it and for what purpose?
Better RollOut?
Which is a better way to perform a rollOut function using a movie clip?
1. Goto method:
on (rollOver) {
gotoAndPlay("rollover_animation");
}
on (releaseOutside, rollOut) {
gotoAndPlay("rollout_animation");
}
_________________________________________________
2. True / False method: http://www.flashkit.com/movies/Inter...8788/index.php
on (rollOver) {
btnplay = true;
play();
}
on (rollOut) {
btnplay = false;
play();
}
// Then have this on first 15 frames so the button doesn't skip to the roll off state:
if (btnplay == false) {
gotoAndPlay(28);
} else {
play();
}
So the button doesn't skip to the roll off state.
Which way is more professional?
Rollout Bug
Hi there, I have a simple rollover button. On rollout the menu which has appeared should fold in again, but as many of you no doubt have seen at some point or other, the flash player does not always pick up this rollout action, leaving the folded out menu in place. The menus are too close together for me to make a wide border around them to catch the rollout, so I have created a validation script that tests the ymouse location. If this location is <0 or >112 (in other words outside the movie) the menu folds in anyway, even if it has not detected a rollout.
This works a treat in Flash itself (ctrl+enter) but not when I place the swf file in a html page. So I tried the other way 'round, i.e. validating if the mouse is inside the movie and if not executing the fold-in part of the movie, but this causes the script to hang.
I am at my wits' end, after experimenting for ages with this I still do not have a simple, foolproof way to detect if the mouse is over any part of the movie or not. You can find 2 fla's with the two attempts here. The actions are in the 'slide' movie on layer 'slide' in frame 23 and 24.
for those who don't want to download: the code in frame 23 (called "testing") is
y_pos = _root._ymouse;
if (y_pos<0 || y_pos>112) {
_level0.changecolour.gotoAndPlay("c2");
_level0.slide.gotoAndPlay("c");
}
or, in the other attempt, the opposite:
y_pos = _root._ymouse;
if (y_pos>0 && y_pos<112) {
nextFrame();
} else {
_level0.changecolour.gotoAndPlay("c2");
_level0.slide.gotoAndPlay("c");
}
the code in the next frame:
gotoAndPlay("testing");
Thanks very much in advance!
Rollout, Help, I've Tried Everywhere :(
I have a button that tells a MC to play:
on (rollOver) {_root.dig.gotoAndPlay("tvb");
}
on (rollOut) {_root.dig.gotoAndPlay("tvc");
}
Everything works like a champ except for if I mouse out too quickly the rollout isnt detected. I tried speeding up the frame rate but it didnt help. If I mouse out slowly it works fine.
I have found several posts with this issue but not a solution that works for me.
Please help.
RollOut Help
I have a button that uses 3 MovieClips on rollover (mc1_logo, mc2_pink, mc3_bounce)
I tried adding more frames within each MC to reverse the effect, added stop actions to separate over and out then used AS on button:
on (rollOut) {
instance.gotoAndPlay (8);
}
where 8 is the start of the rollOut
At this point I seem to be suffering a mental lapse... Can anyone explain/show me how to reverse the mc1 and mc2 effects on rollOut ?(fla attached)
Thanks
On(rollOut) Bug
I'm using MX2004 Pro, and I'm having trouble with on(rollOut) not always being recognized. I see there are quite a few threads dealing with on(rollOut) problems but didn't see an answer to my problem, and I don't have the time to go through all of them.
I have a navigation movie, mgnav_no.swf, containing 6 movie clips. Rolling over a navigation mc loads an external swf into holder_mc. Rolling out fades the loaded swf out. Trouble is that rolling over and then out of a navigation mc too quickly (literally moving the mouse across the mc) causes the external swf to load as it should but the rollOut script fails. The navigation mc plays it's roll out animation, but the loaded swf doesn't fade out. The bug is only present with live testing (loaded onto my server). I am unable to reproduce the bug when testing locally, and can only occasionally reproduce it when testing the movie within Flash.
Each navigation mc contains an invisible btn with the following code attached:
on(rollOver) {
loadMovie("mgnav/mgnavOverContact_no.swf", mgnav.holder_mc);
gotoAndPlay("over");
}
on(rollOut) {
mgnav.holder_mc.Num = 5;
gotoAndPlay(6);
}
holder_mc has the following code attached:
onClipEvent(load){
this._alpha=100;
}
onClipEvent(enterFrame){
this._alpha-=Num;
if (this._alpha<=0){
this._alpha=0;
}
}
Frame 1 of the main timeline has _global.mgnav = this; since this entire movie is ultimately loaded into a main interface.
Seems to me that the on(rollOut) { mgnav.holder_mc.Num = 5; code isn't running because the user has rolled out before holder_mc had completed loading the external swf, which is not a problem locally. Is there a cure for this?
I thought I could make the externally loaded swfs part of mgnav_no.swf instead, but I'd definitely rather avoid that if possible.
You can see the bug for yourself at http://www.slowcocoon.com/public/mgnav_no.swf.
The fla is in the same directory.
Thanks for any help,
Adam
On (rollout)...
heya i made a world map thingi and im trying to make somthing rather simple
when roll over it shows a tiny kinda note fading in carrying the name of the country now i placed this code:
on (rollOver){
with (obi)
gotoAndPlay (2);
}
on (rollOut){
with(obi)
gotoAndPlay(7);
}
the thing is that when i rollout
the note somtimes fades out again (like it should be doing on rollout)
but somtimes its like stuck and theres no reaction to the code
why the ** does it happening?
cheers
O
On (rollOut) Bug...HELP
Hey everyone
I am having this problem with 2 projects!
Its probably a silly bug but i have no idea how to fix.
I have to launch this website for a client friday but not this way.
http://www.intaltinc.com/flash/
Soooo this is the bug...
the lins on the nav bar are movie clips.
In the movie clip, there's a invisible button with the simple action of...
on (rollOver) {gotoAndPlay("on");
}
then movie stops and ...
on (rollOut) {gotoAndPlay(1);
}
SIMPLE!!!! But sometimes when you rollout, it doesnt recognize the rollout and movie gets stuck!!!!
Any ideas how to get his fixed?
http://www.intaltinc.com/flash/
I am be sooooooooo happy if i could figure this out!
obrigado
Alessandra
RollOut
Hello, I am new to Flash and am working on a site for a client. Here is my dilemma:
I have an animation which includes 4 images. One main image and 4 thumbs beneath. When you first view this animation, the 4 main images are fading in and out on a loop. When you mouse over a thumbnail, the movie stops on that corresponding main image. What I need to accomplish is when you mouse OFF the thumb, the movie picks back up from a certain frame. I gave each thumb two Actions already, one to Stop on a RollOver, and another to Play on a RollOut. Problem is...it doesnt seem to work. When i test the movie, the RollOver stops the movie, but when I RollOut, it does not resume. Can you give a button/Movie clip two functions? I tried to apply the actions to the thumbs as both Buttons and Movie Clips...to no avail. Do you have any ideas of where I may be going wrong?
HELP!!!
RollOut
Hey all. Got a little issue with a button. The thing is, I've created a button. Then on the "over" state in the button lies an mc which changes the buttons shape. Now I want to make a rollout action, so it reverses the same animation that it plays when I hold over the button, when I roll out from the button. I tried to go with:
Code:
on(rollOut){ _root.gotoAndPlay(32) }
Which I put on a exact copy of the button that lies exactly over the button in one frame just to invoke the action. But it does not work. Also buttons can't be shape tweened?
[F8] (rollOut) {...?
I bought a pre-built horizontal nav menu, that onRollOver of the main menu buttons, a sub-menu drops down. The problem is that OnRollOut the menu stays open. The code that is on the main menu buttons currently looks like this
on(rollOver){
_root.subnav.gotox=_x;
_root.nav=nav;
_root.up=1;
_root.timer.gotoAndPlay(1);
if(tohide=="yes"){
_root.subnav.gotoa=0;
}else{
_root.subnav.gotoa=100;
}
}
I got as far as on (rollOut) {...then I got stuck. I'm an actionscript beginner so any suggestions help. Thanks
On RollOut Help ?
Hi, I have searched the 6 pages of results on this and tried the code I found and still could not get this to work.
Anyways I am trying to do a rollOut on my buttons so when your mouse didnt press them and you move off the button it plays a movieClip (which will be the mask I use for hover, but backwards).
On the actual button I am placing this actionscript code
ActionScript Code:
on (rollOut){
_root.experimental_Out.play();
}
No clue if that is correct or whatever but it definately does not work.
As far as the button is setup, I did not do it thru actionscript I actually made buttons (witht he 4 keyframes defined). So maybe this is why I can't call a rollOut action? Any help with this would be much appreciated I tried for awhile and no luck in figuring it out, thanks for the help.
Rollout.
ok i have a button with a box that expands on rollover.. now when you take that mouse off of it i want it to go back to regular size by a tween, not just pop back into place... how can i do this i have tried a ton of ways but they never work... what do you think... you can see an example on the menu at this link see how when you take the mouse off the menu boxes it animates back into place... i cant seem to get the on (rollOut) to work.
it should be on (rollOut) something right....?
im probably not very clear on what im asking so if you have any questions post them or aim me at promx77
Help Me With This On (rollout)
I'm creating a button with increase size , decrease size, the increase size it's working with on (rollover) but the rollout part doesn't works, can anyone helpme with this please
this is the code of the button HN
on (rollOver) {
func_agrandar = function () {
if (_root.i_HN < 125) {
HN._yscale=_root.i_HN;
HN._xscale=_root.i_HN;
_root.i_HN++;
Text.text = _root.i_HN;
}
}
fadeInt = setInterval(func_agrandar, 1);
}
on (rollOut) {
func_achiquitar = function () {
if (_root.i_HN > 100) {
HN._yscale=_root.i_HN;
HN._xscale=_root.i_HN;
_root.i_HN--;
Text.text = _root.i_HN;
}
}
fadeOut = setInterval(func_achiquitar, 1);
}
On(rollOut)
I am following the drop down menu tut by Syko ...
http://www.kirupa.com/developer/mx/dropdownmenu.htm
but instead of the invisible button being "onrollover" i changed the code to
ActionScript Code:
on (rollOut) {gotoAndStop("Closed");}
and created a smaller box, just around the menu text.
My question is, why does the menu go to the "closed" frame over the word Menu, where as if i rollout over the menu items it does not.
I have attached my working FLA. I am trying to learn how to make a horizontal dropdown menu. If someone can point me to some other tutorials that would be great too.
Thank You. Maybe I didn't attach the fla...still new to kirupa
HELP: Btn RollOut
I've got mc which onRollOver goes up and onRollOut it goes down.
The problem is when I test the movie and move over the movieclip it works fine, but when I am doing it fast over it, it goes up and doesn't go down even I rollOut.
This happens only over fast motion with mouse.
RollOut
Would I put a rollout script on the object or frame? In my movie, i used rollOver to have animation go when its rolled over but now I want for when the mouse rollsOut, to have the animation go backwards and to the original state. any help would be appreciated. thanks.
-Matt Marcus-
RollOut
http://www.kirupa.com/developer/flash5/advroll.htm
can somone put those codes in MX for me please
On(rollout)?
with the script
Code:
on(rollout){
gotoAndPlay("x",x);
}
is there a way to put a delay into this, so that when you roll out it takes a second than disapears?
http://www.clevelandgolf.com/
much like that? or is there a easy way to accomplish these buttons in flash?
RollOut ()
Hi all,
I have just been viewing the tutorial on your site below -
visit
I am planning a complete site reskin for my site. At current - I have made a basic top header, button link, and footer. I am trying to make my buttons flow down the page, and consequently, when they are 'rolled out' move back into their position in a smooth way.
Many thanks if you can help me out, the current skin with flash can be seen http://evenicoulddoit.com/dev/jan-2007/.
Thanks, Ian Clark
Rollout
I'm fairly new to flash and haven't touched it in a long time. Needless to say I couldn't do this even when I was using it 2 years ago, but here's the problem.
I'm trying to create a flash menu for my website. Only the menu. I have it so when you roll over a button a new movieclip plays. When you click on the button it takes you to a new page. When you leave the cursor on the button the MC loops.
I want to make it so when you roll off of the button the MC stops playing and plays the previously "clicked on" button's MC. Right now when you rolloff the loaded MC continues to loop.
For example. I go to the website and click on a new page. A movieclip plays and loops if i go the menu and roll over a new button a new MC plays. And when I roll off of that button the old MC plays.
Very confusing. I'm not sure if I can explain it any better than that. Can anyone help?
Rollout Help
basically what i want to happen is for an image and text to appear when mouse over, say on the right side of the page, look at this link http://www.coraltools.com/~abmcintyre/residential.html
you'll see square images on the left, mouse over them and see, this is no good as the image disappears when the mouse is off the button, i need to get the over state to stay up until you mouse over another.
This is my 1st attempt at a flash site
A
Help Me With This On (rollout)
I'm creating a button with increase size , decrease size, the increase size it's working with on (rollover) but the rollout part doesn't works, can anyone helpme with this please
this is the code of the button HN
on (rollOver) {
func_agrandar = function () {
if (_root.i_HN < 125) {
HN._yscale=_root.i_HN;
HN._xscale=_root.i_HN;
_root.i_HN++;
Text.text = _root.i_HN;
}
}
fadeInt = setInterval(func_agrandar, 1);
}
on (rollOut) {
func_achiquitar = function () {
if (_root.i_HN > 100) {
HN._yscale=_root.i_HN;
HN._xscale=_root.i_HN;
_root.i_HN--;
Text.text = _root.i_HN;
}
}
fadeOut = setInterval(func_achiquitar, 1);
}
On(rollOut)
I am following the drop down menu tut by Syko ...
http://www.kirupa.com/developer/mx/dropdownmenu.htm
but instead of the invisible button being "onrollover" i changed the code to
ActionScript Code:
on (rollOut) {gotoAndStop("Closed");}
and created a smaller box, just around the menu text.
My question is, why does the menu go to the "closed" frame over the word Menu, where as if i rollout over the menu items it does not.
I have attached my working FLA. I am trying to learn how to make a horizontal dropdown menu. If someone can point me to some other tutorials that would be great too.
Thank You. Maybe I didn't attach the fla...still new to kirupa
About RollOut
Hi everyone.
I got a problem. I want to make this button I see on many pages.
When I put the mouse over it, it transform to something else (this is not a problem, it's easily done)
When I REMOVE the mouse from it, It transforms BACK to the original shape??
I haven't managed to figure this out, though I experimented alot with RollOut and stuff..
I'd appreciate if someone would help me out here!
Thanks!
HELP: Btn RollOut
I've got mc which onRollOver goes up and onRollOut it goes down.
The problem is when I test the movie and move over the movieclip it works fine, but when I am doing it fast over it, it goes up and doesn't go down even I rollOut.
This happens only over fast motion with mouse.
RollOut
Would I put a rollout script on the object or frame? In my movie, i used rollOver to have animation go when its rolled over but now I want for when the mouse rollsOut, to have the animation go backwards and to the original state. any help would be appreciated. thanks.
-Matt Marcus-
Rollout
Hi everyone, please can someone help me.
I've made a flash movie clip that is acting as a button. When you hover ove it, it plays half of the movie clip, and when you come out of it, it reverses the action. But if i move my mouse over the move clip too fast over it, it only plays half of the code, and it doesn't reverse back again.
Does anyone no how to correct this please?
Why, Rollout, Why?
This may come off as a very newbie-esque question, but at this point I don't care. I'm attempting to make simple buttons with rollover and rollouts. I figure the simplest and least-complicated way to do this would be to make a movie clip button. I make the clip, and label the first frame I want for the rollout to begin (and of course, have a stop at the last frame). I go to the parent timeline for the clip/button and attach code to it:
on(rollout){
gotoAndPlay("label");
}
and it does nothing on a rollout. Then, after many frustrated attempts, I change the code to
on(rollout){
gotoAndPlay(22); //frame rollout starts
}
Magically--yet equally frustratingly--it works. Would someone mind explaining this?
On Rollout?
Hi...
If you go to the site im working on...on the bottom of the page it will have 2 buttons that say: recognition and wallpaper.
A box opens on rollover of those 2 text buttons. I have it right now to if you rollout of those text buttons the box dissapears... i want it so you rollover the text buttons but i dont want it to roll out until you rollout of the box... cause i want people to be able to click inside that box...
How do i make it so the box only disepears after a person rollsout of the box... not the text?
and the site is: http://www.metascapestudios.com
Rollout
In the same buttons, i have created an over state. As i can see, there are other three states(up, down and hit). I would like to add an out state. Do i have to write actionscript? And where, excactly: in the main scene? Where do i create the animation for the rollout?
Rollout Help.
im working on a new website. just started and uploaded for now
here.
well, the problem is when you you go over one link to the next, the movie clip doesnt play fully for the link you were previously on.
I would like it to act like how it is here.
did what i said make sense?
here is teh actionscript i used for this application
Code:
stop();
//News Button RollOver
btn_news.onRollOver = function(){
_root.attachMovie("over_news", "over_news", 1);
over_news._x = 3.7;
over_news._y = 466;
};
//News Button RollOut
btn_news.onRollOut = function(){
_root.attachMovie("out_news", "out_news", 1);
out_news._x = 3.7;
out_news._y = 466;
};
//Bio Button RollOver
btn_bio.onRollOver = function(){
_root.attachMovie("over_bio", "over_bio", 1);
over_bio._x = 44;
over_bio._y = 466;
};
//Bio Button RollOut
btn_bio.onRollOut = function(){
_root.attachMovie("out_bio", "out_bio", 1);
out_bio._x = 44;
out_bio._y = 466;
};
//Shows Button RollOver
btn_show.onRollOver = function(){
_root.attachMovie("over_show", "over_show", 1);
over_show._x = 113.5;
over_show._y = 466;
};
//Shows Button RollOut
btn_show.onRollOut = function(){
_root.attachMovie("out_show", "out_show", 1);
out_show._x = 113.5;
out_show._y = 466;
};
//Download Button RollOver
btn_dl.onRollOver = function(){
_root.attachMovie("over_dl", "over_dl", 1);
over_dl._x = 161;
over_dl._y = 466;
};
//Download Button RollOut
btn_dl.onRollOut = function(){
_root.attachMovie("out_dl", "out_dl", 1);
out_dl._x = 161;
out_dl._y = 466;
};
//Link Button RollOver
btn_link.onRollOver = function(){
_root.attachMovie("over_link", "over_link", 1);
over_link._x = 236;
over_link._y = 466;
};
//Link Button RollOut
btn_link.onRollOut = function(){
_root.attachMovie("out_link", "out_link", 1);
out_link._x = 236;
out_link._y = 466;
};
//Contact Button RollOver
btn_contact.onRollOver = function(){
_root.attachMovie("over_contact", "over_contact", 1);
over_contact._x = 276.5;
over_contact._y = 466;
};
//Contact Button RollOut
btn_contact.onRollOut = function(){
_root.attachMovie("out_contact", "out_contact", 1);
out_contact._x = 276.5;
out_contact._y = 466;
};
//Interact Button RollOver
btn_interact.onRollOver = function(){
_root.attachMovie("over_interact", "over_interact", 1);
over_interact._x = 335;
over_interact._y = 466;
};
//Interact Button RollOut
btn_interact.onRollOut = function(){
_root.attachMovie("out_interact", "out_interact", 1);
out_interact._x = 335;
out_interact._y = 466;
};
any suggestions on how to do this?
or maybe a different actionscript technique?
Rollout Action
I have a button on my movie that on "mouse over" it opens a door on movie clip "A". If you
click on the button it targets movie "B" which begins playing. On 1st frame
of movie "B" I have this variable set...
playing=true
While movie "B" is playing I do not want the "roll out" to play on the button instance(closing the
door). The action I have on the button thus far is this minus the comments
...
on (rollOut) {
if (Number (playing)==Number (true)) {
// <<<WHAT GOES HERE??>>>
} else {
tellTarget ("_root.doors") {
gotoAndPlay (21); //closes door
}
}
}
on (release) {
tellTarget ("_root.doors") {
gotoAndPlay (11); //plays movie "A"
}
}
Is there a way to stop this "rollout" action from occuring if the variable
playing=true ?
Any help I would gratly appreciate...
Rick
[Edited by Rik66 on 09-18-2001 at 02:51 PM]
On RollOut Isnīt Working... Help Please
I have one mc called "sound" and one button inside it...
on the button I have:
on (rollOver) {
startDrag (this, false, 0, -94, 0, 94);
}
on (rollOut) {
stopDrag ();
}
** but on rollOut it wonīt stop dragging!!! **
Does anyone knows what is going on?
Thanks!!
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.
Rollout Delay
I have a graphic behaving as a movie clip being dragged as a mask behind some buttons. When you mouse over each button they have the actions below (with different L and R values in the startDrag but everything else is the same). Everything pretty much works just as I'd like it to however when you rollOut it seems like it takes forever to stopDraging the mask. If you shake the mouse around (don't think I'm a complete newbie haha) you see it still drag then all of a sudden stop dragging. Like it goes, "oh yeah I was suppose to stopDrag." Any help would be appreciated. You can view it at
http://www.net-tronics.com/dmfideas.swf
~~~~Button Actions~~~~
on (rollOver) {
gotoAndPlay (4);
startDrag ("fill", true, -804, 0, 869, 0);
}
on (release, rollOut) {
gotoAndPlay (1);
stopDrag ();
}
~~~~Invisibutton Actions~~~~
on (rollOver) {
stopDrag ();
}
Button Rollout
can anyone help me on this?
how do i make a fadeout effect on mouseout.
hope i'm clear on my question..
Rollout Problems
Hey why does the rollout function doesn't seem to work if you rollout your mouse like really fast? Is there anyway around this?
How Do You Animate On Rollout?
Basically, here's what I have:
What I am trying to do is make a nav button that, on the roll over, starts an animation which moves the box to the right (or any side). I have that part done, no problem. I even learned how to put a Stop command after the last frame in the animation so it won't loop!
Here's where I could use some help please. What I would like to do is have it set up so on the Rollout it won't just instantly go back to its original postion. I would like it to go back slow, the same way I have the animation set up to move it to the right. Also, instead of the animation starting every time I rollover and then go back to the original position as soon as the mouse is off of it, even if it's in the middle of the animation, how can I make it perform the animation in whole, finish it first before just going back to the original spot?
Thanks a lot if you can teach me the scripting needed or actions needed to do this.
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
Button Rollout Help
Alright, im using flash mx right now. My problem is that i want to fade out a square on my button on the rollout by telling it go to go frame 2 (i have a stop action on my first frame of the MC). The button is named News Button and the MC is called Square Movie. I just can't figure out the code for it to on release or rollout to go to that 2nd frame of the MC and fade out the square. Any help would be greatly appreciated. Thanks
Rollout Not Working
Could someone tell me why this code is not working I am trying to create a rollover and rollout on a button but when I attach this code it doesn't work. I can anyone tell me what adjustments I should make or a different way I might do this?
on(rollOver) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
}
}
on(rollOut) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndPlay (3);
}
}
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.
RollOut The Movie
Hello!
I've made a flash navigation for my html page.
This navigation movie has several buttons with rollOver and rollOut effects. It all works fine when the users mouse ponter moves from within the flash movie.
The problem is, when a user moves the mouse pointer off the flash movie. If the pointer is moved from the button too fast, the flash wont trigger the on rollOut event.
So basically What I would like to do:
on(rollOn) a button: plays FRAME 1;
on(rollOut): plays FRAME 10;
So To avoid the problem of not triggering the onRollOut event I came up with a solution.
I made an empty mc called "mymc". On the 20th frame I put some AS. the actionscript should look like this:
if
(mouse is off movie) _root.gotoAndPlay(1);
else
(mouse is on button): gotoAndPlay(1); //replays this movie
And on my button i would put
on(rollOver): mymc.play(1);
This means that when I go over a button my usual effects are triggered and also mymc starts playing. Whe getting to the 20th frame it should check if the mouse is stil on my button then restarts mymc else, trigger on(rollOver) effect wich is on frame 10;
Everything would work fine if I could determine whether mouse is on the movie or is over (we are talking of _root movie - navigation).
How can I solve my problem??
p.s. I hope I explainded myself clearly. I know my english sux
|