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




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?



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 10-19-2005, 07:02 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 )

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

Help With RollOver/rollOut Actions Inside A 'for' Loop
I'm building a menu dynamically from an XML file... the menu builds fine, but the attached functions don't work how I want them to, and not sure why...

Whichever button I rollover, it always thinks I have rolled over the same button! (the last one, button 8, in this case).

Trace output:
rolled over button8
rolled out of button8
rolled over button8
rolled out of button8

The actionscript:


PHP Code:



            for (var i = 0; i<node.length; i++) {
        //----attach the projectButton movieclip from the library----//
        attachMovie("projectButton", "projectButton"+i, i);
        //----move the button to the right place----//
        currentButton = _parent.portfolio["projectButton"+i];
        currentButton._y = 27*i;
        //----put the name of the project onto the button----//    
        currentButton.projectID.text += node[i].attributes.title;
        //----rollover function----//        
        currentButton.onRollOver = function() {
            trace("rolled over button"+i);
            currentButton.projectID.text = "";
            currentButton.projectID.text += node[i].attributes.description;
        };





If anyone has any ideas I'd be very grateful ;D

2 Or More MovieClip - Same Rollover RollOut
Hi people, i have a question in Actionscript 2.0. it is a way to do something like this:


Code:
mc_menu.btn_home.onRollOver, mc_menu.btn_contact.onRollOver = function () {
trace ("hi world");
}
i want to reduce my code lines, i hope you can help me.

Thanks people!

RollOver And RollOut Movieclip....
Hi guys,

Help me with this problem...
I have a button which on ROLLOVER shows a MOVIECLIP on the stage and on ROLLOUT it should remove it from the stage.
Check out this code which perfectly works as i want

on (rollOver) {
//Movieclip GotoAndPlay Behavior
this.Teal.gotoAndPlay("2");
//End Behavior
}
on (rollOut) {
removeMovieClip(this.Teal);
//End Behavior
}

but my problem is wen i go back to same button after a rollover, the movie clip doesnt show or code does not respond.

Where did i go wrong pls tell.

Thank You

2 Or More MovieClip - Same Rollover RollOut
Hi people, i have a question in Actionscript 2.0. it is a way to do something like this:


Code:
mc_menu.btn_home.onRollOver, mc_menu.btn_contact.onRollOver = function () {
trace ("hi world");
}
i want to reduce my code lines, i hope you can help me.

Thanks people!

RollOver And RollOut Movieclip....
Hi guys,

Help me with this problem...
I have a button which on ROLLOVER shows a MOVIECLIP on the stage and on ROLLOUT it should remove it from the stage.
Check out this code which perfectly works as i want

on (rollOver) {
//Movieclip GotoAndPlay Behavior
this.Teal.gotoAndPlay("2");
//End Behavior
}
on (rollOut) {
removeMovieClip(this.Teal);
//End Behavior
}

but my problem is wen i go back to same button after a rollover, the movie clip doesnt show or code does not respond.

Where did i go wrong pls tell.

Thank You

[help] Using RollOver And RollOut On A Movie Clip With Buttons Inside?
I have an mp3 player that sits off stage. There's a tab sticking out for it. When you moust over this tab (which is inside the mp3 player mc) I need the player mc to gotoAndPlay("over"); which is the player animating onto the stage. Then when you rollOut it will gotoAndPlay("out"); Which is the player animating back off stage.

Now I can do all of this easy, but then none of the buttons inside the mp3 player mc don't work because flash thinks the whole movieclip is one big button. How can I get this all to work. I hope that makes sense.

Using A Movieclip For Buttons. - RollOver RollOut Tricks
Hello,

I'm using a button created by using a movieclip symbol and an action script on the main timeline.

When the user rolls on, it plays the mc from a specific frame to another frame. When the user rollsout it plays again, from frame a to b as told.
Same with onPress.

However, when the button is pressed, I want the movie to play all the way, even if the user has rolled out.

I don't know action script, I wonder if there's a way to use the "if" concept, telling the button to remain playing the movie if "onPress" is playing. As if locking the mc temporarily.

How can I make one function not disturb the other in this case?

Thanks


P.S I'm sorry I'm so bad explaining my situations in flash

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.

Button Inside Complex Button RollOut/RollOver
I created a movieclip from the tutorial "Complex Button RollOut/RollOver Effects" which I want to use as a menu. Is it possible to add buttons inside this movieclip??? I try and try but the buttons are never recognized, only the movieclip can be pressed.

Rollover Plays Frames 1-5 Of Movieclip, Rollout Plays 6-10
Need help on this, i'm sure it's the most basic thing, but haven't found my answer thru the help files, etc !

I have a button which on rollover i need to play one of my movie clip animations from frame 1-5 (i have a stop action on frame 5), and on rollout i need it to play the rest of the animation (6-10).

at this point, i simply dropped the animation onto the 'over' state of the button, but don 't know where to go from here, if not back to the drawing board.

the button is called 'button1' and the movie clip is 'animation'.

if it's better to do this with an external movie clip, i'd be cool with that, too.

thanks for the help

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!

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

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

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>

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

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)

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

Copyright © 2005-08 www.BigResource.com, All rights reserved