# Improving a rollover(and rollout) menu

**URL:** <https://forum.kirupa.com/t/improving-a-rollover-and-rollout-menu/106743>\
**Category:** Uncategorized\
**Created:** [April 8, 2004, 1:36pm UTC](https://forum.kirupa.com/t/improving-a-rollover-and-rollout-menu/106743 "2004-04-08T13:36:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Supadiri](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Supadiri](https://forum.kirupa.com/u/Supadiri)\
**Post date:** [April 8, 2004, 1:36pm UTC](https://forum.kirupa.com/t/improving-a-rollover-and-rollout-menu/106743/1 "2004-04-08T13:36:22Z")

</div>

Simple question for the chiefs reading and posting in this GREAT Flash based forum (you rocks guys! 😉 ).

I got an horizontal menu with 6 different links (button i made in flash).

I’d like to know how to have a little circle that zoom itself (increasing) when i go to rollover the button and then zoom (decreasing) when i rollout the button. Same thing for the other buttons. I know how to do it without actionscript but i think it will be easier to have an “actionscripted instance” of that circle (or whatever i’d like to zoom) over every voice of my menu (biography, gallery, etc etc…).

Eg:

I rollover a button —\> the cirlce zooms.  
I press that button —\> the cirlce remains zoomed.  
I rollover another button —\> the circle that i zoomed before desappear smoothly and another circle appears (zooming) over the button i’m going to press.

And so on for all the buttons i got.

Sorry for my bad english and for the confusing (hope not) question i’ve posted.

Really thx for the attention guys 😉

::: KIRUPA(dot)COM ::: ROCKS!

Cya!

Supadiri

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2004, 7:04pm UTC](https://forum.kirupa.com/t/improving-a-rollover-and-rollout-menu/106743/2 "2004-04-08T19:04:09Z")

</div>

You didn’t mention 3d in your first post. May be you should explain about the 3d object yo want.  
As for the zoomig effect, you can use claudio’s code for a movie clip of your choice.  
If you decided to use the code and had problems then post your questions.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2004, 7:19pm UTC](https://forum.kirupa.com/t/improving-a-rollover-and-rollout-menu/106743/3 "2004-04-08T19:19:16Z")

</div>

K…

I checked the post you gave me b4 and that’s my new “rookie” problem 😉 :

1. I’ve created a red circle on the stage (level1) , no borders.

2. Converted to an button instance named “pulsante”

3. Applied this little as modified by the first one of Claudio :

> 

// this is what i’ve added, just the action for the mouse, the “}” at the end of the code and the name “pulsante” instead of my\_movie\_clip generic

on (release) {  
MovieClip.prototype.zoomInAndOut = function(n, s) {  
this.speed = s;  
this.scale = this.\_xscale;  
this.zoom = function(d, s) {  
this.onEnterFrame = function() {  
if ((this.scale\>=100_n && d == 1) || (this.scale\<=100 && d == -1)) {  
delete this.onEnterFrame;  
} else {  
this.scale += d_this.speed;  
this.\_xscale = this.\_yscale=this.scale;  
}  
};  
};  
this.onRollOver = function() {  
this.zoom(1);  
};  
this.onRollOut = function() {  
this.zoom(-1);  
};  
};  
pulsante.zoomInAndOut(3, 30);  
}

The flash bebug gave me no errors…but nothing new happen to the button.

No actions, nothing…just a red dot on the stage?

Any solutions? I know you’ve got! lol :snug:

Cya!
