ActionScript 2.0 :: Rotate Circle With Mouse Movement

Jul 15, 2009

I'm trying to make a dummy from a circular menu that reacts (rotate) to mouse movement, I uploaded a fla example, different colors, size, etc, but essentially the same in function; but for now I'm freezed how to do somethings, I'm not a programer or actionscripter, but I want to learn. Currently using CS3 and AS2, downloading the FLA.

Ok, in the "fla", you will see a circle who rotates versus mouse movement (I would like to make a delay rotation for a smooth feelling when mouse is moving, those like "_x += (_xmouse/5)" but with rotation. Other thing I would like to do,is... that the movement stops progressively a few degrees before the mouse reach de cian angles(a1,a2), and then, the circles doesn't move if the mouse is moving under those angles, like a... an inactive area(U1), and if it could work with instances.

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Rotate Circle With Mouse Movement?

Jul 15, 2009

I'm trying to make a dummy from a circular menu that reacts (rotate) to mouse movement, I uploaded a fla example, different colors, size, etc, but essentially the same in function; but for now I'm freezed how to do somethings, I'm not a programer or actionscripter, but I want to learn.Currently using CS3 and AS2, downloading the FLA example may help. in the "fla", you will see a circle who rotates versus mouse movement (I would like to make a delay rotation for a smooth feelling when mouse is moving, those like "_x += (_xmouse/5)" but with rotation. Other thing I would like to do,is... that the movement stops progressively a few degrees before the mouse reach de cian angles(a1,a2), and then, the circles doesn't move if the mouse is moving under those angles, like a... an inactive area(U1), and if it could work with instances.

View 0 Replies

Rotate With Mouse Movement?

Jul 15, 2009

I'm trying to make a dummy from a circular menu that reacts (rotate) to mouse movement, I uploaded a fla example, different colors, size, etc, but essentially the same in

function; but for now I'm freezed how to do somethings, I'm not a programer or actionscripter, but I want to learn.Currently using CS3 and AS2, downloading the FLA example may help.

Ok, in the "fla", you will see a circle who rotates versus mouse movement (I would like to make a delay rotation for a smooth feelling when mouse is moving, those like "_x += (_xmouse/5)" but with rotation. Other thing I would like to do,is... that the movement stops progressively a few degrees before the mouse reach de cian angles(a1,a2), and then, the circles doesn't move if the mouse is moving under those angles, like a... an inactive area(U1), and if it could work with instances.

View 1 Replies

ActionScript 2.0 :: Rotate Mc By Mouse Movement?

Apr 12, 2006

i'm trying to build a "circular" menu that rotate on rollover and mouse move but with no good results. Just something like the yugo sliding menu but with buttons placed around a circonference.I don't need a dinamic menuI need a function that let the menu rotate up when cursor is below the half of the circle and viceversa.I've done a search and found a compass example but i really can't edit it. I'm a newbee and can't really figure out how to rotate a movie clip around its own axes on mouse move..

View 4 Replies

ActionScript 3.0 :: Rotate Symbol Based On Direction Of Mouse Movement?

Oct 16, 2009

What I really want to know is how to rotate the symbol based on direction of mouse movement

View 1 Replies

ActionScript 2.0 :: Make One Circle Follow The Mouse Cursor Inside Another Circle

Sep 30, 2005

i want to make one circle follow the mouse cursor, inside another circle. Similar to an eye looking at the cursor. Ive attached an example.

View 4 Replies

Professional :: Rotate A Circle With A Cut In (looks Like Pacman)?

Aug 9, 2011

Simple animation..I want to rotate a circle with a cut in (looks like pacman).I want to rotate i 1 x clockwise and devide this animation in 4 parts. so if you think of a clock it goes, 9, 12, 3, 9, ...The rotation works perfect until i start adding the keyframes and adjusting the rotation, at some point it always goes wrong.. insted of going the right way (clockwise) the circle starts to move counter clockwise.. I have to add some extra keyframes to keep the rotation on track, this result in a not so smooth rotation.
 
ps: Just to make my self clear, it happents only once you start to manualy rotate and adjust pacman - this is a must since i have to have keyframes in certen points (when the packman is at 90 degree rotation) [URL]

View 1 Replies

ActionScript 2.0 :: Rotate Circle On Its Own Place?

Oct 25, 2004

i got a circle inside a mc (116x116 px) and i want it to rotate continuous...if i do it in flash itself it works great the circle rotates nice on its own axis(tween) , but if i try it with actionscript the circle gets of its place and makes a big rotation

PHP Code:

onClipEvent (enterFrame)     {     this._rotation+=1; 

View 5 Replies

ActionScript 3.0 :: How To Rotate Circle And Use It As Volume Knob

Apr 22, 2009

I want to rotate a circle so I can use it as a volume knob. I can change the volume with a slider but not a knob.

View 1 Replies

ActionScript 2.0 :: Make A Circle Rotate Over 6 Seconds

Feb 27, 2008

I want to make a circle rotate over 6 seconds. Does anyone know how to code this in AS 2.0 so that it happens over the 6 seconds. Basically I want the twelve oclock position on the circle will rotate all the way around back to the top over the 6 seconds.

View 2 Replies

ActionScript 2.0 :: .rotate Circle With Buttons, Change Direction?

Oct 20, 2010

what i have is a circle image (for this purpose lets say it looks like a clock). For example: when you click 3 o'clock, the whole clock needs to rotate around with the 3 o'clock btn at the 6 o'clock position (with the pivot point in the centre). each of the 'time' positions (2 o'clock, 3 o'clock, 4 o'clock ...etc) needs to be a button and thus be able to rotate around to the 6 o'clock position.This would seem simple enough by just using a.rotate value or using tween movieclips...however the tricky part is:the actionscript needs to determine which way the clock turns (anti/clockwise), dependant on where the clicked time-btn's position is. it needs to be some sort of if statement that says:if (3'oclock-btn) is positioned between 0 degrees (being original 12'oclock position) and 180 degrees (original 6 o'clock position), then rotate clockwise to the 6 o'clock position. If the (3o'clock btn) is positioned between 180degrees and 259 degrees (12 o'clock position), rotate anti-clockwise to the 6'oclock position.

View 5 Replies

ActionScript 2.0 :: Drag To Rotate Circle And Ring Independently?

Jun 5, 2005

I have this problem...no worries it is only about ActionScript! I have created two movieclips: one is called "sun_mc" (with a nice smile) and a ring of sunrays (short and long ones) called "ring_mc".the ring is situated around the sun.

The user clicks the sun and drags to rotate it.The user can click the ring to rotate that too.When the sun is rotating...the ring should not be...and vice versa.

I have three problems...

1) I can't get the two mc's to move independently 2) When rotating the mouse position always jumps to a certain point on the movieclip...not the point where you clicked it first 3) The ring is also rotating when the mouse is outside the ring...

