Solved

Flash actionscript in as2 animation

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

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 3 219
Shockwave Flash Object within PowerPoint 2013 2 131
Adobe Products Forum? 3 154
word is recognized as adobe and adobe as IE files 14 42
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,…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to record live broadcast.

832 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