Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








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




KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 06-03-2005, 11:13 PM


View Complete Forum Thread with Replies

Sponsored Links:

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?

View Replies !    View Related
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 )

. .. ... .... ..... ...... ........ ......... . .. ... .... ..... ...... ........ .........

View Replies !    View Related
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.

View Replies !    View Related
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.

View Replies !    View Related
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?

View Replies !    View Related
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

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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!

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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!

View Replies !    View Related
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

View Replies !    View Related
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!

View Replies !    View Related
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

View Replies !    View Related
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!

View Replies !    View Related
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.

View Replies !    View Related
[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

View Replies !    View Related
[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?

View Replies !    View Related
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

View Replies !    View Related
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.

View Replies !    View Related
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..

View Replies !    View Related
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

View Replies !    View Related
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);}")

View Replies !    View Related
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

View Replies !    View Related
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?

View Replies !    View Related
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

View Replies !    View Related
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!

View Replies !    View Related
RollOver/rollOut Functionality
Hi everyone,
I'm currently working on a presentation that has four blocks on top of each other in a kind of towery thing. When the user rolls over one of the blocks (on top of which lies an invisible button) it slides out and when they roll out it slides back in again.

Currently I'm using the following code on the invisible button ('ecom' being the instance):

//Rollover Functionality//

on (rollOver) {
ecom.gotoAndPlay(2);
}

on (rollOut) {
ecom.gotoAndPlay(21);
}

My problem stems from the fact that if the user rolls out of the button area the block starts rolling back, creating a jerky feel. And if the user rolls in between two Hit areas the blocks go wild!

Is anyone aware of a means to force the MC to actually play to the end of its animation sequence rather than...well...jerking about.

By the way the other three instances are: 'phone', 'sales' and 'admin' - if that's any use.

Thanks!

SamB

View Replies !    View Related
Rollover And Rollout Diffs...
this seems like an easy problem to solve:
i have a button with one shape, when i mouseover, it changes to a bigger shape. now, this seems ok. but, the mouseover always apply to the bigger shape. is there a way to get the mouseover apply to the small shape and the mouseout apply to the big shape?

any help would be great,
bolindilly

View Replies !    View Related
On Rollover, On Rollout, On Release....etc
Where are these features. I used to know where to find them in flash five....now I can't seem to locate them?>

HELP>

View Replies !    View Related
Button/rollover/rollout
I am having trouble with a button rollover/rollout. Here's the deal:

I created a movie clip (called clip1). I placed stop();
in frame one of the clip. In frame two of the clip I placed my drawing along with stop();

I went to the stage, selected the button, selected actions and applied the following:

on (rollOver) {
clip1.gotoAndPlay(2);
}
on (rollOut) {
clip1.gotoAndPlay(1);
}

I positioned clip1 on the stage where I want it to appear when the button is rolled over, clicked test movie, and the rollover/rollout doesn't work.

I wonder what I am doing wrong? Much thanks to anybody who can help.

Christina

View Replies !    View Related
RollOver & RollOut Problem
Moin Leutz,

Folgendes, ich versuch mein Glück in Flash und bis jetzt bin ich auf ganz gut klar gekommen. Hab denoch Schwierigkeiten das Movie zu optimieren. Am besten schaut euch das mal selbst an und wenn ihr Helfen könnte wäre ich euch Dankbar.:

Hier die Web-Adresse:
http://members.dokom.net/n.pinkowski/

Zum Sachverhalt:
Diese Seite die ihr dort seht, soll eine Bilder Gallerie werden mit etwas Farbe und Animation. Das ist jetzt nur ein bruchteil von dem was dort noch rein soll.

Wenn man mit der Maus auf ein der bilder geht, dann soll dort die Alpha Schicht die auf dem Bild liegt verschwinden, diese Funktioniert auch.

Jetzt zum Problem: Wenn man die Maus zu schnell vom Bild wegbewegt wird, läuft die Animtion (1 = ausblenden) ab. Aber nicht mehr die Animaltion (2 = einblenden). Dieser wird erst nach erneuter Schneller Bewegung Durchgeführt. Wenn man die Maus auf dem Bild lässt bis die Animation 1 angeschlossen ist und dann die Maus vom Bild wegbewegt, das wird Animation 2 Ordnungsgemäss abgespielt.

Meine Frage ist wie bring ich dem Movie bei, das er feststellt ganz egal wie schnell die Maus sich über die Bilder wegbewegt die Animation 2 in Betracht zieht und ausführt zudem wäre ein Source Code oder sogar ein komplettes Beispiel Hilfreich sein.