What should I do?I tried to obscure a part of the ring_mc with some masking...That didn't work.Should I try hitTest? And how should I do that? That only works with squares doesn't it?

[Code]...

View 2 Replies

ActionScript 3.0 :: How To Easing Movement Along A Circle

Nov 15, 2010

I learned easing movement,it can use following code:vx=(targetX-sprite.x)*easing;vy=(targetY-sprite.y)*easing;sprite.x+=vx;sprite.y+=vy;

I know above code can run well along a line. Now I have a sprite and put it on the border of a circle,like follows:angle=30*Math.PI/180;sprite.x=centerX+Math.cos(angle)*radius;sprite.y=centerY+Math.sin(angle)*radius;

Now I make angle equals 120 degree,like follows:angle=120*Math.PI/180;I want to know how to make the sprite from 30 degree to 120 along the circle border by using easing movement? I don't know how to realize above model, I worked it for a whole day,but it failed. Which mathematic formula can I use? Source code is better.

View 3 Replies

ActionScript 3.0 :: Easing Movement Along A Circle?

Nov 15, 2010

I learned easing movement,it can use following [code]...

I know above code can run well along a line. Now I have a sprite and put it on the border of a circle,like follows[code]...

View 1 Replies

ActionScript 2.0 :: Flowing Mc Movement Opposite Of Mouse Movement

Feb 12, 2003

I have a mc (fStrip) which looks like a piece of filmstrip with thumbnail images in it. I want this mc to move when the users mouse is positioned over it, but I only want it to move only along it's x-axis and in a direction opposite that of the mouse. And I want it to move or flow smoothly.

I've been trying to figure this out (see my lame attempt below) but without much luck.

onClipEvent (mouseMove) {
buffer=20 //movement buffer
mousePos=_root.fStrip._xmouse //store mouse position
if (mymouse!=_root.fStrip._xmouse){ //if the mouse has moved

[Code].....

View 3 Replies

ActionScript 2.0 :: Rotate To Direction Of Movement?

Jul 26, 2011

given the x & y speeds, how do i calculate the direction of movement?

View 3 Replies

ActionScript 2.0 :: Constraining A Movement To A Rotate?

May 5, 2006

I am interested in rotating an object around a central pivot point, on command from two buttons (a + button, and a - button).

This file would essencially be a clock hand, or dot representing the hand, being rotated either clockwise or counter clockwise manually by a plus and minus button.

Things I am unclear about:

1) what forms of syntax, variables, etc, would I need to accomplish this task? I am unclear about the proper protocol for setting up this movement.

2) I have a specific background graphic that all this will be happing on top of, how do I find the desired pivot point coordinates (i am assuming the pivot point is defined by an x and y) in relation to my background graphic?

View 1 Replies

ActionScript 2.0 :: Random Movement With Rotate?

Mar 11, 2008

If you look at this site and enter site. You will see 2 litle things moving on you screen.I need somthing like this aswell only then for like 50 bugs. I found lots of ways to make this with rondom movement scripts but i also need it to turn. So when its going to the bottom its pointing to the bottom and when its going up its turns pointing up.

