Solved

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

Posted on 2004-08-19
3
1,310 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Flash media server 1 336
How to disable  HTML5 video in chrome 2 1,582
Stop Ads in Browser Google Chrome 3 552
video live streaming 1 126
This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
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.

730 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