Solved

Flash actionscript in as2 animation

Posted on 2011-09-30
1
472 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
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Action Script commands 5 241
How to convert image files to a movie file 6 111
Download Adobe Flash Player 6 67
Include Adobe AIR libraries in Flash Builder 4 131
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
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.

860 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