yeah do you have an email so i can send it to you?
Main Topics
Browse All TopicsHi there ppls, i have obtained the following actionscript, it all works nicely...what happens basically there are numerous pictures that rotate in a 3d gallery....the rotation occurs horizontal, however I need it to rotate vertical here is the code:
walls = new array();
rad = Math.PI/180;
// number of items
max = 6;
// width of items
width = 50;
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)*radi
walls[i].z1 = Math.cos(astep*i*rad)*radi
walls[i].x2 = Math.sin(astep*i*rad)*radi
walls[i].z2 = Math.cos(astep*i*rad)*radi
}
//
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*cosXa
var ty = (y*cosXangle)-(tempz*sinXa
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*cosXa
var ty = (y*cosXangle)-(tempz*sinXa
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
_root.menu.ins[name].pic.g
_root.menu.ins[name].pic.n
_root.menu.ins[name].n = i;
if (walls[i].size1<walls[i].s
ratio = int((walls[i].size1/walls[
_root.menu.ins[name]._x = walls[i].sx2/(r+1);
_root.menu.ins[name]._y = -walls[i].sy2/(r+1);
_root.menu.ins[name]._ysca
_root.menu.ins[name]._xsca
_root.menu.ins[name].pic._
} else {
ratio = int((walls[i].size2/walls[
_root.menu.ins[name]._x = walls[i].sx1/(r+1);
_root.menu.ins[name]._y = -walls[i].sy1/(r+1);
_root.menu.ins[name]._ysca
_root.menu.ins[name]._xsca
}
_root.menu.ins[name]._alph
_root.menu.ins[name].gotoA
}
}
stop ();
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
ok, The maths is a bit complicated but there is a way of doing it that cheating but it works.
Add this to the top of your code on the main timeline
menu._rotation+=90
Then change the code on the Menu clip to this
onClipEvent(load) {
ya = 0;
}
onClipEvent (enterFrame) {
ya -= int((this._x-_root._ymouse
_root.Redraw(ya);
updateAfterEvent();
}
It works but you will probably need to rotate the image that you are using.
Business Accounts
Answer for Membership
by: Rob2010Posted on 2004-07-22 at 01:19:51ID: 11610112
Could you post the fla and Ill do it for you.