?
Solved

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

Posted on 2004-08-19
3
Medium Priority
?
1,337 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
3 Comments
 
LVL 39

Assisted Solution

by:blue-genie
blue-genie earned 400 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 1200 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 400 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
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.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

840 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