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








Rotating Menu Issue, HELP


I am trying to create a rotating menu that rotates around the horizontal axis. At first the menus rotate 360 degrees and it all worked fine and the distance between the menus are equally spaced.

But then I changed it so that the menus only rotate in half the circle. When the animation first plays, it runs sweet but after a while I start noticing the distance between the menus are no longer equally spaced. I have been trying to figure it out for days, but the solutions I come up with just doesn't work at all.

It would be greatly appreciated if anyone could give me some help here. I can already imagine myself looking at this for the next few months and still don't know what to do .

Here's the function for rotating each of the menu, it is registered with the enter frame event.

In the constructor the angle of each menu is set to i * (maximumAngle - minimumAngle)/numberOfSelections + minimumAngle

where i goes from 0 to numberOfSelections

maximumAngle is 1.5 PI, minimumAngle is 0.5 PI.

//Move the menus according to rotate speed and angle
public function RotateSelections(e:Event):void {
//Calculate the x and y position
e.target.x = Math.cos(e.target.angle) * radiusX + centerX;
e.target.y = -1 * Math.sin(e.target.angle) * radiusY + centerY;

//Calculate the scale
var s = e.target.x /(centerX+radiusX);
e.target.scaleX = e.target.scaleY = s * scaleFactor;

//Calculate the angle
var newAngle:Number = e.target.angle + speed;

//Something could be wrong here, but I don't know what
if (newAngle > maximumAngle) {
//Selections are moving downwards
newAngle = minimumAngle;
} else if (newAngle < minimumAngle) {
//Selections are moving upwards
newAngle = maximumAngle;
}


//Sort out the depth
arrangeDepth();
}




KirupaForum > Flash > ActionScript 3.0
Posted on: 06-13-2008, 12:09 AM


View Complete Forum Thread with Replies

Sponsored Links:

Rotating Menu With Non-Rotating Labels
I have a rotating menu that sets the selected button to the 3:00 position once clicked. I need the labels for the buttons to stay in the upright position as they rotate with the button. I have attached an image the help explain what I am trying to do. Anyone know of an action script that would keep the labels upright?

View Replies !    View Related
Rotating Menu
Hi everyone, im looking for some help. im using a rotating menu on my site, which i got from a tutorial from this site.if anyones familiar with it you maybe able to help me. basically the menu spins depending on where the cursor is on the movie so if the mouse is in the top half of the movie it spins up,and the same for down. it also enlarges if you go closer to the menu. this is what i want to stop. i want the spinning menu but i dont want it to enlarge.im very new to this actionscipt so all help would be appreciated. you can see what ive done so far on the front end of my site.
http://www.purplesquare.net
its very new and doesnt have much on it but watch this space for the future.
also there a forum on my site which you can register, just like here,and you can post messages there so give it a go.

thanks in advance



melv

View Replies !    View Related
Rotating Menu Help
hi

how can i make a nav menu that i have made in the shape of a circle rotate and stop when the user moves mouse over button they want to press

gazmon

View Replies !    View Related
Rotating Menu
http://www.enetserve.com/experiments/
I downloaded a file called "rotating menu" from the above site at the Flash Academy. After going through the code I tried to add another
plane Movie clip to the sequence but it will not appear. I added a"p5" script everywhere the others are. Can someone clue me in?

View Replies !    View Related
Rotating Menu Help
In the skyy blue website, on the occasion link, they have like a rotating 3d picture menu. Anyone know if there is a tutorial on something like that or and extension for flash on it?

Thanks.

View Replies !    View Related
Rotating Menu
Hey i have a MC called rotator.. its a one frame MC that has ring with 8 nested buttons in the clip. you can see what i mean on www.toddbeaz.com

my problem i want it to rotate at a decent rate with actionscript.
the buttons go to/play other sections of the site but i also want them so the ring menu SLOWS DOWN to a stop on rollOVER. can anyone help me?

thx
-todd

View Replies !    View Related
Rotating Menu
hi, does anyone know where i can find a tutorial on how to do menus that rotate, similar to the one in the download page here

thanks

View Replies !    View Related
Rotating Menu
Hi userers,

A friend gave me a link to check the action script of this special menu / navigation but I have no idear how it is made.

http://www.breitling.com/en/models/windrider/callisto/

there select technical data: You can see that the menu is rotating to the selected point. Further there is a second menu in "models" ´that also looks nice.

I have surched the forum but I could not find something comparable.


Thank you for your support and response.


Best,
bandenlover

View Replies !    View Related
Rotating Menu
Hey there,
I was reading an awesome tutorial on creating a rotating menu. Rotating Menu Link But it's in Flash 4 so when I converted it MX 2004 The buttons don't show up like in the tutorial. By that I mean the numbers on the buttons don't stay visible while the menu is rotating.
I have attached to this post a .fla download of the original tutorials downloadable content but converted it to MX 2004. If you have a clue as to how to fix the buttons so they show up in MX 2004 format. I would love to hear from you.

View Replies !    View Related
Rotating Menu Help
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

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[i] = new Object();
walls[i].y = 0;
walls[i].x1 = Math.sin(astep*i*rad)*radius+Math.sin((astep*i+90) *rad)*width/2;
walls[i].z1 = Math.cos(astep*i*rad)*radius+Math.cos((astep*i+90) *rad)*width/2;
walls[i].x2 = Math.sin(astep*i*rad)*radius+Math.sin((astep*i-90)*rad)*width/2;
walls[i].z2 = Math.cos(astep*i*rad)*radius+Math.cos((astep*i-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(ya*rad);
var sinYangle = Math.sin(ya*rad);
var cosXangle = Math.cos(xa*rad);
var sinXangle = Math.sin(xa*rad);
// rotation
for (i=0; i<max; i++) {
x = walls[i].x1;
z = walls[i].z1;
y = walls[i].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[i].sx1 = +tx*zratio;
walls[i].sy1 = -ty*zratio;
walls[i].size1 = 50*zratio;
x = walls[i].x2;
z = walls[i].z2;
y = walls[i].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[i].sx2 = +tx*zratio;
walls[i].sy2 = -ty*zratio;
walls[i].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[i].size1<walls[i].size2) {
ratio = int((walls[i].size1/walls[i].size2)*1000);
_root.menu.ins[name]._x = walls[i].sx2/(r+1);
_root.menu.ins[name]._y = -walls[i].sy2/(r+1);
_root.menu.ins[name]._yscale = walls[i].size2/(r+1);
_root.menu.ins[name]._xscale = (walls[i].sx1-walls[i].sx2)/(r+1);
_root.menu.ins[name].pic._xscale = -100;
} else {
ratio = int((walls[i].size2/walls[i].size1)*1000);
_root.menu.ins[name]._x = walls[i].sx1/(r+1);
_root.menu.ins[name]._y = -walls[i].sy1/(r+1);
_root.menu.ins[name]._yscale = walls[i].size1/(r+1);
_root.menu.ins[name]._xscale = (walls[i].sx2-walls[i].sx1)/(r+1);
}
_root.menu.ins[name]._alpha = 70;
_root.menu.ins[name].gotoAndStop(1000-ratio);
}
}
stop ();




Thank you in advance

View Replies !    View Related
Rotating Menu ?
Heys guys it's been a while since I touched Flash and I forgot a few things, any tutes on how to make a menu like this ?

http://www.jcpenneybts.com/

Click the bottom left ( tee shop ) the purple area with the shirts !!

View Replies !    View Related
[F8] Rotating Menu, Please Help
I've created a menu system with 15 buttons that spins in a circle based on the mouses x position. What i really want is to have it rotate only when i drag the mouse left or right and have it slowly drift when i don't drag. Also, because there are so many buttons, i wanted to stagger them in the circle so they aren't side by side. So one would be shifted up, the next would be shifted down, and so one all the way around, kinda like a circle menu with two tiers, but not lined up directly above one another, staggered. I hope this makes sense. I've attached the .fla file and the .xml file it references. Please someone help! I need to figure this out quick! Any help or guidance would be greatly appreciated!

View Replies !    View Related
Rotating Menu
Hey guys,



http://www.worldgsm.com/diaporama_no...843d2&type=tel

the rotating menu is pretty hot, any ideas how to do it without coding zillions lign of codiing or where should I go to catcha Fla with this nav.

thanx for the tips

View Replies !    View Related
[F8] Help With Rotating Menu
I'm trying to get a small rotating menu to work, but im having some trouble.
I have a movieclip, then four buttons inside that movie clip. I want to have to movie clip spin, then I have the buttons spin in the opposite direction so that they stay upright.

I have two problems. When I have just the movie clip rotate, it works fine, rotating in place just like I want it to. But when I add rotation to the four buttons inside the movie clip, the movie clip starts drifting all over the flash window instead of rotating in place.

Also, when I add rotation to the movie clip, the buttons wont properly function. It won't change how the button looks when I move the mouse over. If I remove the rotation, buttons work just fine.

Code I'm using to make it rotate:

Code:
MovieClip.prototype.rotation = function() {
this.onEnterFrame = function() {
this._rotation += 1;
this.btnBot._rotation += -1;
this.btnTop._rotation += -1;
this.btnLeft._rotation += -1;
this.btnRight._rotation += -1;
};
this.onRollOver = function() {
delete this.onEnterFrame;
};
this.onRollOut = function() {
this.onEnterFrame = function() {
this._rotation += 1;
this.btnBot._rotation += -1;
this.btnTop._rotation += -1;
this.btnLeft._rotation += -1;
this.btnRight._rotation += -1;

};
};
};
spin.rotation();
fla file attached

View Replies !    View Related
[CS3] Rotating A Menu (nav Bar)
Hi

It is my very first experience using flash and I'm trying to create a nav menu for my portfolio.

Do I have to use invisible buttons to make this [link] work if i want it to look like this [link].

As i said I'm like 3 days old flash-wise so if i have to use invisible buttons any explanation how do I do that would be really great. I use Flash CS3 Professional and in this swf i dont use buttons, just 4 movie clips and addeventlistener syntax.

And is there a way i can make it more precise while still not using buttons, or are buttons the way to go?
Thanks in advance
.dr-

View Replies !    View Related
[CS3] 3d Rotating Menu
hi, does anybody know how to make a otating menu like one of this sites?

http://www.circuitcity.com/ccd/gener...epage_ValProp1

http://www.methodhome.com/



thanks!

View Replies !    View Related
Rotating Menu
Anyone have any idea how i would go about to create a menu that rotates like this:

http://www.nike.com/nikeair/us/ ( click on "explore the shoes")

Can someone point me a direction on how to do it, or tutorials which explain this?

Thnx!

View Replies !    View Related
3d Rotating Menu
hi peeps im having troubles finding out whats wrong with dis piece of code.

it almost works except...it doesnt rotate when the mouse stops moving..

to use it, simply paste code in frame and create a clip and export it as 'clip'


ActionScript Code:
_root.mainLoaded = 0;
posX = Stage.width / 2;
posY = Stage.height / 2;
varHolder = 8
var i = 1;
while (i <= varHolder)
{
    attachMovie("clip", "clip" + i, i);
    i++;
}
signal = "true";
this.onEnterFrame = function ()
{
    var _loc2 = this;
    var _loc3 = _root;
    if (signal == "true")
    {
        mausPos = (_loc3._xmouse - posX) / 100;
        for (var _loc1 = 1; _loc1 <= varHolder; ++_loc1)
        {
            winkel = (mausPos + 360 / varHolder * _loc1) * 3.141593E+000 / 180;
            _loc2["clip" + _loc1]._x = posX + Math.sin(winkel) * 220;
            _loc2["clip" + _loc1]._y = posY + Math.cos(winkel) * 100;
            _loc2["clip" + _loc1]._xscale = 100 + Math.cos(winkel) * 50;
            _loc2["clip" + _loc1]._yscale = 100 + Math.cos(winkel) * 50;
            _loc2["clip" + _loc1].onRelease = function ()
            {
                var _loc1 = _root;
                _loc1.startMain();
                _loc1.section = this.section;
                signal = "false";
                _loc1.mainLoaded = 1;
                trace ("_root.mainLoaded=" + _loc1.mainLoaded);
            };
            _loc2["clip" + _loc1].onRollOver = function ()
            {
                signal = "false";
            };
            _loc2["clip" + _loc1].onRollOut = function ()
            {
                signal = "true";
            };
        }
    }
};
stop ();

View Replies !    View Related
Rotating Menu
Hello I am a newbie to this forum.
And a newbie to Flash MX 6.
I am learning Flash AS's day by day and perhaps in the future I would be able to solve this problem.
But time is a critical factor and I need to satisfy a clients needs ASAP.
Any help with my current problem would be most appreciated.

I have seen clickable menus that rotate around a circular path
As the mouse mover closer to the menu item the rotation along this path slows down.
The rotation stops when the mouse is over the menu item.

I would appreciate any help that would allow me to create this type of menu.

View Replies !    View Related
Help With Rotating Menu, Please
Hi:

i'm back to the whereabouts of flash, and back to scripting headaches... i'm trying to figure out a way to build a very special rotating menu. I've seen many that respond to the mouse position, but they keep always moving, wich i don't want. My need is to build a vertical menu that would start with the first item at a scale of 100%, followed for the next items at a lower scale and alpha... when you drag down near an unselected item, it would go up and fix where the previous one was, change alpha and scale up to 100%, and the previous will shrink and fade upwards, and so on. I found the "building a tsunami" tutorial here, and it somehow responds to what i need. Following its concept, tried to develop a script that will achieve what i want, but can't get it to work.

I can make it tell the distance between a movieclip and the mouse using the pythagorean theorem, but can't make it do anything with that info (even though flash traces it)


ActionScript Code:
onClipEvent (load) {
    sobre=false;
}
on (press) {
    sobre=true;
    if (sobre==true){
    escucha= new Object();
    escucha.onMouseMove =function () {
    x0=this._x;
    y0=this._y;
    x1=_xmouse;
    y1=_ymouse;
    cifra=Math.round(Math.getDistance(x0, x1, y0, y1));
    if (cifra<this._height){
        this._yscale--;
        this._xscale--;
        this._alpha--;
    }

    }
    Mouse.addListener (escucha);
   
    }
}
on (release, releaseOutside){
    sobre=false;
    Mouse.removeListener (escucha);
}

maybe i'm confused for nothing, my menu will never have more than 4 items (it builds dynamicly), it would work, theoretically just like the tsunami thing, but i need it to start with the first item as if it was being touched by the mouse, and to fix on a state when you are near the next item.

How can I tackle this task? Some guidance would be very appreciated

Cheers

Sir Patroclo

View Replies !    View Related
3D Rotating Menu Fla
hi.

i've got a question regarding the 3D rotating menu movie here on actionscript.org.

http://www.actionscript.org/showMovie.php?id=1284

I'm trying to implement a modified version of it with multiple elements rotating around different orbits.

I've got most everything working, however, I'm experiencing a great performance hit.

This is the basic code that I'm using to attach elements:

Code:

var numlasers = 2;

for (l=0; l<numlasers; l++) {
newlaser = "laser"+String(l);
this.attachMovie("laser", newlaser, l+1);
this[newlaser].theta = l*360/numlasers;
this[newlaser].panel = 35;
this[newlaser].radius = 410;
}
And this is the code that i'm using to set the properties of the attached element:


Code:

if (theta == 360) {
theta = 0;
theta = theta + _parent.speed;
}
else if (theta > 360) {
theta = 1;
theta = theta + _parent.speed;
}
else if (theta < 0) {
theta = 359;
theta = theta + _parent.speed;
}
else {
theta = theta + _parent.speed;
}

xbit = Math.sin(0.017453 * theta);
ybit = Math.cos(0.017453 * theta);
this._x = xbit * this.radius;
this._y = (ybit * (this.radius/16)) + 15;
this._alpha = 30 + (ybit + 1) * 50;

if ((theta > 0) && (theta < 180)) {
this._yscale = this._yscale --;
}
else {
this._yscale = this._yscale ++;
}

this._xscale = this._yscale;
stack = Math.round((ybit + 1) * radius/4);
if (stack == 100)
{
stack = 101;
} // end if
this.swapDepths(stack);
Also, there is this code which sets the speed of the rotation:


Code:

if (_root._ymouse < 244 || _root._ymouse > 330 || _root._xmouse < 220 || _root._xmouse > 580 ) {
speed = Math.floor(speed * 0.950000);
} else {
speed = Math.floor(-_xmouse / 50);
}
The rest of the code in the fla simply sends the timeline to a previous frame to poll for new values.

Does anyone see anything that would contribute to perfomrance problems?

Any assistance is greatly appreaciated.

Thanks.

View Replies !    View Related
Rotating 3D Menu
the Rotating 3D Menu .fla that i download from MOVIES/NAVIGATION
will not open in my FlashMX.

Can somone check that or post the .fla that will work for me???

"hey administrator do some administrating"

i got the Rotating 3D Menu.zip
the .swf works great in the browser
but the .fla is a dud

