Solved

Spinning image in Flash

Posted on 2009-04-01
4
596 Views
Last Modified: 2013-11-12
I'm trying to make a short animation in Flash (CS3 with ActionScript 3), where a graphic will zip around the screen, while spinning, for a few seconds.

I plan to do the zipping around will simple motion tweens. I know I could to the spinning with tweens -- but, would rather do it via Action Script.  Sadly, I'm an Action Script rookie and don't know how to do it.

Help?
0
Comment
Question by:CPOJoe
  • 3
4 Comments
 
LVL 12

Accepted Solution

by:
alien109 earned 500 total points
ID: 24042030
Are you looking to simply rotate the image around it's origin?

If so,

this._rotation += 5;

or

this.rotation +=5;

depending on is your project is a2 or as3
0
 

Author Comment

by:CPOJoe
ID: 24042216
OK - but, need to get basic.
So, I have my image on the stage. I'll do F8 to convert it to a movie clip, right?  Then, do I F9 to put in the code on the MC?
as3, btw.
0
 

Author Comment

by:CPOJoe
ID: 24042418
So, I just clicked in the 1st frame of the main timeline and up the code in there.  I'm getting some rotation -- have to tweak the frame rate, etc to get it to look right.
But, it's rotating around the top, left corner and not the center.  Not sure how to change that...?
0
 

Author Comment

by:CPOJoe
ID: 24042516
Ahh -- OK, Converted the .png to an MC, and put the code on the 1st frame of the MC -- now its rotating around the center...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

912 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now