Source:
Jedes der Bilder ist ein eigendes Movie. In dem Movie sind zwei Ebende:
- Ebene 1 Alpha Schicht
(5 Frame's dann Stop | 5 weitere Frames dann Stop)
- Ebene 2 Bild

in der Hauptbühne gezogende Movie enthält folgende Aktionen:

onClipEvent (load) {
stop();
}
on (rollOver) {
play();
}
on (rollOut) {
play();
}


Ich hoffe diese Information sind ausreichent. Wenn noch Fragen sind dann stellt sie einfach ins Forum oder schreibt eine Mail. Werde sowieso so lange Online bleiben bis ich die Antwort habe die mir weiter hilft...

Verwendet wird hierfür Flash MX

Danke im Vorraus
MfG
N. Pinkowski (NoMercy23de)

View Replies !    View Related
On (rollover) And (rollout) Problem
Hi there - new to MX, so not sure how to approach this - I've got a menu comprised of items vertically stacked. As you mouseover an item, a m/c is called using:


Code:
on (rollOver) {
overview_popout.play();
}
on (rollOut) {
overview_popout.reverse.play(2);
}
overview_popout is a submenu of the menu item Overview that slides out horizontally. 'Reverse' is a clip inside 'overview_popout' that if called, makes overview_popout run in reverse. So if you m/over the menu item, the submenu pops out, and when you m/off, the submenu pops back in. Okay, with me so far??

The problem is that as soon as you move the mouse to the submenu to click on an item, the mouseover for the main menu item is no longer true and the 'reverse' clip is called and the submenu dissappears.

I know there must be a logical, and therefore stupidly easy, solution to this, but I cannot see it for the life of me. Please help someone as this is driving me mad!!!

cheers

frank

View Replies !    View Related
RollOver And RollOut Actions
I posted this once before but I guess it was lost amongst the traffic - hehe.

What I am attempting to do is to have a button that when rolled Over it will "open" to reveal another button.

If this button that is inside is rolled off it will then close the original button.

The problem is that once I have it set up to rollOut the button that I started with no longer has any interactivity. It is virtually "dead".

I will supply the .fla again and any help on this would be appreciated.

I think I have my coding mixed up as i am just getting familiar with paths, and levels and the such. I have mainly used Flash for personal use and a few animations but desire to learn more on ActionScripting.

Thanx in advance.

View Replies !    View Related
Help For Advanced Rollover & Rollout
Hi,

I need help with a rollover & rollout bug.

I am trying to make an advanced rollover & rollout without any bugs like the one on this web site: http://www.hybride.com (in projects).

First of all the rollover is different than the rollout.

And also when you click on the button and move the mouse very quickly away from the button the rollover doesn't stay like the mainmenu of http://www.2advanced.com

Does anyone have an example for me please.

Thanx!
Rob

View Replies !    View Related
On Rollover, Rollout, Release
hi anyone!
i can´t have all of the above actions on the same hit area. i have two pictures i wanna use. rollover and rollout functions ok, but the release action refuses to funtion together with the rollout one. it functions if i take away the rollout fuction. rollover and rollout works fine together. rollover and release workfine together. but not all three.

on rollover: picture2
on rollout: picture1
on release: picture2

why can´t the "release" action work together with the rollout one?

the two buttons i work with are different mc.

thanks
cam

View Replies !    View Related
Complex RollOver And RollOut , How Do They Do It?
how do they make the buttons like this website ?
http://dirtyonline.net/index2.htm

anyone, any help?

thanks.

may peace prevail soon.

~Zain

View Replies !    View Related
RollOver And RollOut Safeguarding
I have a movie clip that is attaching mc's from the library into it, and I define their onRollOver and onRollOut functions, so itwill play a short animation for each of those actions... however, if I move the mouse over them quickly, they get stuck in a frame and then the actions begin doing the opposite of what they were originally meant to do...

code:
obj["mc" + i].onRollOver = function (){ this.gotoAndPlay(1);}
obj["mc" + i].onRollOut = function (){ this.gotoAndPlay(11);}


so the script works if you move the mouse very slowly, but I'm wondering if there is a way to prevent this from happening, besides setting an onEnterFrame action that uses hitTest, and just tells it to stop on the first frame if hitTest fails, b/c then the onRollOut animation will never play. Ok, that was a long explanation, so if it doesn't make sense, i'll think of a way to reword it... thanks,

dave

View Replies !    View Related
Rollover/Rollout Animation Help
How could I make a button animate when rolled over, and then play another animation on the same button when rolling out?
An example of something similar to what I'm referring to is included on this site:
http://www.layerbit.com/en004l/index.htm
(the buttons on the bottom; services, portfolio, etc.)
and
http://www.twelveten.com/12102.html
(enter the site; the navigation on the right)

Thanks for any help!

View Replies !    View Related
RollOver And RollOut Problem
This relates to Flash 5 Actionscript.

The partial code below is on a button within a movie clip that is included as many instances from the library. Within library movie clip, there is a text box under the button.

The variable targetField is being correctly established.

The variable _level0.stillSelectedField is used to determine whether the rollOver event is still active for the same instance of the movie clip, and if so to prevent the rollOver event from reslecting the text in the text box under the button.

The problem is that when the rollOut event is set to clear the variable _level0.stillSelectedField, the rollOver event continues to execute the Selection.setFocus command. With the rollOut event no longer clearing the variable _level0.stillSelectedField, the rollOver event operates as required - that is, it does not re-execute the Selection.setFocus command.

I understand that the mouse event handling is a bit wobbly. Any ideas?

on (rollOver) {
targetField = "_level0." add targetQual add this._name add ".inputClip.value";
if (_level0.stillSelectedField <> targetField) {
Selection.setFocus(targetField);
_level0.stillSelectedField = targetField;
}
on (rollOut) {
_level0.stillSelectedField = "";
}

View Replies !    View Related
RollOver/rollOut Too Slow
I have a map of states and I want to roll over individual states and have them expand and change alpha as well as populate a common text field with text. I have succeeded in doing this but there is one problem that I have run into in other projects as well. The rollOver and rollOut listeners for movie clips react too slowly. if I pass the mouse too quickly over the state it plays the animation of the state expanding but does not "catch" the rollOut event and the state stays open. This occurs with multiple states. It even occurs on my fast workstation when the movie is assigned 60 fps. What I am looking for is a code strategy to prevent this from happening in the future. Has anybody else had this problem and/or resolved it? Thanks in advance for your help or suggestions. -c-

View Replies !    View Related
Rollover..rollout MC Control
I would like to have a situation where the user can roll over a button and a MC plays...this seems to work well:


on(rollOver) {
this.attachMovie("mcVideo","window",5);
window._x=0;
window._y=0;
}

But I also want the MC to disappear when the cursor is rolled out...I know this is probably simple to the great minds on this board. I tried the search...but everything was taking forever to load up in the archives. Thanks in advance for your help and patience.

View Replies !    View Related
Proper Way To Do Rollover / Rollout
This is the effect I would like to produce:

http://www.inperspectiverecords.com/

- the buttons that move when the mouse enters.

I knocked this up using a button and a movie clip with a shape tween.

http://www.schoolyardrules.com/help/rollover.html
http://www.schoolyardrules.com/help/rollover.fla
The actionscript I used on the buttons is:

on (rollOver) {
tellTarget ("_root.square") {
gotoAndPlay(1);
}
}
on (rollOut) {
tellTarget ("_root.square") {
gotoAndPlay(10);
}
}

but as you can see it doesnt really work.

What is the best way to create this effect.

Thanks - Joe

View Replies !    View Related
Rollover, Rollout Reversing
Trying to telltarget for the buttons at -
http://www.worldwidewebs.us/gallery/realtopia/home.html - to rollover, rollout. Works fine until I move across the buttons quickly, and then they go into reverse! Would someone please help me on this? thank you, Todz

View Replies !    View Related
Rollover, Rollout Problem
Hi,

Something that's been bugging me for ages.

I have a nice tiny bit of script that suffices for doing rollover, rollout animations on buttons in flash movies, basiccaly, so they animate in and out.

I create a movie clip with the animation of the 'in/on' state, then the code basically plays this backwards.

Here's the code:


Code:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
Well this works fine in all flash movies, but if you move your mouse out of the flash movie when the button is in the 'on' state, the button stays in the 'on' state until your mouse moves back into the flash movie. This point is demonstrated with the attached movie clip - if you roll out sideways, the button returns, but if you move the mouse out vertically, the button stays rolled over.

How do I overcome this?

Also, on some sites - 2A and some of the FI sites such as Firestorm PC's for example, the rollover and rollout states are different. e.g. it animates in, and animates out differently. I've tried putting a movie clip in the over and out states of buttons but had no joy there either.

If someone could shed some light it would me most appreciated.

Sorry if this reads a bit dumb, but i'm tearing my hair out.

Cheers

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved