# Rotating menu help

**URL:** <https://forum.kirupa.com/t/rotating-menu-help/81217>\
**Category:** Uncategorized\
**Created:** [February 28, 2005, 11:03pm UTC](https://forum.kirupa.com/t/rotating-menu-help/81217 "2005-02-28T23:03:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitostyle](https://avatars.discourse-cdn.com/v4/letter/n/4491bb/32.png) [@nitostyle](https://forum.kirupa.com/u/nitostyle)\
**Post date:** [February 28, 2005, 11:03pm UTC](https://forum.kirupa.com/t/rotating-menu-help/81217/1 "2005-02-28T23:03:55Z")

</div>

I tried searching for this answer but was uncessceful I want to change up the rotating menu that is on this site. So that when a person clicks the Image it opens up in a new screen with the actual size.

I also want to change the image size.

YOu can find it here  
[http://www.ultrashock.com/flas/Detailed/154.html](http://www.ultrashock.com/flas/Detailed/154.html)

Can anyone please help me this is the code so far

walls = new array();  
rad = Math.PI/180;  
// number of items  
max = 10;  
// width of items  
width = 40;  
rat = width/100;  
radius = (width_max)/Math.PI;  
astep = -360/max;  
dist = radius_2+50;  
for (i=0; i\<max; i++) {  
walls\* = new Object();  
walls\*.y = 0;  
walls\*.x1 = Math.sin(astep_i_rad)_radius+Math.sin((astep_i+90)_rad)width/2;  
walls.z1 = Math.cos(astep_i_rad)radius+Math.cos((astepi+90)rad)width/2;  
walls.x2 = Math.sin(astepi_rad)_radius+Math.sin((astep_i-90)_rad)width/2;  
walls.z2 = Math.cos(astep_i_rad)radius+Math.cos((astepi-90)rad)width/2;  
}  
//  
function clicked (n) {  
\_root.menu.\_xscale = \_root.menu.\_yscale=20;  
\_root.menu.\_x = 50;  
\_root.menu.\_y = 200;  
\_root.menu.gotoAndStop(2);  
\_root.name\_section = “section::” add n  
}  
function menuback () {  
\_root.menu.\_xscale = \_root.menu.\_yscale=100;  
\_root.menu.\_x = 160;  
\_root.menu.\_y = 120;  
\_root.menu.gotoAndStop(1);  
\_root.name\_section = “main”  
}  
//  
function Redraw (ya) {  
xa = 0;  
var cosYangle = Math.cos(yarad);  
var sinYangle = Math.sin(yarad);  
var cosXangle = Math.cos(xa_rad);  
var sinXangle = Math.sin(xa_rad);  
// rotation  
for (i=0; i\<max; i++) {  
x = walls_.x1;  
z = walls\*.z1;  
y = walls\*.y1;  
var tempz = (z_cosYangle)-(x_sinYangle);  
var tx = (z_sinYangle)+(x_cosYangle);  
var tz = (y_sinXangle)+(tempz_cosXangle);  
var ty = (y_cosXangle)-(tempz_sinXangle);  
var zratio = dist/(tz+dist);  
walls\*.sx1 = +tx_zratio;  
walls_.sy1 = -ty_zratio;  
walls_.size1 = 50_zratio;  
x = walls_.x2;  
z = walls\*.z2;  
y = walls\*.y2;  
var tempz = (z_cosYangle)-(x_sinYangle);  
var tx = (z_sinYangle)+(x_cosYangle);  
var tz = (y_sinXangle)+(tempz_cosXangle);  
var ty = (y_cosXangle)-(tempz_sinXangle);  
var zratio = dist/(tz+dist);  
walls\*.sx2 = +tx_zratio;  
walls_.sy2 = -ty_zratio;  
walls_.size2 = 50_zratio;  
}  
// visualisation  
for (i=0; i\<max; i++) {  
name = “sh” add i;  
\_root.menu.ins.attachMovie(“shape”, name, i+1);  
\_root.menu.ins[name].pic.gotoAndStop(i%12);  
\_root.menu.ins[name].pic.name = i;  
\_root.menu.ins[name].n = i;  
if (walls_.size1\<walls\*.size2) {  
ratio = int((walls\*.size1/walls\*.size2)_1000);  
\_root.menu.ins[name].\_x = walls_.sx2/(r+1);  
\_root.menu.ins[name].\_y = -walls\*.sy2/(r+1);  
\_root.menu.ins[name].\_yscale = walls\*.size2/(r+1);  
\_root.menu.ins[name].\_xscale = (walls\*.sx1-walls\*.sx2)/(r+1);  
\_root.menu.ins[name].pic.\_xscale = -100;  
} else {  
ratio = int((walls\*.size2/walls\*.size1)_1000);  
\_root.menu.ins[name].\_x = walls_.sx1/(r+1);  
\_root.menu.ins[name].\_y = -walls\*.sy1/(r+1);  
\_root.menu.ins[name].\_yscale = walls\*.size1/(r+1);  
\_root.menu.ins[name].\_xscale = (walls\*.sx2-walls\*.sx1)/(r+1);  
}  
\_root.menu.ins[name].\_alpha = 70;  
\_root.menu.ins[name].gotoAndStop(1000-ratio);  
}  
}  
stop ();

Thank you in advance
