Solved

How do you make a ball rotate or spin in its place?

Posted on 2004-08-19
3
1,319 Views
Last Modified: 2008-01-09
Hello,

How do you make a ball rotate/spin in its place?

I have create a ball (or something that looks like a ball) and i want to make it rotate or turn in its place or spin (front to back)

Please help.  Thank you.
0
Comment
Question by:mdbbound
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 39

Assisted Solution

by:blue-genie
blue-genie earned 100 total points
ID: 11850051
in flash alone you can fake it, but it doesn't look very convincing, i think if you use swish it will work better (i believe) - i don't know about animations.

we usually render it in a 3D program and import it, if you want something really realistic.

blu.
0
 
LVL 5

Accepted Solution

by:
stef4s earned 300 total points
ID: 11851186
In actionscript each movie has the _rotation property in degrees.

so on your movieclip have this code

onClipEvent(enterFrame){
this._rotation+=10;
}
0
 
LVL 8

Assisted Solution

by:Cerf
Cerf earned 100 total points
ID: 11859297
Flash is a 2d based program thus making 3d animations is really hard to, and very few times the result will be good. If you really need the ball to move in the space (X,Y,Z) instead of just X and Y, then I suggest you get a demo of "electric rain - swift 3d" I did not find it "easy" to manipulate but it's a great tool for 3d.
As for the rotation property of the MCs, if you want to have a clean (non flickering) animation, be sure to reduce the amount of "_rotation" and speed up the frames per second. But be aware that the rotation will take place only in X and Y, not in Z, as you suggested in your question.

Hope this helps,

Cërf.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question