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




Roll Over?



First off I'd like to say taht I have absolutely no experience with flash and figured this is too advanced for me to teach my self quickly...I have a myspace profile that I am making. I have it divided into a couple divs. When somebody rolls over one of the buttons on my menu i want to be able to display text in the middle div...what would I need to know to do this?? Thanks for you help.



FlashKit > Flash Help > Flash Newbies
Posted on: 06-29-2005, 11:15 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

On Roll Over I Want An Mc To Expand Smoothly, And Then Shrink On Roll Off Back To It'
i used to have a cool component that helped me to do this. I'd prefer to do it with code, and have easing involved, rather than on the timeline.

Do you know of an efficient way to achieve this rather basic effect?

I'd ideally like to control the speed with a variable perhaps.

thanks.

How To Get A Custom Cursor When I Roll Over A Movie And Dissappear When I Roll Out?
I want to be able to have the cursor turn into a custom one when I roll over the movieclip and be able to turn back to the default cursor when I roll out of the movieclip.

I've tried looking up for tutorials and mucking around with ActionScript for a bit but so far it doesn't work the way that I want it to.

Help would be appericated

*Ooops. I forgot to mention that I'm using Flash 8

On Roll Over I Want An Mc To Expand Smoothly, And Then Shrink On Roll Off Back To It'
i used to have a cool component that helped me to do this. I'd prefer to do it with code, and have easing involved, rather than on the timeline.
Do you know of an efficient way to achieve this rather basic effect?
I'd ideally like to control the speed with a variable perhaps.
thanks.

Roll Over And Roll Out Action Wthout Buttons
How can I assigne a roll over and roll out action to movie clip without using buttons.

I just want by rolling over the MC to do an action and by rolling out to do another action but without action. The action must be assigned to movie clip

thanx

Vojko

Controlling Movies W/ Button Roll Over/roll Off
I have a button that when rolled over sets a movie to play. The movie plays until a stop point. (some text fades up) Then when the button is rolled off of the it triggers the second half of the movie (text fades away).

However, when the button is rolled over and rolled off too quickly (before the movie reaches stop point?) the movie becomes stuck at that first stop point even though the mouse is off the button. (text remains stuck)

Maybe I can set the "stop" action in the movie to check whether the button has already been rolled off of already before stopping???

Please help!!!

navi.

On Roll Over I Have An Mc Follow The Mouse, But How Can I Have It Return On Roll Out
Basically, you roll over a piece of text, and it follows the mouse, using the following code.

onClipEvent (load) {
_x = this._x;
_y = this._y;
speed = 44;
}
onClipEvent (enterFrame) {
if (_global.penthouse**** == 1) {
endX = _root._xmouse;
endY = _root._ymouse;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}
}


However, the problem is that when I roll off this thing, it is sort of snapping back to it's original position. I'm thinking there is a way to animate it back to it's original state, but I'm not sure how to do this.

Could you show me the way?

Thanks.

Button Inside Mc With Roll Over Roll Out Action
hi,

i have a button inside a movieclip. this movie clip has a roll over roll out action. the button is not working. what can i do?

Roll Over + Roll Out + Mouse Move = Problem?
Hi guys I have a problem I want to swap cursor after roll over on some object. so I did something like this:
Code:

private function cursorOn(e:MouseEvent):void{
         this.addEventListener(MouseEvent.MOUSE_MOVE, onMove);
         Mouse.hide();
         Tweener.addTween(triangleCursor, {alpha:1, time:1, transition:"easeOutExpo"});
         addChild(triangleCursor);   
         trace("on");
      }
      
      private function cursorOff(e:MouseEvent):void {
         this.removeEventListener(MouseEvent.MOUSE_MOVE, onMove);
         Mouse.show();
         Tweener.addTween(triangleCursor, {alpha:0, time:0.5, transition:"easeOutExpo"});
         trace("off");   
      }
      
      private function onMove(eve:MouseEvent):void{
         triangleCursor.x = (mouseX -50);
         triangleCursor.y = (mouseY - 100);
         eve.updateAfterEvent();
      }


So the problem is when I move my mouse sometimes the rollOut event is fired but the wird think is that I am still Over my object and I am sure of it when i remove the MouseMove function everythink is fine, I know I had this issue long time ago but I dont remember how I deal with it. I will appreciate any advice.

Simple Roll Over/roll Out Tasks
hey im sure this is very easy for most people here, so i have a question. im trying to make a dropdown box in flash... now this is what i was using to experiment with so its incredibly simple... but i have one problem..

well, here's an overview before i go on.

i have scene 1. roll over a button and goes to scene 2 where a backdrop appears and 2 buttons. at the end of a very short, cheap animation, scene 2 ends with the command "Stop". if you roll the mouse off of it all, it goes back to scene 1 where it began.

the problem is, how i have it set up, i can't get to the buttons, and ive tried a few other ways, but ill have problems when i actually get to the buttons, it rolls out of the back area (onto the button) and that tells the movie to go back to scene 1.

i hope that made sense.... well here's the .fla file if anyone would be so kind as to help out. you can download and change it, whatever... i just want to figure a way to make it work (And if possible, keep it SIMPLE)


http://www.geocities.com/hit_j_rizzl...h/dropdown.fla

http://www.geocities.com/hit_j_rizzl...h/dropdown.swf

thanks a lot!!!! and if you could, it would be of GREAT help to get the solution back before tomorrow (thursday)

Roll Over & Roll Out Button Advice
I'm trying to do something which I imagined would be very simple... I was wrong! (I'm using MX)

I want to make a button which, when you roll over it, has a background fill that fades in, and when you roll out, the background fill fades out. The up state needs to be just text ("contact" for example) and I obviously don't want the button to reset on release. Can anyone give me advise?

I've tried doing this with and without AS and it never seems to work for me. I can get the fade-in and fade-out to work without AS, but then the button action doesn't work. I've seen this done on multiple websites and I can't figure it out for the life of me. Any help would be greatly appreciated. Thanks all.

Roll Over Menus Roll Out Problem
Hey guys,

on my site i have roll over menus....

you roll over a button and an animated menu appears...

i have an invisible button surrounding the menu that when you roll over it it tells the rest over the animation to play(getting rid of the menu).

however if u roll over the button to quicky the munu stays there and u have to go pack and roll out again.

take a look at it here : http://www.shapebydesign.com

if anyone knows how to fix this, or a better way to make my menu id really appreciate it.

thanks in advance.

simon

Roll On Roll Of Button Blues
Hi can any one help? I have made a button that when rolled over 'shrinks' and when rolled off 'grows' all nice and smooth. I have done this with the following code:

on(rollOver){
_root.mc1.gotoAndPlay("grow");
}
on(rollOut){
_root.mc1.gotoAndPlay("shrink");
}

Now, I need this button when pressed to go to a certain frame number on the main stage, or another scene, I thought the code:

on(release){
gotoAndPlay(35);
}

would do the trick but it doesn't seem to work. I have made the button by converting the button to a movie and then placing that movie on the main stage. Any ideas would be greatlt appreciated.

Many thanks

How Do I A Roll On/roll Off Animation For This Button?
I have a MC thats contains my buttons (nav) called Buttons_MC. In it I have a button called About.

When someone rolls on the About button I want it to play an animation from movieclip Back_MC. And when person takes mouse off the button I want it to play Back_MC but start on frame 26.

thanks guys

It's Magic - I Can Roll Off And Roll On Something At The Same Time
I'm having troubles with a few event listeners. I have a movieclip which has 2 event listeners attached to it. One for move_over and one for move_out. When i roll over the movieclip, both events are triggered??? Why???

Advanced Roll Over And Roll Off Effects...
I want to be able to make a movie clip (that acts as a button) so the roll over effect finishes before the roll off effect is triggered. Like if a marker circles a button, i want the circling animation to stop before the roll off effects happens. Anyone know how to do this. Thanks.
Mike

Advanced Roll Over And Roll Off Effects...
I want to be able to make a movie clip (that acts as a button) so the roll over effect finishes before the roll off effect is triggered. Like if a marker circles a button, i want the circling animation to stop before the roll off effects happens. Anyone know how to do this. Thanks.
Mike

[FlashCS3] Pls Help Roll Over Menu Conflict With Roll Out - Vimeo Menu Style
Hi there,
I'm trying to make the menu in FLV player like Vimeo but it seems roll over always conflict with roll out script (I just start to learn how to write script and use only basic onRollOver, onRollOut). I am totally have no idea how to make the video controls visible only when you roll over the video clip like VIMEO. It looks like they build it on different way of mine as when the mouse over the flash area their cursor still be an arrow but mine is hand pointer.
Please anybody could help me or give me some suggestion.

Many many thanks,
Yota

Roll Out Menu Does Not Roll In :-(((((
Hi,
I am trying (since days :-((( ) to get my menu roll in just as smooth as the way it rolls out, I have corrected the script, still it does not work the way I want.
Here the function script:

function menucontrol(nextmenu) {
switch (nextmenu) {
case 1 :
gotoAndPlay("product_out");
break;
case 2 :
gotoAndPlay("app_out");
break;
case 3 :
gotoAndPlay("serv_out");
break;
case 4 :
gotoAndPlay("prof_out");
break;
case 5 :
gotoAndPlay("onl_out");
break;
default :
//trace("no case tested true");
}
}

function menuactive(closemenu) {
switch (closemenu) {
case 1 :
gotoAndPlay("product_in");
break;
case 2 :
gotoAndPlay("app_in");
break;
case 3 :
gotoAndPlay("serv_in");
break;
case 4 :
gotoAndPlay("prof_in");
break;
case 5 :
gotoAndPlay("onl_in");
break;
default :
}
}
and here the script on one of the button(all have the same, calling different markers):
on (release) {

_root.nextmenu = 1;
_root.closemenu;
_root.gotoAndPlay("product_out");
}

THanks for any help on that
12&70

Roll Over, Roll Out, GotoAndPlay
i have a button that has a roll over/out script applied to hit area over a movie clip that fades in and out, it as follows:

on (rollOver){
gotoAndPlay(1);
}
on (rollOut){
gotoAndPlay(7);
}

now im back on my main timeline and i want to add a gotoAndPlay action to this button - but when i do it stops the roll over/out function from working.. seems i can only have 1 function or the other - any suggestions please? thanks in advance

Roll Over/Roll Out Problem
I have a button issue, I have set up a sub menu and the buttons need to work as follows; on the off state and out state they are green(frame2) and on over and press they are orange(frame 3).
I have used the following code but when you roll out it stays orange. When I added the roll out command it over rides the press command.

It works fine apart from the roll out so I need help with that command. I haven't used an actual button fot this but a movie as I can't make the button stay orange when pressed.

Please help!


on(rollOver) {

_root.movie1._visible = true;
_root. movie1.gotoAndStop(3);
}

on(press) {
_root.movie1._visible = true;
_root. movie1.gotoAndStop(3);
}

Roll In - Roll Out Button
I have some script that is for a roll in - roll out button.
The problem is that it rolls in, but will not roll out.

I'm placing it on a MC rollover button (if that makes sense)
but I have have it placed in the middle of the main timeline, on a frame
that has script for disabling other buttons.

I am just curious wheather it is right for this.

O.K. here it is:
startFrame = 0;
movieclip.prototype.back = function() {
this.onEnterFrame = function() {
this.prevFrame();
// DELETES THE ENTERFRAME IF THE CLIP IS AT FRAME 1
if (this._currentframe == 1 | startFrame == 1) {
delete this.onEnterFrame;
CLIP.play();
}
}
}
button_mc.onRollOver = function() {
startFrame = 1;
CLIP.play();
}
button_mc.onRollOut = function() {
startFrame = 0;
CLIP.back();
}

Roll Over And Roll Out Problems
SO I don't quite grasp of roll outs. If you look at this site as an example
http://www.templatemonster.com/flash...tes/10117.html
As you rollover something it moves, and then when you roll out it moves back smoothly. Does anyone have a simple code or example I can see how the fla would look. I can adjust it to work for what I want but I am dont understand where I put the movie clip of the animation in the file
Thanks
D

Roll On Roll Off Animation
I want to create a simple movie. I have a black and white image that fades into colour. I have a movie clip called movie1. In that movie i have two images 1 in colour and 1 in black and white. Both images are in different layers. When you play the movie the black and white image fades out and the colour one fades in. Fairly basic. What i want to do is create the action that when some ones mouse over the image it plays so the colour image fades in but when they mouse off it fades back into the black and white image.

Any ideas?

Many thanks

[F8] Roll Off From A Roll Over Animation. How?
I'm not sure how you can do a roll off, what I'm talking about is buttons, I'd like to play animation when you roll off a button.

Roll Over Not Working Within Another Roll Over
Hi,

I have created a roll over and attached it to a movieclip. I have then created another movie clip inside that and applied the same roll over. Only the first one works?

To explain further:

I have created a circle on the stage and turned it into a movieclip. I have then attached some code to it that bascially tells it to grow 10% larger when you roll over it. This works fine...

I then created another, smaller circle (and turned this into a movie clip) inside the movie clip and attached the same code to it. For some reason I cannot get the smaller circle roll over to work? Only the larger circle works each time. Is it possible to have a roll over work within a roll over?

Any help is really appreciated:-)

Roll Over / Roll Out Buttons?
how can i do this kinda effect
http://flashden.net/item/fairy-dust-...ver-only/10491

I dont wana copy that i wana make my own, bt how is it done?

Roll Over, Roll Out Menu.
Hi i got an menu in flash on my website.

http://www.freewebs.com/mralucard/

And I got a bit of a small problem, when you move the mouse over "contact" and the to "designs" you see that the text just pops away, I want to make a motiontween of it.

So when you move the mouse of "contact" the text below it should fade away (or an other movement)

I hope you know what am talking about.

Here is how it works.

Button contact Actionscript =

"on (release) {
getURL("http://www.developingwebs.net", "input");
}

on (rollOver) {
submenu.gotoAndStop(2);
}"

With this action it loeads the MC submenu and it opens frame two there but also stops at frame two.

I hope you get it.

Roll Out, Roll Down Effect Help
Hi,

I'm trying to incorporate a "roll-out" effect. I have 3 projector screen images, each one progressing until the entire projector screen is laid out, but not sure how to create it. The ultimate effect I would like is to have the screen roll down. I tried both motion and shape tween between the images but don't quite get the effect I'm looking for. Esp with the shape tween, it repeats the image too much (because I "break apart" my image/mc). Any suggestions or links to tutorials or samples?

Thanks

Roll Over, Roll Out Menu.
Hi i got an menu in flash on my website.

http://www.freewebs.com/mralucard/

And I got a bit of a small problem, when you move the mouse over "contact" and the to "designs" you see that the text just pops away, I want to make a motiontween of it.

So when you move the mouse of "contact" the text below it should fade away (or an other movement)

I hope you know what am talking about.

Here is how it works.

Button contact Actionscript =

"on (release) {
getURL("http://www.developingwebs.net", "input");
}

on (rollOver) {
submenu.gotoAndStop(2);
}"

With this action it loeads the MC submenu and it opens frame two there but also stops at frame two.

I hope you get it.

Manage Roll-over, Roll-out With FLV
Hi,

i'm trying to do roll-over and roll-out transition with FLV, one for each state.
If my roll-over animation is finish and the mouse come on the area, i start the roll-over animation and then i shift its visible when the video is ready to play.
The problem is when i use the event "NetStream.Play.Start" of the netStream object that two early and then they have a display delay between the event launching and when the video is deplayed.I tryed after with the event "NetStream.Buffer.Full" and it's to late, the video has already started .

Has someone any or acountered this problem.
For information videos are loading from web server

On Roll Over Unload Movie X, On Roll Out Load Movie X.
On roll over unload movie X, on roll out load movie X.

I’ve got a button that when you “roll over” it he unloads a movie in a certain level; I’ve also got 4 movies that are loaded in the main movie. My question is: how can I have that same button with another action like “on roll out” load the previous movie that was unloaded.

thanks!!

Roll Over
If you have an image as a button, what is the best way to change that image on roll over?
I can go to another frame on roll over, that contains the image to change to..any better way than that?

Roll Over, Roll Out?
I am wondering how you have a 3 state button
for example you have its up mode ( which does nothing)
then over (ie. green fades to blue)
then on roll out it fades back to green.
I hope this example is clear.

at moment I loaded a buttons over state with a movie clip and put the action goto and play on the button,then it plays the roll out.
I figure there must be a better way.
Thanks in advance

Can't Roll On Out...
Hey, does anyone know how to get a button to make a movie clip play on a button roll out? I know how to put a movie clip in the over state, but that's where my knowledge ends.

I know it involves the Tell Target, but I'm not sure.

Roll Over ~~?~~
Is there a rollover action in flash 5?
~
All I'm trying to do is have a button on the stage and when you mouse over the button you go to and play frame 2 which has the movie in it..then when you mouse out on frame 2 you go back to frame 1 ,,should be real easy??
What am I doing wrong?
Thanks,
TastelessB

Roll Out
OK, I've created a button and placed it at scene 1, frame 1. I've modified frame 1 with the action "stop". I've also modified the instance to "go to next frame on roll out"
At the next frame (scene 1, frame 2) I've place a movie. So far so good. When you mouse ooff the button, the new movie is called up. This works fine. Here's where I get lost. How do I get the movie in frame 2 to go to frame when when it's finished playing??

Help Me Roll Over
I am developing a new navigation bar on http://www.cal-am.com/dev/home.html and am having some trouble getting the desired result. I have a MC "window shade" that opens on rollover to expose some buttons. This MC should close on roll out, but I don't quite have it working right. Please let me know if you have any suggestions. I will email the fla to anyone willing to look at it and help me! THX!

Roll On... Roll Off...
I've created a simple button which has a simple tween animation played out when the mouse goes over it. The problem that I'm having is when the mouse goes off the button I want a peice of animation played back to its original state...

I'd be greatfull if anyone has any ideas in how to do it...

I'm stuck... stuck... stuck...

On Roll Over Add 1 (help Me)
i would like to know how to make a number in a text box count upward on rollover, how would i do this?

NativeMunky needs your help.

On Roll Over, On Roll Out
Dearest Flash Board,

I'm experiencing confusion while making some menu animations.
i have a button which i want to make light-up on mouse roll over and turn-off on mouse roll out.

an instance of this button is on the stage and its alpha is set to 20%. underneath it, is a movie clip called "light01". light01 has a stop in the first frame, but if told to play, lights up. then another stop. and if told to play, turns off.
i selected my button on the stage and entered this actionscript:
_________________________

on (rollOver) {
tellTarget ("light01play") {
}
}
on (rollOut) {
tellTarget ("light01") {
play();
}
}
_________________________

but it only lights up when i mouse on then mouse off.
and then, it only turns off when i mouse on then mouse off AGAIN.

also i get in the output window this message:
_____________

Target not found: Target="light01play" Base="_level0"
_____________


can anyone help me to get some skills?

Best Regards,
KQ

Roll Out
ok heres a good one I have a button that triggers a MC of a picture off to the right of my buttons. I have a roll over action to goto and play the frame it is in but to get it back to the original screen without replaying is what I cant figure out. I tried on roll out and i dont kno what action to use. PLEASE HELP!!!!

Roll-over
Hi
Can anyone point me to a tutorial on how to create an roll-over effect similar to the one that's used on the play-stop-volume button on this netplayer? I'm interested in the way that the button enhances and 'push the other buttons away'.
Follow the URL bellow:

Danish national radio

Roll Out ?
I am an application engineer for a building automation company and i am experimenting with flash in our web based control programs. I am not a newbie, however not a flash guru.

I am making a keyplan of a building 2 floors with 7 areas on the first floor and 3 areas on the second.
the keypan has to be pickable.
I began by making a bunch of gifs one with both floors then one of each area and i pasted them all on differnt layers in frame 1
so on frame 1 layer 2 i had first floor area A
now i made all these gifs of the areas button symbols.
My Plans are when you scroll over the area to have in scale larger
and when you scroll off to scale back down to size
My problem is i cant get it to scale back down to size

here is my coding

Layer 2 Frame 1
First Floor Area A symbol
on (rollOver) {gotoAndPlay(2);}

Layer 11 Frame 2
stop();
also Movie symbol of area scailing 200% larger

Movie Symbol 1
Frame 30 (end of movie clip)
Layer 1 stop();
Layer 2 on (rollOut) {gotoAndPlay("keyplan",3);}
where keyplan is what i named scene 1

Layer 11 Frame 3
Layer 1 stop();
Layer 2 gotoAndPlay("keyplan",1);


which should end the process, my command to frame 2 is working however not to frame 3, when i test the movie everthing works,
you see the keyplan, when your scroll over "area a" it enlarges, then when you scroll off it, it just dissapeares, and you cant scroll back to it anymore

if you have trouble understanding my the keyplan is temperarly up at www.boydbrothersservice.com/keyplan.html

thank you
Matt Boyd

Roll Over
hi, can anyone spot any errors with this script:
on(rollOver)
{
gotoAndStop("Scene 1",2);
}
on(rollOut)
{
gotoAndStop("Scene 1",1);
}


I'm using rollovers through the up,over,down,hit approach. I'm also having trouble getting that to work. The hit frame os overlapped by the button image and therefore the rollover never takes place.

Can I get some help with both of these problems?

Thank you.

Roll Over
hello,so finally i could log in. i have a very important issue to discuss with u guys: i would like to create a simple roll over button that jumps to a label in order to display the roll over state which is a static movie clip. i was using on roll over and then go to and stop at the label.on roll out go to action and then go to and stop at the normal position again. both labels carry a stop action on an individual action layer.it doesent work.please help me iam desperate.
thank you
mona

Help Me Please. ROLL OFF.
Ok I attached my fla, file I need some help here guys. These are my buttons I want to add the roll off script to this button. I want the button to fade back to normal when you roll off. help me out if you can.

Roll Over Help
I have one dynamic text field, and idea is to load dynamic text every time when mouse is on button and to unload when mouse is not on button, this is for making help, you know like button A is Quit..

Roll
i got a problem with the rollOver and rollOut ... just take a look in the fla file

Roll Em
I am building a dice roller in flash, that rolls different types of dragon dice, and I want it to be able to roll any number of dice as well as just one. I have figured out how to do one dice at a time, how would I do a loop or similar to repeat the process howevermany times I tell it to. Also, I want it to return the results to a text bit at the bottom called "results". Any Ideas?

Roll Em
I am building a dice roller in flash, that rolls different types of dragon dice, and I want it to be able to roll any number of dice as well as just one. I have figured out how to do one dice at a time, how would I do a loop or similar to repeat the process howevermany times I tell it to. Also, I want it to return the results to a text bit at the bottom called "results". Any Ideas?

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