Solved

Flash actionscript in as2 animation

Posted on 2011-09-30
1
473 Views
Last Modified: 2012-05-12
I need to create an arrow that continually spins until a user rolls the mouse over one of 8 points around the outside of the spinning area. When the user rolls over one of these areas the arrow spins around and stops back on the specific area the user has rolled over. When the user moves off the area the arrow starts spinning again.

AS2

Created a rotate function
 onEnterFrame = function () {
MyMovieClip._rotation -=10;
};

Any help or direction would be awesome

Regards
James
0
Comment
Question by:skyscream
[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
1 Comment
 
LVL 29

Accepted Solution

by:
dgofman earned 500 total points
ID: 36893079
var t:MovieClip = _root.createEmptyMovieClip("triangle", _root.getNextHighestDepth());
t.beginFill(0x000099);
t.lineStyle(2, 0x000033, 100);
t.moveTo(-50, 50);
t.lineTo(0, -50);
t.lineTo(50, 50);
t.endFill();
t._x = 300;
t._y = 100;
t.onRollOver = function():Void{
      this.onEnterFrame = function():Void{
         this._rotation += 5;
      };
};
t.onRollOut = function():Void{
      delete this.onEnterFrame;
};


0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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
video live streaming 1 126
What changes do I need to make when I create the MST file for Flash 18 6 128
Virus or Outlook 2007 problem, how to tell? 8 90
flash in chrome 4 122
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…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

733 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