Search  

SCALING MENU

HomeBrowse CategoriesFlashMenus & ButtonsHorizontal MenusScaling menu

Dynamicaly created scaling menu that zooms on mouse over.

Ok, i updated the doc, now u can enter different images for buttons.

Posted 8 months ago

beautiful… :D

Posted 8 months ago

nice dock ;)

Posted 8 months ago

Tell us more about it. Is it XML ? How hard is it to change the button art? is the zoom level adjustable? how many items can you put display – more than 7? Can we adjust the gaps in between? can the buttons be resized easily?

Posted 8 months ago

I like

Posted 8 months ago

Can I replace the blue images, do I have to replace the reflection image as well?

Posted 8 months ago

it’s not XML , the buttons created automatically from Array, when you enter the name of Button to this array it creates button also. And yes it’s resizeble. You can adjust the space between buttons by changing the value of variable. You can create as many buttons as you wish.

About blue images, yes you need to change reflection image too.

Posted 8 months ago

Hi,

is it possible to take a different image for each button? like a special “home”-button or “contact”-button …

Posted 8 months ago

No you can’t put different images to buttons on this version. But it’s not so diffucult to make some changes so you can input different images. If you will have problems with that I will gladly help you.

Posted 8 months ago

cant i jump to another slide? maybe is a new scene?

Posted 7 months ago

you mean when you clicked the button you want to jump to another scene? than yes you can.

Posted 6 months ago

Hi,

Very nice.

Can I use each of these buttons in my main movie to load external swfs in an empty movie clip?

I want to use an action like this on each of the buttons:

on (release) { if (_root.currMovie == undefined) { _root.currMovie = “home”; container.loadMovie(“home.swf”;); } else if (_root.currMovie != “home”;) { if (container._currentframe >= container.midframe) { _root.currMovie = “home”; container.play(); } } }

Will it work in this manner? Thanks…

Posted 6 months ago

yes u can just paste the code below into onRelease function (begining from line 41), and you can write your code for each button…

whereAmI = Number(num)+1; switch (whereAmI) { case 1 : trace(“Button number “whereAmI” clicked”;); break; case 2 : trace(“Button number “whereAmI” clicked”;); break; case 3 : trace(“Button number “whereAmI” clicked”;); break; case 4 : trace(“Button number “whereAmI” clicked”;); break; case 5 : trace(“Button number “whereAmI” clicked”;); break; case 6 : trace(“Button number “whereAmI” clicked”;); break; }

Posted 6 months ago

AweR,

I need to place this file within another movie. When I do this only the first button scales. How can I change the action scripting so that it work when it’s not in the main stage?

Thanks, pZitty

Posted 6 months ago

Hi there,
Just copy the MC on the MAIN STAGE and pate it where ever you want, it must work. I just tried it and it worked well… if this does not helps just send your sample to me and i will fix it and send back to you.

Posted 6 months ago

That’s the problem I don’t need it on the main stage I need it within another MC. Is this possible?

Posted 6 months ago

Never mind I found the problem. I was already using some of the same variable names that you had in your script for something else.

Thanks. It works great now!

Posted 6 months ago

is it possible for it to be on zoom on press instead of rollover?

Posted 6 months ago

yea i can make it, but than the meaning of button will disappear.
anyway if you want that i can make it.

Posted 6 months ago

Can each button be told to point to a different link? currently all buttons go to same link despite creating an image on in the MC…Could you post a sample code of how to accomplish this? thanks. :)

Posted 5 months ago
just replace your code from line 38 to 66 with the one below, and change the URL addresses… //on button clicked function this["btn"+_l1].onRelease = function() { //on button clicked function here whereAmI = Number(num)+1; switch (whereAmI) { case 1 : getURL("http://www.google.com", _blank); break; case 2 : getURL("http://www.google.com", _blank); break; case 3 : getURL("http://www.google.com", _blank); break; case 4 : getURL("http://www.google.com", _blank); break; case 5 : getURL("http://www.google.com", _blank); break; case 6 : getURL("http://www.google.com", _blank); break; case 7 : getURL("http://www.google.com", _blank); break; } }; Posted 5 months ago

just replace your code from line 38 to 66 with the one below, and change the URL addresses…

//on button clicked function this["btn"+_l1].onRelease = function() { //on button clicked function here whereAmI = Number(num)+1; switch (whereAmI) { case 1 : getURL("http://www.google.com", _blank); break; case 2 : getURL("http://www.google.com", _blank); break; case 3 : getURL("http://www.google.com", _blank); break; case 4 : getURL("http://www.google.com", _blank); break; case 5 : getURL("http://www.google.com", _blank); break; case 6 : getURL("http://www.google.com", _blank); break; case 7 : getURL("http://www.google.com", _blank); break; } };

Posted 5 months ago

Thanks Ill try that :)

Posted 5 months ago

Your code worked perfect! except that _self command instead of blank to open in the same window wont work and none of the others will either. I tried everything I cant seem to get it to open in the same window as your scaling swf…any ideas?

Posted 5 months ago

I just bought the Scaling Menu from the flashden website. I have the following AS code in the version that I downloaded.

I have two questions:

How do I change the images of the buttons (different image on different button) How do I link the buttons to open websites (no new windows)

Please let me know.

Thanks

Afroze Newbie

//Removed the code for settings of the menu //Button names, it also automatically creates buttons. var btnName:Array = new Array( “BUTTON 1”, “BUTTON 2”, “BUTTON 3”, “BUTTON 4”, “BUTTON 5”, “BUTTON 6”, “BUTTON 7” ); //just turning off main button on the stage. mButton._visible = 0; for (var _l1:Number = 0; _l1<btnName.length; _l1++) { //duplacating original button and positionating them this.attachMovie(“btn”, “btn”+_l1, _l1+10, {_x:(_l1)+posX, _y:posY+btnWidth}); this[“btn”+_l1].btnMCz.gotoAndStop(_l1+1) //entering the names of buttons from btnName array. this[“btn”+_l1].bnm.text = btnName[_l1]; //mouse rollOver function this[“btn”+_l1].onRollOver = function() { num = Number(this._name.substr(3, 2)); Yscale = 2; }; //mouse rollOut function this[“btn”+_l1].onRollOut = function() { Yscale = 1; }; //on button clicked function this[“btn”+_l1].onRelease = function() { //on button clicked function here }; } //function scaling the button MovieClip.prototype.scaleTo = function(scl, x) { this.scl = scl; this.x = x; this.onEnterFrame = function() { this._yscale = this._xscale += (this.scl-this._xscale)/speed; this.swapDepths(Math.round(this._xscale)+100); this._x += (this.x-this._x)/speed; }; }; //function checking the offset function checkOffset(coffset) { if (coffset<-mouseRadiusX) { coffset = -mouseRadiusX; } else if (coffset>mouseRadiusX) { coffset = mouseRadiusX; } return (coffset); } function checkOffset1(coffset1) { if (coffset1<-(mouseRadiusX-60)) { coffset1 = -(mouseRadiusX-60); } else if (coffset1>mouseRadiusX-60) { coffset1 = mouseRadiusX-60; } return (coffset1); } function setScale(soffset) { return (100(scale-((scale-1)/mouseRadiusX)))); } onEnterFrame = function () { y = this._ymouse; x = this._xmouse; for (var _l2:Number = 0; _l2<btnName.length; _l2++) { this[“btn”_l2“Offset”] = x-((_l2(spacerX+btnWidth))+posX); if (y<=posY+btnWidth && x>this[“btn”0]._x-this[“btn”+0]._width/2 && x (btnName.length-1)]._x+(YscalebtnWidth)/2 && y>this[“btn”+num]._y-(YscalebtnWidth)) { this[“Offset”_l2] = checkOffset(this[“btn”+_l2“Offset”]); this[“a”_l2] = checkOffset1(this[“btn”+_l2“Offset”]); this[“btn”+_l2].scaleTo((setScale(this[“Offset”+_l2])), (_l2)+posX-this[“a”+_l2]/1.4); } else { this[“btn”+_l2].scaleTo(100, (_l2(spacerX+btnWidth))+posX); } } };

Posted 4 months ago

Sorry guys i was on vacation for a month…

1. to change images of buttons open LIBRAY on your document and double click on “btnMCz” MovieClip and change images on the layers there.

2. to open a new page in the same page replace your code from line 39 to 66 with the code below.

this[“btn”+_l1].onRelease = function() { //on button clicked function here whereAmI = Number(num)+1; switch (whereAmI) { case 1 : getURL(“http://www.google.com”;); break; case 2 : getURL(“http://www.google.com”;); break; case 3 : getURL(“http://www.google.com”;); break; case 4 : getURL(“http://www.google.com”;); break; case 5 : getURL(“http://www.google.com”;); break; case 6 : getURL(“http://www.google.com”;); break; case 7 : getURL(“http://www.google.com”;); break; } };

Posted 4 months ago

Is this menu work within another MC instance? not on main stage. I mean. I’m using a reziseble script who replace the mc position when the screen change the size, such as..

ie. _root.resizeble_script.scalingmenu

I’ll be able to do this or just work for the main stage?

Tks for all

Posted 2 months ago

Hi there,

Yes it will work, what you need is just copy the mc on the stage and copy wherever you want. You can also copy it into the MovieClips you made.

Posted 2 months ago

Hi

i want to change the color of button on rollover who can i do that ?

thanks

Posted 2 months ago

Hi,

you can’t change color on rollOver… if you really really want to do that i can help you, just mail me with the rar file u purchased.

tnx

Posted about 1 month ago