?
Solved

Flash actionscript in as2 animation

Posted on 2011-09-30
1
Medium Priority
?
479 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

649 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