View 1 Replies

ActionScript 3.0 :: Rotating Circle - Controlling Movement Left And Right By Buttons

Aug 3, 2009

I have a big circle with buildings all around the edge. There are two buttons that should control it. One to rotate the circle left, and one to rotate the circle right. I'd like each click of a button to rotate the circle and have it stop on a building, which then would activate an animation of the building.

View 4 Replies

Actionscript 3.0 :: Rotation A Wheel/circle With Mouse (Hold Mouse)?

Apr 19, 2011

i create this code but i cant spinning it with mouse (when i hold it)

Code: Select allmthr.addEventListener(Event.ENTER_FRAME,rotate);

function rotate (e:Event)
{[code]....

View 3 Replies

IDE :: Random Movement - Randomly Move A Ball Inside A Bigger Circle

May 26, 2009

I am trying to figure out a way to randomly move a ball inside a bigger circle. The motion has to be smooth and completely random.

View 1 Replies

ActionScript 2.0 :: Random Movement - Make A MC Rotate On It's Axis (registration Point)

Jul 13, 2003

I'm trying to make a MC rotate on it's axis (registration point)...I want it to rotate both clockwise and counter-clockwise at random speeds and random degrees of rotation. For example...CW fast 90 degrees...then CCW slower for 150 degrees...then CW really fast for 270 degrees...etc..etc..

View 9 Replies

Professional :: Auto-Hide On Mouse Movement Rather Than Mouse Over?

Apr 12, 2010

Im looking for a quick solution (if its out there) using the autohide feature using the FLV Playback Component. 

Current situation: Using ActionScript 2. The FLV component fills the stage. Autohide is set to true.

It looks to me that since the video fills the stage, the skin will not hide. What I would like to do is have the skin fade out if the mouse doesnt move for a certain period of time.

View 1 Replies

Rotate An "angled" Wheel/circle In Flash?

May 16, 2011

Is there an easy way to rotate an "angled" wheel/circle in flash? I played around with the 3D Rotate tool and nothing seemed to do what i wanted.

Attached is an image below that shows a quick mockup of the type of wheel I am going to use. I want to show the lines rotating around the circle.

[URL]

View 3 Replies

IDE :: Mouse Follow On A Circle With Ease?

Apr 21, 2009

i have a script for my project that exactly does what i want but the only thing missing is i want it to follow the path with ease . that i couldn't figure out. here is the code you can copy and past it on the first frame of a flash project and it will work:

var s = _root.createEmptyMovieClip("circle", 10);
s._x = 250;
s._y = 200;

[Code]....

View 2 Replies

ActionScript 3.0 :: Rotating Circle By Mouse?

Jan 31, 2010

I have been working on this and thinking about it for days but I just can't seem to get it right. I want to have a circle that I can "pick up" with the mouse and then rotate (with the rotation point in the center). Currently I have done this with the following code:


PHP Code:

 var radians = Math.atan2(mouseY-circle.y, mouseX-circle.x); var degrees = Math.round((radians*180/Math.PI));  circle.rotation = degrees + 90; 

I have added a mouse listener for movement to the circle mc and then checked if a button was down. On button down this code would be executed on enter frame. This code works but the main problem is that I want to be able to "pick the circle up" at any angle and rotate it. If I pick it up with this code the circle automatically rotates to 90 degrees.

View 14 Replies

ActionScript 3.0 :: Rotate After Mouse?

Jun 21, 2010

I am wondering how I can make a top viewed char, that is rotating after my mouse. With an enter frame function or something?

View 1 Replies

ActionScript 3.0 :: Using Mouse To Rotate Mc?

Oct 14, 2010

I am having problems finding a way to rotate an object with mouse movement when the mouse is down, and stop the rotation when the mouse is released.

I can do drag and drop ok but this doesn't help at all.

View 3 Replies

ActionScript 3.0 :: Rotating Circle From Center With Mouse/

Jan 31, 2010

I have been working on this and thinking about it for days but I just can't seem to get it right. I want to have a circle that I can "pick up" with the mouse and then rotate (with the rotation point in the center). Currently I have done this with the following code:

PHP Code:

var radians = Math.atan2(mouseY-circle.y, mouseX-circle.x);
var degrees = Math.round((radians*180/Math.PI));
circle.rotation = degrees + 90;

I have added a mouse listener for movement to the circle mc and then checked if a button was down. On button down this code would be executed on enter frame. This code works but the main problem is that I want to be able to "pick the circle up" at any angle and rotate it. If I pick it up with this code the circle automatically rotates to 90 degrees.

View 1 Replies

ActionScript 3.0 :: Scale The Circle When The Mouse Is Idle?

Oct 2, 2011

when the mouse is idle, dynamically create a circle and scale . the scaling has to depend on the mouse idle time.. so here i couldn't scale the circle, but all other are done. am put the code here.

CODE.................
import flash.display.MovieClip;
import fl.transitions.Tween;
import fl.motion.Tweenables;

[Code].....

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved