1. ## 3D rotation horizontal

Hi,

How do I rotate an object/movie clip horizontally, e.g. tree menu. There is an example in the below link: Anybody can help in scripting?

http://pl.nokia.pl/modnanokia/nokial...x_eng.html?id=

2. There is an example in the below link: Anybody can help in scripting?

3. Super easy
Code:
```//create some initial values

circles = new Array();

sw = Stage.width;
sh = Stage.height;

centre_x = Stage.width/2;
centre_y = Stage.width/2;
distance = 500;
angle = 0;

// create some random coords for circles
for(i=0;i<30;i++)
{
circles[i]={a:random(360),h:random(sw/2)-200,r:50+random(100)};
this.attachMovie("mc","mc"+i,100+i);
}

this.createEmptyMovieClip("draw_mc",0);

//update little circles and spin in 3d

this.onEnterFrame = function()
{
angle+=3;
draw_mc.clear();

for(i=0;i<30;i++)
{
var mca = circles[i].a+angle;
var mcr = circles[i].r
var mcy = circles[i].h;
var mcs = distance/(distance+mcz);
var mc = this["mc"+i];
var mc2dx = mc._x = (mcx*mcs) + centre_x;
var mc2dy = mc._y = (mcy*mcs) + centre_y;
mc._xscale = mc._yscale = mcs*100;
draw_mc.moveTo(centre_x,sh);
draw_mc.lineStyle(0,0x000000,100);
draw_mc.curveTo(centre_x,mc2dy,mc2dx,mc2dy);
}
}```

4. Thanks EastCoast. There is no circle. Actullay I want only 3d rotating. I have already a movie clip like a tree and each line containing different icon. on mouse over this will shows a brief info. But I want to rotate this tree. If you can help me to rotate a movie clip is highly appreciable.

5. Anybody can help me......?

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•