Improving a rollover(and rollout) menu

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

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 :wink:

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

Cya!

Supadiri

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.

K…

I checked the post you gave me b4 and that’s my new ā€œrookieā€ problem :wink: :

  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>=100n && 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!