View Replies !    View Related
Rotating 3D Menu Mod - Again
I'm also working from Joseph Griffin's Rotating 3D Menu (http://www.actionscript.org/showMovie.php?id=128).

What I would like to do is not have the menu controlled by the mouse, but controlled by individual buttons. These wouldn't be left/right buttons either, but specific buttons to bring each menu item to the front. For example, with a 3D menu containing 3 menu items, I would like button1 to rotate menu item 1 to the front, button 2 to rotate menu item 2 around, etc. I will only be working with 3 items for now, so direction of rotation isn't so important.

I opened the fla thinking I should be able to figure it out, but I'm at a loss. I don't even know where to start!

Any ideas?

Adam

View Replies !    View Related
Rotating Menu
Basically what I am trying to accomplish is to make a rotating menu comprised of circles that are spinning at a slow constant speed, and when the mouse goes over a circle(button) the menu stops rotating. I am fairly new with actionscripting if anyone can figure out a way to help me with this either by pointing me in the right directoin or giving me a link to a tutorial that would really help, thank you.

View Replies !    View Related
Rotating Menu
Posted this menu awhile back but never really got the assistance I needed modify it. I need to know how to add my own items to each panel of the menu. Can someone give me fairly detail instructions as to how I might go about doing this. Thanks.

.fla file contained in my previous post:

http://www.kirupaforum.com/forums/sh...ad.php?t=70181

View Replies !    View Related
Rotating Menu Help
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

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[i] = new Object();
walls[i].y = 0;
walls[i].x1 = Math.sin(astep*i*rad)*radius+Math.sin((astep*i+90) *rad)*width/2;
walls[i].z1 = Math.cos(astep*i*rad)*radius+Math.cos((astep*i+90) *rad)*width/2;
walls[i].x2 = Math.sin(astep*i*rad)*radius+Math.sin((astep*i-90)*rad)*width/2;
walls[i].z2 = Math.cos(astep*i*rad)*radius+Math.cos((astep*i-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(ya*rad);
var sinYangle = Math.sin(ya*rad);
var cosXangle = Math.cos(xa*rad);
var sinXangle = Math.sin(xa*rad);
// rotation
for (i=0; i<max; i++) {
x = walls[i].x1;
z = walls[i].z1;
y = walls[i].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[i].sx1 = +tx*zratio;
walls[i].sy1 = -ty*zratio;
walls[i].size1 = 50*zratio;
x = walls[i].x2;
z = walls[i].z2;
y = walls[i].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[i].sx2 = +tx*zratio;
walls[i].sy2 = -ty*zratio;
walls[i].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[i].size1<walls[i].size2) {
ratio = int((walls[i].size1/walls[i].size2)*1000);
_root.menu.ins[name]._x = walls[i].sx2/(r+1);
_root.menu.ins[name]._y = -walls[i].sy2/(r+1);
_root.menu.ins[name]._yscale = walls[i].size2/(r+1);
_root.menu.ins[name]._xscale = (walls[i].sx1-walls[i].sx2)/(r+1);
_root.menu.ins[name].pic._xscale = -100;
} else {
ratio = int((walls[i].size2/walls[i].size1)*1000);
_root.menu.ins[name]._x = walls[i].sx1/(r+1);
_root.menu.ins[name]._y = -walls[i].sy1/(r+1);
_root.menu.ins[name]._yscale = walls[i].size1/(r+1);
_root.menu.ins[name]._xscale = (walls[i].sx2-walls[i].sx1)/(r+1);
}
_root.menu.ins[name]._alpha = 70;
_root.menu.ins[name].gotoAndStop(1000-ratio);
}
}
stop ();




Thank you in advance

View Replies !    View Related
Rotating Menu
i want to make this menu which a part of it rotates. I have a circle with text besides it. This are the buttons. On this circle i have some kinda thing which points the button of where the users mouse is on. So each time the users chooses anothe button, the pointer has to rotate to that button. If there is no mouseover or anything, the pointer has to point the button on where the user is on the site (so in home the point has to point to home button)
anybody who can help me?

View Replies !    View Related
Rotating Menu
I am trying to set up a menu rotating. When you click on a button the movie clip rotates that button the the 90º position. I want the movie clip to rotate clock wise. It works fine with numbers smaller than 180, whenever I use a number larger that 180 the movie clip continues to rotate instead of stopping after reaching the set position. Anyone have some advise for me.

here is the action script ------------------------------
//Orb rotation code
Orb.onEnterFrame = function() {
this._rotation -= (this._rotation-turn)/12;
};


//button actions less than 180 works
Orb.btn1.onRelease = function() {
_root.turn = 90;
};

// more than 180 rotation never stops
Orb.btn2.onRelease = function() {
_root.turn = 225;
};

View Replies !    View Related
3D Rotating Menu
I have the following code placed on 3 movieclips:


Code:

onClipEvent(load){
y=0;
speed=3;
radius=150;
xcenter=275;
ycenter=150;
zcenter=100;
angle=60;
fl=450;
}

onClipEvent(enterFrame){
z=Math.sin(angle*Math.PI/180)*radius+zcenter;
scale=fl/(fl+z);
x=Math.cos(angle*Math.PI/180)*radius;
_x=x*scale+xcenter;
_y=y*scale+ycenter;
_xscale= _yscale = scale*100;
_alpha=scale*100;
angle+=speed;
if(angle>359){
angle-=360;
}
}
How would I add buttons and have it only rotate when I click the movieclips button? So there would be 3 buttons and 3 movieclips, with the only animation happening when you click a button to bring the movieclip to the front. Any ideas?

View Replies !    View Related
Rotating Nav Menu - Bit-101
Hi all,

I can't seem to find a tutorial on a rotating nav menu like http://www.bit-101.com Can someone please point me in the right direction, thanks.

View Replies !    View Related
Rotating Menu?
Does anyone know of any other tutorials or components to building menus similar to these..

http://www.ultrashock.com/flas/Detailed/154.html

http://www.frogstyle.ch/go.cfm?bob_...der&language=en



Thanks

View Replies !    View Related
3D Rotating Menu
Hi all, I have downloaded the following code and tried to change it. It works so far, but the attached MC are "pulsating" - if I change them with another MC (with text inside) I can't use them as a Menu links - they are "pulsating" too much and I can't read/see the text properly.
Can someone tell me where in code I can change(reduce) this "pulsation"?
And any suggestions how can I make the MC-s cklickable=working as a buttons with mouseover/mouseout effects (changing color etc.)
Here are the -fla data.
Tnahks a lot
Merenra

View Replies !    View Related
Rotating Menu
Hey Pplz,
Just creating a web site and need to have a menu that rotates in a anti-clockwise direction then when u hover over one of the buttons the menu stops rotation ?
Can some one show me some good tutorials on this or and ideas they have, would be much appretciated thanks
Jimmy

View Replies !    View Related
Rotating Menu
Basically what I am trying to accomplish is to make a rotating menu comprised of circles that are spinning at a slow constant speed, and when the mouse goes over a circle(button) the menu stops rotating. I am fairly new with actionscripting if anyone can figure out a way to help me with this either by pointing me in the right directoin or giving me a link to a tutorial that would really help, thank you.

View Replies !    View Related
Rotating Menu
Posted this menu awhile back but never really got the assistance I needed modify it. I need to know how to add my own items to each panel of the menu. Can someone give me fairly detail instructions as to how I might go about doing this. Thanks.

.fla file contained in my previous post:

http://www.kirupaforum.com/forums/sh...ad.php?t=70181

View Replies !    View Related
Rotating Menu Help
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

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[i] = new Object();
walls[i].y = 0;
walls[i].x1 = Math.sin(astep*i*rad)*radius+Math.sin((astep*i+90) *rad)*width/2;
walls[i].z1 = Math.cos(astep*i*rad)*radius+Math.cos((astep*i+90) *rad)*width/2;
walls[i].x2 = Math.sin(astep*i*rad)*radius+Math.sin((astep*i-90)*rad)*width/2;
walls[i].z2 = Math.cos(astep*i*rad)*radius+Math.cos((astep*i-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(ya*rad);
var sinYangle = Math.sin(ya*rad);
var cosXangle = Math.cos(xa*rad);
var sinXangle = Math.sin(xa*rad);
// rotation
for (i=0; i<max; i++) {
x = walls[i].x1;
z = walls[i].z1;
y = walls[i].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[i].sx1 = +tx*zratio;
walls[i].sy1 = -ty*zratio;
walls[i].size1 = 50*zratio;
x = walls[i].x2;
z = walls[i].z2;
y = walls[i].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[i].sx2 = +tx*zratio;
walls[i].sy2 = -ty*zratio;
walls[i].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[i].size1<walls[i].size2) {
ratio = int((walls[i].size1/walls[i].size2)*1000);
_root.menu.ins[name]._x = walls[i].sx2/(r+1);
_root.menu.ins[name]._y = -walls[i].sy2/(r+1);
_root.menu.ins[name]._yscale = walls[i].size2/(r+1);
_root.menu.ins[name]._xscale = (walls[i].sx1-walls[i].sx2)/(r+1);
_root.menu.ins[name].pic._xscale = -100;
} else {
ratio = int((walls[i].size2/walls[i].size1)*1000);
_root.menu.ins[name]._x = walls[i].sx1/(r+1);
_root.menu.ins[name]._y = -walls[i].sy1/(r+1);
_root.menu.ins[name]._yscale = walls[i].size1/(r+1);
_root.menu.ins[name]._xscale = (walls[i].sx2-walls[i].sx1)/(r+1);
}
_root.menu.ins[name]._alpha = 70;
_root.menu.ins[name].gotoAndStop(1000-ratio);
}
}
stop ();




Thank you in advance

View Replies !    View Related
Rotating Menu
i want to make this menu which a part of it rotates. I have a circle with text besides it. This are the buttons. On this circle i have some kinda thing which points the button of where the users mouse is on. So each time the users chooses anothe button, the pointer has to rotate to that button. If there is no mouseover or anything, the pointer has to point the button on where the user is on the site (so in home the point has to point to home button)
anybody who can help me?

View Replies !    View Related
Rotating Menu
Does anyone know of any other tutorials or components to building menus similar to these..

http://www.ultrashock.com/flas/Detailed/154.html

http://www.frogstyle.ch/go.cfm?bob_i...er&language=en



Thanks

View Replies !    View Related
Rotating Menu Help
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

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[i] = new Object();
walls[i].y = 0;
walls[i].x1 = Math.sin(astep*i*rad)*radius+Math.sin((astep*i+90)*rad)*width/2;
walls[i].z1 = Math.cos(astep*i*rad)*radius+Math.cos((astep*i+90)*rad)*width/2;
walls[i].x2 = Math.sin(astep*i*rad)*radius+Math.sin((astep*i-90)*rad)*width/2;
walls[i].z2 = Math.cos(astep*i*rad)*radius+Math.cos((astep*i-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(ya*rad);
var sinYangle = Math.sin(ya*rad);
var cosXangle = Math.cos(xa*rad);
var sinXangle = Math.sin(xa*rad);
// rotation
for (i=0; i<max; i++) {
x = walls[i].x1;
z = walls[i].z1;
y = walls[i].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[i].sx1 = +tx*zratio;
walls[i].sy1 = -ty*zratio;
walls[i].size1 = 50*zratio;
x = walls[i].x2;
z = walls[i].z2;
y = walls[i].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[i].sx2 = +tx*zratio;
walls[i].sy2 = -ty*zratio;
walls[i].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[i].size1<walls[i].size2) {
ratio = int((walls[i].size1/walls[i].size2)*1000);
_root.menu.ins[name]._x = walls[i].sx2/(r+1);
_root.menu.ins[name]._y = -walls[i].sy2/(r+1);
_root.menu.ins[name]._yscale = walls[i].size2/(r+1);
_root.menu.ins[name]._xscale = (walls[i].sx1-walls[i].sx2)/(r+1);
_root.menu.ins[name].pic._xscale = -100;
} else {
ratio = int((walls[i].size2/walls[i].size1)*1000);
_root.menu.ins[name]._x = walls[i].sx1/(r+1);
_root.menu.ins[name]._y = -walls[i].sy1/(r+1);
_root.menu.ins[name]._yscale = walls[i].size1/(r+1);
_root.menu.ins[name]._xscale = (walls[i].sx2-walls[i].sx1)/(r+1);
}
_root.menu.ins[name]._alpha = 70;
_root.menu.ins[name].gotoAndStop(1000-ratio);
}
}
stop ();




Thank you in advance

View Replies !    View Related
Rotating Menu
Could anybody help me with a problem about the rotating menu of Den Ivanov. I've got the menu in the download section Fla's.
I have the menu with 9 pictures. One of the pictures is shown 2 times. Is it possible to view all of the 9 pictures?

I hope someone could help me.

Gteetz,
Matthijs

View Replies !    View Related
Rotating 3D Menu Help
Hi-- I downloaded the awesome Rotating 3D Menu from the Ultrashock FLA Source File archives and am in need of some help customizing it.

This is a great interface. When I click on a thumbnail in the rotating menu, all I want it to do is create a pop-up window to the corresponding full size .jpg image. This will be used for a portfolio art gallery.

Can anyone help me out?

View Replies !    View Related
3d Rotating Menu - Need Some Help
I am looking for a source file or tutorial for this kind of menu system. I have seen many sites with this same menu, i just cant recall which ones.

listedhttp://www.flashkit.com/movies/3D/3D...4070/index.php

The file listed above seems too scaled down. I want to experiment with one that the buttons can be dragged and spun.

Any Insight will be greatly appreciated!

View Replies !    View Related
Rotating Menu... Help
I have to make this menu to work ...it's for a friend of mine
He put some ActionScript to make this work... But from what I see... it's not working well...
This is a rotating menu that will have to work in a way similar to the Scrolling Thumbnail Panel tutorial.... I need your help on this because I don't know mutch ActionScript :)

Here it's a link to the Flash page with that menu:
http://hub.onesteni.ro/work/flash_homepage/

And here it's the FLA file:
http://hub.onesteni.ro/work/flash_homepage/homePage.fla



Paul

View Replies !    View Related
Script For Rotating Menu?
I can set it all up so that on mouse over of a button it sets a rotation for a movie with a variable speed attached...only problem is...every time it rotates it seems to scale down about 20% or so....What's the problem...how do I do it right?

View Replies !    View Related
Rotating Menu Question
hi!
hoping someone out there has mastered the rotating menu as outlined in the tutorial from this page... my question is how do i reverse the code so it rotates anti-clockwise? and, how do i adjust the code to fit it on the left side of the page instead of the right?
its drivin me nuts...any algebra smarties out there?
this is the drag control code:

xPos = getProperty("../dragControl", _y);
xPos = xPos-(150);
setProperty ("../nav", _rotation, getProperty("../nav", _rotation)-(xPos/20));

this is the scale control code:

x = getProperty("../dragControl", _x);
if (Number(x)>200) {
midX = x-(400/2);
if (Number(midX)<0) {
midX = -midX;
}
setProperty ("../nav", _xscale, midX);
setProperty ("../nav", _yscale, midX);
if (Number(getProperty("../nav", _xscale))<30) {
setProperty ("../nav", _xscale, "30");
setProperty ("../nav", _yscale, "30");
}
if (Number(getProperty("../nav", _xscale))>100) {
setProperty ("../nav", _xscale, "100");
setProperty ("../nav", _yscale, "100");
}
}

help please?

View Replies !    View Related
Rotating Menu Question
Ok, i'm a bit of an Actionscripting newbie, but pls bear with me, n try to be gentle

http://www.lightmill.co.uk/menu.html

The idea is, when the user hovers over an item, the circles in the middle (which is a movie clip) plays. The movie stops when the circles reach the desired menu items.

The 2 items workin in my example are 'About Us' and 'Technical'. If u hover over 'About Us' you'll notice that the movie stop over 'Technical'. This is beacuse i used a collision detection script - Which works. However, i need to enclose the collision statement inside a onRollover statement, so it will only stop on 'Technical' if the user is currently hovering over it - but flash MX tells me i cant enclose my collision detection script inside a onRollover statement.

I've been pulling my hair out over this, so any help or alternative solutions would be greatly appreciated.

Ta muchly

View Replies !    View Related
Animated Rotating Menu - How Is It Done?
Hi I'm Frank,

I've come accross a great looking animated menu at http://www.musicchoice.co.uk - Firstly it animates in which looks simple enough to do, but I'm interested to find out about the animation of the links that follows (target circle, with animating links that change col on rollover etc)

Any help out there?

Cheers – Frank

View Replies !    View Related
Script For Rotating Menu
hi i`m a beginner on flash
i want to make a rotating menu but i have problem with writting a script
and i want to make it stop when the mouse roll over on it
and then continue rotating if the mouse roll out
anyone can help me to write a script ???

View Replies !    View Related
Script For Rotating Menu
hi i`m a beginner on flash
i want to make a rotating menu but i have problem with writting a script
and i want to make it stop when the mouse roll over on it
and then continue rotating if the mouse roll out
anyone can help me to write a script ???

View Replies !    View Related
Rotating Navigational Menu
If any of you have ever played Tomb Raider or something and have seen the menu, you'll know exactly what I'm talking about.

Basically it's a circular-motioned rotation of icons. What I want to do is when you move the cursor towards the left side of it, it moves to the right and vice versa. Then you can make a selection through that navigational menu.

Are there tutorials that are like this on Flashkit or other sites? Hwo would I make something like this? Would it be easy?

Help is much, much appreciated. Many thanks in advance.

View Replies !    View Related
Help With Kinda Rotating Menu, But Not Quite
Hi:

I'm trying to build a set of menu items arranged vertically, and to be able to change their scale and position according to the current item selected, giving it some sort of depth effect. I've seen and downloaded many rotating menus so far, but can't understand how to tweak them, and the main problem is that they are constantly moving, and keep doing so even when the mouse is over...
thinking it further maybe what i need is much simpler, and it's just one of those self adjuisting menus that re-arrange when an item is selected (and this selected item is enlarged)... but don't know how to build one either. I'm gonna search for that one now, meanwhile here's the puny fla i was messing with, trying to figure this out. Used a for loop trying to make things happen smoothly, with no luck...

Well, any help and guidance would be most appreciated

Thanks in advance

Sir Patroclo

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved