# Depth Rotation

**URL:** https://forum.kirupa.com/t/depth-rotation/61492
**Category:** flash
**Created:** [August 19, 2004, 1:49am UTC](https://forum.kirupa.com/t/depth-rotation/61492 "2004-08-19T01:49:33Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![fondu](https://avatars.discourse-cdn.com/v4/letter/f/d6d6ee/32.png) [@fondu](https://forum.kirupa.com/u/fondu)
#### Post date: [August 19, 2004, 1:49am UTC](https://forum.kirupa.com/t/depth-rotation/61492/1 "2004-08-19T01:49:33Z")

</div>

I know this might sound completely retarded, but I can’t find out for the life of me, how to make an object rotate on a Z axis. I’ve seen it done a million times, so I know it’s not impossible, but no matter how much I rack my brain on this, I can’t figure it out.

Any suggestions?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 19, 2004, 6:24am UTC](https://forum.kirupa.com/t/depth-rotation/61492/2 "2004-08-19T06:24:45Z")

</div>

Are you sure it’s using flash?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 19, 2004, 6:58am UTC](https://forum.kirupa.com/t/depth-rotation/61492/3 "2004-08-19T06:58:21Z")

</div>

its more than likely a 3D program.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 19, 2004, 6:59am UTC](https://forum.kirupa.com/t/depth-rotation/61492/4 "2004-08-19T06:59:52Z")

</div>

yea

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 19, 2004, 10:18pm UTC](https://forum.kirupa.com/t/depth-rotation/61492/5 "2004-08-19T22:18:25Z")

</div>

the closest you can get is using _swapDepths(x)_ and having x change… but obviously you will want it to scale so you would also want to play with the mcs _.\_xscale_ and _.\_yscale_ properties 😉

Prophet.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 20, 2004, 2:49am UTC](https://forum.kirupa.com/t/depth-rotation/61492/6 "2004-08-20T02:49:54Z")

</div>

Yes, i’m sure it’s using flash, Flash MX actually, which is probably the reason I posted in this forum. Wierd how that works.

I don’t think I was describing my problem properly, so I’ve added a guiding animation for you to watch. I know it’s possible, but whether it’s just a trick or something i’m missing is still beyond me.

[Yes, I realize my methods are newbish and archaic, but i’m still new at this.]

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 20, 2004, 10:02pm UTC](https://forum.kirupa.com/t/depth-rotation/61492/7 "2004-08-20T22:02:25Z")

</div>

Come on… someone has to know what i’m talking about…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 20, 2004, 10:18pm UTC](https://forum.kirupa.com/t/depth-rotation/61492/8 "2004-08-20T22:18:12Z")

</div>

if you are correct in what you mean, and you are sure it is the z-axis, then you just adjust the \_rotation property of a movieclip.

if it were the x or y axis, then we would be talking about a more 3d based application. there are programs such as Swift3D, which can be used to create 3D movies that are then importable into flash.

Another option available for use the the Macromedia Director MX approach. Director is the Application that is used to create 3D shockwave movies. i’ve been looking into this a bit myself recently. It users a language other than as, called ‘lingo’ (if i remember correctly) and the 3D stuff is done with this.

hope this helps you.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 20, 2004, 10:22pm UTC](https://forum.kirupa.com/t/depth-rotation/61492/9 "2004-08-20T22:22:05Z")

</div>

having now looked at the fla, i understand what you mean.  
this is not rotation around the z-axis, but around the y-axis. The z-axis is towards, and away from the camera and therefore if we rotate around it, it spins as if altering the \_rotation property.

I think it is more likely that the others are right, and that 3d program has been used in the animations you are talking about. if you give us some links to examples, we might be able to give you more advice as to how it was done (-:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 20, 2004, 10:57pm UTC](https://forum.kirupa.com/t/depth-rotation/61492/10 "2004-08-20T22:57:14Z")

</div>

the best way to do that is with a 3D program, like swift or the like… I use adobe dimensions and then export the individual frame shots. (you can see an example at [www.intl-importers.com](http://www.intl-importers.com) at the splash page)

You could hack it in AS by simply scaling the \_x value of an mc down, then flip it and scale back up - this would end up looking distorted, but like I said it would be a hack.

If you are very comfortable with AS you can use a 3d engine to rotate the object in a more realistic manner (but you cannot use this method for any object), do a search on that and you should find some tuts.

All in all BEST way is to use 3d program… and what are you trying to rotate??? Maybe I could help you out.

Peace

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 21, 2004, 12:37am UTC](https://forum.kirupa.com/t/depth-rotation/61492/11 "2004-08-21T00:37:27Z")

</div>

I’m just trying to make a spinning disc. Whenever I figure this out, i’ll replace it with a glyph of my design, but it’s a key effect in a series of movies i’m working on.

I’ll try to find a specific example and link it for y’all.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 21, 2004, 1:44am UTC](https://forum.kirupa.com/t/depth-rotation/61492/12 "2004-08-21T01:44:17Z")

</div>

Ok, this is the best I can do to recreate this effect. It was only possible because I just shaped tweened the lines, which doesn’t help at all when trying to apply the effect to a complex disk.

Loop it to make the effect.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 21, 2004, 9:34am UTC](https://forum.kirupa.com/t/depth-rotation/61492/13 "2004-08-21T09:34:47Z")

</div>

I know I shouldn’t bump, but this is kind of a hole in my lungs here.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 21, 2004, 12:36pm UTC](https://forum.kirupa.com/t/depth-rotation/61492/14 "2004-08-21T12:36:57Z")

</div>

well you’ve got two options, you may have read these before: [they’re all above]  
1: Use a 3D engine **[[link]](http://www.actionscript.org/tutorials/advanced/3D-Face-Extrusion/index.shtml)**  
2. Use a 3D program **[[link]](http://www.erain.com)**

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 22, 2004, 3:15pm UTC](https://forum.kirupa.com/t/depth-rotation/61492/15 "2004-08-22T15:15:48Z")

</div>

Hey!  
I’ve got an idea… If it’s just a circular disc that you’re trying to rotate…  
Use a sine curve movement for it \_width property…  
I’m pretty sure you’ll get it…

In the meanwhile… I’ll try it n letcha know!

I just edited this message to let you know that I have made the disc to rotate on the Z axis in Flash itself… The attached file is on page#2…

CYA!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 22, 2004, 3:28pm UTC](https://forum.kirupa.com/t/depth-rotation/61492/16 "2004-08-22T15:28:38Z")

</div>

Hey! I got it…

Here’s the fla… Just open it and hit Ctrl+Enter to test the movie!  
And yeah… It’s a DISC that rotates! A proper DISC!

(And please don’t say I’m a genius… I know that already! Thanx! LOL!) 👼

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 22, 2004, 3:49pm UTC](https://forum.kirupa.com/t/depth-rotation/61492/17 "2004-08-22T15:49:12Z")

</div>

> [@thelonephoenix](#):
>
> And please don’t say I’m a genius…

i had no intention of doing so.  
especially wen u crashed my browser trying to open that .fla.  
wen i finally got it open, i was a little disappointed. i was under the impression you wanted something that would rotate along the Z axis, not the Y axis - thats easy to fake… the Z however…

of course by the Z axis, i dont actually mean the true Z axis but the angle which you frequently see , ie. a straight line from origin (0,0) in the first quadrant of a graph of x=y

guess i was wrong huh?

Prophet.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 22, 2004, 4:12pm UTC](https://forum.kirupa.com/t/depth-rotation/61492/18 "2004-08-22T16:12:32Z")

</div>

actually, the disc in the fla that fondu attached to one of his posts is rotating on it’s y-axis too, prophet.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 22, 2004, 5:01pm UTC](https://forum.kirupa.com/t/depth-rotation/61492/19 "2004-08-22T17:01:23Z")

</div>

Hmm, a bit of an anti climax downloading that file and has proph and cyb say it is rotating on the y axis.  
You will still get a much better effect with a 3d program, I think Plasma ( Discreet) offer a free trial and in the tutorials they make something very similar to what you are trying to do.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 22, 2004, 6:00pm UTC](https://forum.kirupa.com/t/depth-rotation/61492/20 "2004-08-22T18:00:06Z")

</div>

Hey!

I was just tryin to make somethin while I was workin on somethin else…

Evidently I just bummed with the Y and the Z!

Sorry!

LOL!

[Next page](https://forum.kirupa.com/t/depth-rotation/61492.md?page=2)
