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




When Mouse Is RollOut?



i got a MC that follows mouse movement with easing in y-axis.
this is the MC actionscript:

ActionScript Code:
onClipEvent (enterFrame) {    _y += (_parent._ymouse-_y)/5;}


but i only want it to follow the mouse only when the mouse is on top of this MC.
using that script, the MC will follow no matter where i placed the mouse.
can anyone help me to modify it?



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 07-05-2003, 05:16 AM


View Complete Forum Thread with Replies

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

On Mouse Rollout Help
http://www.sccuallstars.com/links.html

When you put the mouse over a circle it animates and the link text is revealed. But if you remove your mouse before the small animation is done playing the text stays. I tried a quick workaround on the button at 11:00 position, but it looks choppy.. I just told it to play 1 frame passed the Stop command in the middle of the animation. So it's not fluid, it's just jumping to another frame.

Any ideas?? Help would be appreciated!

Mouse Rollout Event
What exactly does the mouse event (rollout) do?

I know what it is supposed to do (when moving mouse out of the button area with it on it should do something that you call when rollout occurs?) but I have never got it working!

Usually I make an invisible button that has a rollover and this acts as the rollout but I can't do it in this case as there is a button directly underneath which stops this from working.

Thanks!

Help With Rollout Mouse Events
I have a nav system. It has buttons with MC's that fade out on mouse over and are supposed to fade back in on rollout. But it only works sometimes , the animations are tweened and the actions are obiously scripted. Any ideas, or does anybody need further information.

Help With Rollout Mouse Events
I have a nav system. It has buttons with MC's that fade out on mouse over and are supposed to fade back in on rollout. But it only works sometimes , the animations are tweened and the actions are obiously scripted. Any ideas, or does anybody need further information.

Unload Movie @ Mouse Rollout?
Is it possible to make a movie stop playing on mouse roll out? I know, it seems so darn simple, but when you get right down to it, it can get a bit quirky. Anyone have a good answer to this one?

Help? Mouse Rollout Delay Question
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 ();
}

RollOut And Mouse-speed Problem
I've got a rollOut that works fine as long as the mouse is moved at normal speed. However, if the mouse is hovering over the area and then is zipped away speedily, the rollOut state is never acknowleged. Is this normal? Thanks.

Kennyb

Alpha Button After Mouse Rollout.
I want my buttons to alpha in and out when you roll over them but I dont want them to stop one the mouse has rolled out. An exaple ishere at the top below where it says music box.Thank you for the help.

Mouse RollOut Speed Problem
I'm working in a glowing button and this happens to me: if I rollout too fast the animation keeps running because it does not detect the mouse movement.

I’ve tried two things:
- changing the fps to a higher value
- using a button with only a hit area surrounding the main button. This oversized button will surely detect the mouse movement. But I still have one problem with this solution: two similar buttons too close may cause problems with the codes because it makes two invisible areas to overlap.

My final conclusion: I’m still dealing with this problem. If someone knows of any other solution I would be very grateful.

thx guys.

Mouse Movement Too Fast For RollOut?
Move mouse too fast outside of button and it it fails to gotoAndStop(1)...

Would hitTest or a listener be a better option?

Any help would be greatly appreciated!


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



this is my code for a hide drop down menu...

on (rollOut) {
gotoAndStop(1);
_root.darken_down01.gotoAndStop(1);
}

How To Use Mouse Coordinates To RollOut / RollOver?
Hey guys,

Would it be possible for me to find the mouse position of the cursor via the mouse coordinates in the flash movie, and then apply this to a rollOver or rollOut function? Can anyone explain how this works because at the moment im using invisible buttons to rollOut from a drop down menu but they just get in the way of other stuff and don't function perfectly. I also have a few other uses for it where invisible buttons aren't good for the situation.

Any help would be greatly appreciated!

Thx

How To Remove Text When The Mouse Rollout
How do I remove text when the mouse rollout? I can't find the right code to use and unloadMovie is not the right method.

var myLV:LoadVars = new LoadVars();

btn1.onRollOver = function(){
_level0.myLV.load("vars/email0.txt");
};

btn1.onRollOut = function() {
_level0.myLV.unloadMovie();
}

Rollout Gets Stuck On Quick Mouse Movement
The main FLA has buttons linked to external swf files that are nested in a layer inside an html file. When rollover occurs, it opens up corresponding swf file.

Problem is that when a user moves mouse too quickly over the stage, the rollout gets stuck in the last button the mouse posssibly passed by.

I read in another forum that this is an IE specific issue, but I haven't found any possible solutions. I have also tried increasing the framerate of the FLA file, but had no luck.

Any suggestions would be appreciated.

TIA.

FLA file

Quick Mouse Movement Causes RollOut Not To Work
Hi, I'm sure this is a common issue ... however I've searched the internet and can't find any help on the issue. I have 6 buttons with rollOver & rollOut scripts. These scripts set an animation in progress. However, when you move your mouse over quickly the buttons get stuck down (at the end of the "rollOver" animation). Understand?

I have tried two scripts, and both still have the same issue:

on the first-frame:

Code:
home_btn.onRollOver = function():Void{
home.gotoAndPlay(2)
}
home_btn.onRollOut = function():Void{
home.gotoAndPlay(5)
}
OR ... this code on the button:

Code:
on(rollOver){
about.gotoAndPlay(2);
}
on(rollOut){
home.gotoAndStop(1);
about.gotoAndPlay(5);
quotes.gotoAndStop(1);
holiday.gotoAndStop(1);
travel.gotoAndStop(1);
members.gotoAndStop(1);
contact.gotoAndStop(1);
}

Rollout Gets Stuck On Quick Mouse Movement
The main FLA has buttons linked to external swf files that are nested in a layer inside an html file. When rollover occurs, it opens up corresponding swf file.

Problem is that when a user moves mouse too quickly over the stage, the rollout gets stuck in the last button the mouse posssibly passed by.

I read in another forum that this is an IE specific issue, but I haven't found any possible solutions. I have also tried increasing the framerate of the FLA file, but had no luck.

Any suggestions would be appreciated.

TIA.

FLA File

Rollout Gets Stuck On Quick Mouse Movement
The main FLA has buttons linked to external swf files that are nested in a layer inside an html file. When rollover occurs, it opens up corresponding swf file.

Problem is that when a user moves mouse too quickly over the stage, the rollout gets stuck in the last button the mouse posssibly passed by.

I read in another forum that this is an IE specific issue, but I haven't found any possible solutions. I have also tried increasing the framerate of the FLA file, but had no luck.

Any suggestions would be appreciated.

TIA.

FLA file

MY On (rollOut) COMMAND DOESNT TRIGGER WHEN MOUSE GOES OVER FAST
http://www20.brinkster.com/commtech3300

this site im making for a masonry company is pissing me off on the pics section....

i pretty much made this site in one weekend so mind the mess right now...still expirementing...

heres the deal:

my on (rollOver) triggers a MC that zooms in on the text....

but when you rush out of the button the MC stays on a stopped frame if the button being triggered.....

is there like a IF script i can give to make sure that it doesnt get tripped up.....

thanks,
mannyme80

Detect Flash Lose Focus (mouse Rollout Swf)
Hello All!

I haven't been able to figure out. Here's the deal:

I want my flash movie to go to a specific frame when the user moves the cursor away from the actual swf file (rollout) in the html page.
I tried different things, for instance having a big transparent movieclip in the background and use hitTest:

//this code is in the root level

this.createEmptyMovieClip('penCheck', 100000);
this.penCheck.ref = this;
this.penCheck.onEnterFrame = function() {
var hit = this.ref.stageArea.hitTest(_root._xmouse, _root._ymouse, true);
if (!hit) {
this.ref.gotoAndPlay("rollout");
}
};

This doesn't work until the user clicks outside the flash (flash loses focus).
PS: No Javascript allowed. Just AS.
Any ideas?

[Flash MX] Rollout Problem When Moving The Mouse To Fast Over Buttons
Hello,

I made a menu in Flash MX with three buttons below eachother (rollover and rollout), and i have a problem with this menu.

When i go to fast over the buttons with the mouse everything gets mixed up. The rollout animation starts when you are rolling over, with the mouse on the third button it shows the animation of the first button etc.

When you go over the button's slowly it works fine....

I looked on several forums for a solution but still didn't find any

Can someone please tell me what i'm doing wrong and explain to me how to do this right?

I put the files online at:

http://members.home.nl/r.spekle/Menu.swf
http://members.home.nl/r.spekle/Menu.fla

Thank's

RiAnimator

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

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

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!

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