Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Circle Collision Plus Direction Circle Should Go



I need help (or code) on how to figure out the direction a circle should go after it is hit by another circle. I know how to get the circles to know when they hace hit each other but i need to know how to find the angle at which the circle would bounce off at. Thanks to anyone who can help.



FlashKit > Flash Help > Flash ActionScript
Posted on: 10-18-2001, 10:29 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Circle Collision
As I'm sure most of you know, movieClips are squares, despite what's inside them. I have two circle movieClips (one that is the character in my game, and one thats stationary).

I've been attempting to use the distance formula to dectect collision on the circles, however, it's not working for whatever reason.

Here is my code (mc names are character and ball):

var r2:Number = character._width + ball._width;
var dx:Number = character._x - ball._x;
var dy:Number = character._y - ball._y;
var distSq:Number = dx * dx + dy * dy;
onEnterFrame = function(){
if(Key.isDown(Key.LEFT)){
character._x -=1;
}else if(Key.isDown(Key.RIGHT)){
character._x +=1;
}else if(Key.isDown(Key.UP)){
character._y -=1;
} if(Key.isDown(Key.DOWN)){
character._y +=1;
};
if(distSq < r2 * r2){
trace("object hit");
};
};

can someone either tell me why this is not working and/or a better way to test for collision in circles?

Circle Collision Detection
i have a real problem with my collision detection, i've searched this forum and found alot of stuff but i couldn't get it to work

anyway check my test swf out here:

http://scifi.pages.at/drsprite/tests/lamewire.swf

it should jump to the hitframe directly when the red border touches the black one but instead it hits only when the mousepointer(mc is locked to center) touches the black border

the actionscript for the player(red circle) looks like this

Code:
onClipEvent (enterFrame) {
if (_root.level.hitTest(_x, _y, true)) {
_root.gotoAndStop(2);
}
}
level is the black circle

i really have no idea what's wrong...
oh and here's the .FLA

http://scifi.pages.at/drsprite/tests/lamewire.fla

i hope someone can tell me what i'm doing wrong
thanks in advance

Circle-line Collision
I have gone through the book 'Flash mx 2004 game design demystified.' I hope someone here has gone through that too and so can know what I am talking about. I am trying to make a golf game and have used and modified just a little the code for circle-line collision and reactoin in that book. It's in chapter 6. The problem is at the corners... sometimes the ball will just go through the lines where they intersect... the book does not address this issue at all. Has anyone else run into this (i'm sure you have), how is it best solved? I can send code if needed

Thanks!
Kyle

Circle Collision Angle HELP?
I have managed to work out how to constrain little circles inside a larger one, but I am having mucho difficulty in making them bounce semi-realistically when they touch.

I have tried to implement many of the scripts for this that I have found online, but I cannot find a way to adjust the currect velocity of the smaller circle, specifically the angle to bounce away.

Could someone please assist me?

Here is my existing code...


Code:

//draw the container circle in the center of the stage
var container_mc = this.createEmptyMovieClip("container_mc", 10);
container_mc._x = Stage.width/2;
container_mc._y = Stage.height/2;
container_mc.radius = 180;
container_mc.lineStyle(5, 0);
container_mc.drawCircle(0, 0, container_mc.radius+2);
//set a vector for position to use later for distance checking, setting this to 0,0
//which technically is not this clips position, but it is the reference point I want
//to use to judge distance
container_mc.position = new Vector(0,0);

//now create a circle to bounce around inside
//I will make it a child of the container so the center is 0,0 local and global
var numCircs = 12;
var circ_array = new Array();
for(var n=0;n<numCircs;n++){
container_mc.createEmptyMovieClip("ball_"+n, n+1);
container_mc["ball_"+n].radius = Math.getRandomBetween(15,30);
container_mc["ball_"+n].mass = container_mc["ball_"+n].radius;
container_mc["ball_"+n].lineStyle(2, 0);
container_mc["ball_"+n].drawCircle(0,0, container_mc["ball_"+n].radius);

//use 2 vectors, one to track the position of the circle, the other to track the velocity
container_mc["ball_"+n].position= new Vector(Math.getRandomBetween(-container_mc.radius,container_mc.radius));
container_mc["ball_"+n]._x= container_mc["ball_"+n].position.x;
container_mc["ball_"+n]._y = container_mc["ball_"+n].position.y;
//give it an initial random angle and length
container_mc["ball_"+n].velocity= new Vector(0,0);
container_mc["ball_"+n].velocity.length= Math.getRandomBetween(8,10);
container_mc["ball_"+n].velocity.angle= Math.getRandomBetween(0,360);
//set the event handler
container_mc["ball_"+n].onEnterFrame = moveCirc;
//stuff it in the array
circ_array.push(container_mc["ball_"+n]);
}//end for loop



//add the velocity vector to the current position vector and
//update the blobs position on the stage accordingly
function moveCirc(){
//aply some physics to the circle
this.velocity.y+= 0.10;//gravity
this.velocity.x*= 0.99;//friction x
this.velocity.y*= 0.99;//friction y

//apply them to the position
this.position.plus(this.velocity);

//update the screen position
this._x = this.position.x;
this._y = this.position.y;

//loop through the array of circles and see if it's colliding with any
for(var j=0;j<circ_array.length;j++){
//if not self
if(this!=circ_array[j]){
//get the distance between objects
dist = Math.distance(this.position,circ_array[j].position);
//if the distance is within the 2 radius's then bounce
if(dist<=this.radius+circ_array[j].radius){
/*this.velocity.angle-=180;
this.velocity.x*=.98;//bounce friction
this.velocity.y*=.98;//bounce friction
this.position.plus(this.velocity);
this._x = this.position.x;
this._y = this.position.y;
*/
//Bouncer2(this, circ_array[j])

}//end if collided
}//end if not self
}//end for lop

//get the circles distance from the center of the stage
var distance = Math.distance(container_mc.position,this.position);
//check and see if the position is at the radius of the container
if(distance+this.radius > container_mc.radius){
//get the angle to the center of the container
var angleToCenter = Math.angleOfLine(this.position,container_mc.position);
//set a new angle back to the center
this.velocity.angle = angleToCenter;
this.position.plus(this.velocity);
this._x = this.position.x;
this._y = this.position.y;
}//end if out of bounds
}//end moveCirc
Thanks muchly

b

ps - I am using Robert Penners 2d vector class for the position and velocity

Circle Collision/Bounce
I'm creating a game that requires the collision and subsequent bouncing of circles. Specifically, I need a ball that will bounce off a wall or any non-moving object. The use of the bouncing effect will require a more complex code, because in the container for the circle, the corners are rounded. Thus, making the circle bounce at a certain _y or _x won't work. It needs to account for angle, possibly momentum. I've had trouble locating or creating a code that can be used in the situation for my game.

Thanks.
Esoltas

Rigidbody Vs Circle Collision?
im trying to have circles that i have bounce against a curving wall but its all seeming very beyond me ( shoulda payed attention in math class). what is the best way of going about something like this? what kinda options do i have?

Circle Line Collision
I have gone through the book 'Flash mx 2004 game design demystified.' I hope someone here has gone through that too and so can know what I am talking about. I am trying to make a golf game and have used and modified just a little the code for circle-line collision and reactoin in that book. It's in chapter 6. The problem is at the corners... sometimes the ball will just go through the lines where they intersect... the book does not address this issue at all. Has anyone else run into this (i'm sure you have), how is it best solved? I can send code if needed

Thanks!
Kyle

Circle Collision....multiple Instances?
Hello

I'm having trouble writing a code for multible buttons colliding and bouncing off of one another.

I have done tut's and looked at some sample code but I keep running into problems by trying to get different symbols to interact.

Anybody aready figure it out? love to look at some code


cheers,

nigel

Problem With Bullet And Circle Collision
First have a look at this: http://www.hot.ee/lrstudio/direction14.html . I've been trying to make the circle bounce if bullet hit's it but I fail. I have used many tutorials and sources, but they are all like for flash 4 and i can't get them work for my movie.
Also I have a problem with making the bullets dissapear after hitting the circle.
Long story short: bullets have to make the circle bounce a little and dissapear after that hit.
Here is the main code: http://pastebin.sekati.com/?id=code@858ff-31891b1c-t
Here is the full source: http://www.hot.ee/lrstudio/direction.rar

Could anyone guide me?

Point-circle Collision Function Help...
hello I really need some help
I dont know whats wrong with it..
take a look at this script I made :


Code:
hi I need help fixing this script :

//zuperxtreme
//19/12/05
//point-circle collision
//----------------------------------------
-
//pointToCollisionDetecion function
function pointToCircleDetection(point, circle) {
var xDiff = circle.x-point.x;
var yDiff = circle.y-point.y;
var distance = Math.sqrt(xDiff*xDiff+yDiff*yDiff);
if (distance<=15) {
hit = "hit";

} else {

hit = "no hit";
}
}
//set point
point1 = {};
point1.x = _root[newLaser]._x;
point1.y = _root[newLaser]._y+10;
//check for collision
//define circle
//needs to be defined once scince it doesnt move
circle1 = {};
circle1.x = _root[newAst]._x;
circle1.y = _root[newAst]._y;
circle1.radius = -root[newAst]._width/2;
//----------------
pointToCircleDetection(point1, circle1);
//--------------------------------
the asteroid is attached to the stage with a new name ("newAst")
so is the laser ("newLaser").

heres a swf :


Here's what I mean

this thing is weird it acts like its hit when its not... its crazy

Collision Between Half Circle And Rectangle
Flash version=7
As=2
I created two movieClip.a and b.
a is circle and b is rectangle.
I want that when rectangle touch a shape then trace 'yes' otherwise 'no'.
when used shape flag then, registration point of a and b when meet then trace 'yes' .
plz give me concept of this type of event.
I tried through followint script.
code:

on (press) {
startDrag("", true);
}
on (release) {
if (_root.a.hitTest(_root.b._x, _root.b._y,true)) {
trace("yes");
} else {
trace("no");
}
stopDrag();
}

[F8] Removing Parts Of A Circle On Collision
I am kind of new to Flash and am using Flash 8, hope this is the correct section to post this in but anyway, my current project is kind of simulating a wireless network. In this project I am using a circle to simulate the broadcast wave so it is slowly expanding all the time. However my problem is that when the circle collides with a line(simulating a surface the wave cant penetrate) I need the circle to delete the section that collided with the line. If anyone knows a way of doing this I would be very happy, I've looked around but can not find anything that describes how to do this.

Modifying Circle Collision Posted By FlashJunkie
Hi all
I was wondering if anyone can help me in modifying the "circle collision" posted by FlashJunkie....I want to have squares colliding instead of circles....I suppose it's quite easy to modify, but I'm very good in scripting flash, so any help will be appriciated.

Thanks in advance
Giano

[F8] Fast Multi-circle Collision Detection
ok, i'm making a game where i got a lot of enemies (no exact number, 30+), and they need to not "overlap" when they walk around.
what i need, is that when their centers' distances become less than distance (2*radius), they need to use inverse kinetics (or whatever you have if it's faster) to push away from each other.
basically, a fast circle collision detection that can handle 30+ circles. exact moment of contact (in between frames) is unnecessary, sorry for asking you to do the (nearly)impossible.

i think this guy had something, but its CS3 so i dunno if itll work, and i cant make heads or tails of it:
http://lab.polygonal.de/category/actionscript/
its a physics engine btw

Collision Detection Between A Circle And A Rotating Line
What's the best way to catch a collision between a small circle and a rotating line in AS3?

These are my attempts:

1) line.hitTestObject(circle)

Result: This is really not good. The circle goes in collision with the bounding box of the line.

2) line.hitTestPoint(circle.x, circle.y, false)

Result: With "false" we have again the bounding box. So let's try with:

3) line.hitTestPoint(circle.x, circle.y, true)

Result: it's a little better now but the detection is still imprecise. There's always a small bounding box

and the function is sometimes true even if the objects are not touching each other.

4) I tried with the AS3 version of the Skinner's collision detection class but I can't get it working in

any way. It's based on collision rectangles and for some reason the collision is never detected, as if the

objects don't exist. I can't tell you now all the attempts I tried to get it work but I've tried

everything, I think..


So, have you any other kind of solution to get a working collision detection between these 2 shapes??

Thank you!

Frame Independent Circle To Circle Detection
I am having trouble trying to get my head round this part of programming.
I know it is used for detection between movieclips such as snooker balls. I just cant get my head around it and it is driving me nuts!
Does anyone know of any good tutorials that I can use to solve this problem?

Thanks

The Toffee

Circle-line Collision Dection And Reaction Problem. Please Help
i've encounter a serious problem. can someone take a look at my code, there is a error with ball and wall collision detaction and reaction after 1 to 2 mins. i was trying to solve the problem but it seems that my skills is not enough. please help me anyone? thank you very much! :P

Weird Half Circle Collision Detection Problem
I have been makeing a slime game in flash 8, and have been having problems moveing the ball out of the slime when it hits, so i created a test to see what was wrong. For some reason i could only move the ball out of the slime if it hit the bottom, it the ball collided anyplace else it would get stuck, also i added code to move the ball to 10,10 if i hit the space bar. again to my suprise the space bar did not work when the ball was stuck inside the slime, to make thigs more confusing, if you press the space bar when you are undernethe the slime it registers as a collison detection.

below is a link to a site containing the 2 flies, the first is showing my working collison detection, and the second is the flile explained previosly. *use the arrow keys in both files to move the ball.

http://www.geocities.com/ubergmr/

also here is the code for the second swf


Code:
function test() {

var slime2xmp = slime2_mc._x + slime2_mc._width *.5
var slime2ymp = slime2_mc._y + slime2_mc._height
var ballxmp = ball_mc._x + ball_mc._width *.5
var ballymp = ball_mc._y + ball_mc._height *.5
var ballr = ball_mc._height *.5
var slime2r = slime2_mc._height
var xd = Math.pow(Math.abs(slime2xmp - ballxmp),2)
var yd = Math.pow(Math.abs(slime2ymp - ballymp),2)

oldy = getProperty(ball_mc,_y)
oldx = getProperty(ball_mc,_x)

if (Key.isDown(Key.DOWN)){
ball_mc._y += 10
}
if (Key.isDown(Key.UP)){
ball_mc._y -= 10
}
if (Key.isDown(Key.RIGHT)){
ball_mc._x += 10
}
if (Key.isDown(Key.LEFT)){
ball_mc._x -= 10
}
if (Key.isDown(Key.SPACE)){
ball_mc._x = 10
ball_mc._y = 10
}




if (Math.sqrt(xd + yd) < ballr + slime2r and ball_mc._y < slime2_mc._y + slime2_mc._height) {
setProperty (ball_mc,_x,oldx)
setProperty(ball_mc,_y,oldy)
hit = true
}
else {
hit = false
}

} ball_mc.onEnterFrame = test
any ideas why it does this?

Moving A Circle Over Half A Circle
how do i move over the half circle
up and donw the circle line?
how do i move it to a certain point?
and how do i calculate it for example 5 point that will be in equal spaces between the circles?
thnaks in advance
peleg

Circle-circle Reactions, With A Twist..?
All right, I'm not as dumb as I sound -- no, really! But here's what's got me stumped:

I have a series of circles that gradually spin toward the center of the screen. The circles are randomly placed at the outer edge of the screen and randomly assigned a speed. Because the balls don't travel in a linear fashion, I'm having trouble figuring out how to adjust their movement. As the circles get closer to the center, they also get "spun" a certain amount -- they have a property called "theta" that gets appended with another property called "spin." Anyway...

I can detect when a collision is taking place: I'm just completely blank regarding how to make the circles react. I've searched a bunch of places, but nothing I've found is making any sense to me...and I'd like to think that I'm not brain-dead...

If anyone has any suggestions, I would LOVE to hear them! Thanks in advance!

Regards,
Blake

Moveable Circle Around Another Circle - No Overlap
Hey all. I have two MC's, circular in shape. One of the circles is stationary and you can drag the other. I'm trying to get the moveable circle to be able to move around the circumference of the stationary circle, but not overlap. I'm able to detect when they overlap, not using hittest. I just can't figure out how to code it so that the draggable circle can't be moved over the stationary circle. Any suggestions, comments, or help is greatly appreciated. Thx.

Drawing A Animated Circle, Dot To Circle
Can some one help me??

Im new in Flash, I want to make an animation of a circle, begining from a small dot and ending in a circle (like wen we draw in a paper), I allready tried everything I know (not a lot!!!! ) .

Is it possible to make this? I will trie to explain:

I want to make a animation of a small pencil drawing a circle from nothing. Begining with the pencil drawing a dot then that pencil will make the complete circle like wen we draw in a paper by hand.

Sorry my English is not very good.

Please Help!

Arcanjo

Circle-Circle Detection
I need some serious circle to circle collision detection. I used one from jobe makar, but I don't think it works for circles that are'nt both moving. Some of the variables are 0, so when it divides by them, it returns NaN. Anybody know any collision detection scripts? <--Sorry, I just wanted to put that in there

Circle Vs. Circle Ricochet.
I'm working on a game that involves circle vs. circle collision detection (More specifically moving circle vs. static point). I am able to project the circle out of the point but I have no Idea how the change the velocity of the circle so that it is physically accurate.

I whipped up a quick thing to Isolate the circle vs. point collision here.

Here's the script:


Code:
var GRAV:Number = .22;
var RADIUS:Number = ball.width/2;
var vx:Number = 0;
var vy:Number = 0;
var dx:Number = 0;
var dy:Number = 0;

stage.addEventListener(Event.ENTER_FRAME, enterFrame);

function enterFrame(Evnt:Event):void {

ball.x += vx;
ball.y += vy;
vy += GRAV;
dx = ball.x - dot.x;
dy = ball.y - dot.y;
if (Math.sqrt(dx*dx+dy*dy)<RADIUS) {
ball.x = dot.x+dx*RADIUS/Math.sqrt(dx*dx+dy*dy);
ball.y = dot.y+dy*RADIUS/Math.sqrt(dx*dx+dy*dy);
// I have no Idea what to put here to simulate ricochet
}


}
If anybody could tell me how I would manipulate the vx and vy variables that would be grand.

Circle
I'm having difficulty making an object (circle) go around a guide layer (also a circle). My circle only goes half way. Is there a way to place the circle at a starting point and have it go all the way around the guide layer and finish at the starting point? I've been able to do essentially creating a duplicate guide layer and a duplicate object and having the object complete the movement of the other half of the circle.

I've seen it done so I know it can be done. Thanks in advance.

Arc And Circle
Hi people. Well here is my question:

I have a big circle which is always a constant size. Now my navigation is dynamic and the amount of small circles on this big circle's arc has to be devided evenly on this arc of the big circle, now what I am trying to do is see ho many menu items I have, work out the angle between them to space them evenly on the big circle....

I'm totally confused in how to approach this. The thing is I have all the functionality for the duplication, all I need is a function to work out the plotting of the small circles on the big circles' arc...

Thanx in advance

Circle..?
emm..could someone tell me..how to write an actionscript..that draws a circle in real time...slowly..or...how to make such animation..or whatever..tnx

What Is The Circle In A MC?
I noticed that MC has + sign (crossed hair) which is the registration point of the movie clip. This is where (0,0) of the object. I also noticed a circle that sometimes it's inside but sometimes it's outside of my movieclip. What is that for?

TIA,

Circle Instead Of Bar
how can i create of a circular preloader, it is just like a normal bar that fills up when loading but instead make it circular

Circle Tween
How do i make a dot on the screen into like a circle. Like... use a tween to start with a point of something similar then go around and extend into a circle. Anyone understand? Basically, it starts out with a point then it goes around and makes a circle.

Rotating 3d Circle
How do i rotate a circle and give the affect that it is 3d, with an image on the 3d circle.

like the 3d circle at matinee.co.uk

Circle's Equation....
Hi

Can somebody tell me what is the equation for the "circle" in maths?
as i am trying to do something in AS to assign the MC to move in a circle...
Thanks in advance...

MKit de HK

Tweening A Circle
Im tired so give me a break on this one, but I want to TWEEN a circle STROKE ONLY! No fill, I want it to tween the outline around the circle. --You know, like start with nothing then start going around with some color to make a complete circle

For the life of me I cannot think of how to do this. I though of making 4 level with four straight lines that cover up the circle and tweening them in order...but is there a better way?

Am I missing something easy?

thanks! tv

[Edited by TVance.Net on 01-30-2002 at 01:51 AM]

Cutting In A Circle? Help
Listen I have pictures that I want to be perfectly round in Flash and cant for the life of me find out how to cut these out!

When I import into Flash it comes in like a square or rectangle or whatever and I break it up, and I want the very center (they are pics of people) in a Circle to be the only thing left...

Someone help..please?!?

Spinning Circle
I have a circle that is filled. I now need this circle to spin on the screen. I will have another layer on the circle that will have some text on it, but I don't want the text to move. How would I go about getting the circle to spin in place? (I tried doing the rotate thing, but that is not the effect I'm looking for - it actually moves the circle as it does the rotate...) I have to have the circle stay in the same spot all the time while spinning.

Thanks,
Kathi

Circle - How To Animate?
Hey~
Thank you for taking time to look in to this post.

I have a problem (probably quite a minor one) but am clueless as how to solve it.

I want to animate a circle being drawn through scripting.
Is it possible? If so, how?

If it can't be done, is the only way to do it through drawing a frame by frame progression of it?


Once again, Thank you~

Cheers~

The 4th Circle Hates Me
4th circle "contact" won't keep in line...what is wrong with my script?

you can see the swf here:

http://www.eight.nl/test/circletest.swf

my script is


Code:
onClipEvent (load) {
navigation = ["info", "divisies", "agenda", "contact"];
max = navigation.length;
i = 0;
function Circle() {
Radius = 200;
Speed = 3;
for (i=0; i<max; i++) {
_root.attachMovie("Box", "Box"+i, i);
var targ = _root["Box"+i];
targ.attachMovie(navigation[ i ], "mc"+navigation[ i ], 1);
targ.Rotate = i*(360/max);
targ.onEnterFrame = function() {
xpos = (targ._x - _xmouse);
if (xpos<=0) { this.Rotate +=Speed
} else {
this.Rotate -= Speed
}
this._x = 380+(Math.cos(this.Rotate*(Math.PI/180))*Radius);
this._y = 280+(Math.sin(this.Rotate*(Math.PI/180))*Radius);
};
}
}
Circle();
}
does anyone know what i'm doing wrong in my script?

(problems: contact doesnt keep in line, when mouse is held still the rotation jerks)

Circle To Square
i'm trying to change a circle to a square, but the shape tweening wouldn't work. any suggections?

Help Making A Circle...
Does anyone have a good code for howto draw a cirlce using moveto and curveto? In flash's explanation it has a code but its a square with rounded corners and isnt quite a cirlce. Thanks alot. I want it for http://phildman14.homeip.net/flashmx/paint/v1.swf

Fill My Circle :)
Every time you think you are well and truly past the newbie stage something comes along and brings you back to earth. In my case it's a malformed circle.

Picture if you will a circle (the bottoms been flattened a little) and then imagine filling the circle with a colour. Doesn't sound so hard does it? We're talking flash basics here. But, well, this particular circle of mine refuses to be filled with a colour. It's not grouped or anything, and the frame properties box suggests all is well (and filled). The shape was once part of a shape tween, but I copied a key frame (and removed any notions of tweening in the frame box) to arrive at my current situtation.

So what is my problem (in the very specific case )

Regards
Shan

Circle Percentage. How To Do This?
Hello,

I created a preloader which includes the variable "Percent". This variable gives the loaded percentage of the .swf file.

1) I have a circle inside a MC. I want the circle be a line, when Percent is 0, and to become a circle when Percent is 100.
Imagine a circle being 1/8 then 2/8, 3/8 and so on.

2) I also want a line to start as vertical and change its angle from vertical position to vertical position again, doing 360 degrees, while Percent goes from 0 to 100.

How to do this?

Thank You,
Miguel Moura

Circle Motion
I cant get my mc to move in a circle motion.
here is the as


onClipEvent (load) {
radius = 10;
degrees = 0;
}
onClipEvent (enterFrame) {
angle = degress*(Math.PI/180);
degrees += 2;
xposition = radius*Math.cos(angle);
yposition = radius*Math.sin(angle);
this._x = xposition+_root.cross._x+1;
this._y = yposition+_root.cross._y+1;
}

What is wrong with it.


cross is the center of the rotation. It is a mc called cross lol.

Masking And Circle
Ok first question. I am just learning flash and i am doing the lessons that come witht the program and they just had me creat a layer mask and that was it can someone breifly tell me what the point is of a layer mask? thanks.

Second question. I was just woundering if someone could tell me ohow to creat a circle or a square that dose not have a fill. i want to have a circle that is drawn with a dotted line but i can see through to the layer under it. Thanks Oh and while i am at it i might ask if there is an easy way to make stars?

How 2 Do Smart Circle?..can U Help Me?
..
" (english is not my mother languge) "
_______________________________________


hi all,,,

i want a code ( i hope .fla file ) to do the folowing:

circle, stopped , rotate clockwise while rotation speed from zero increase then increase then increase, until speed at highiest value "choose Any value u want and tell me how can i change it"

then speed dicrease, dicrease, dicrease until speed = 0 , then rotate counterClockWise in smae idea..

am I claer?! i hope that,

thanks a lot

nehaya

Drawing A Circle
This may seem simple to you guys, but I haven't used flash for ages...so I'm a little rusty.

Anyway, what I want to do is to make an animation where it looks like a circle is being drawn - like you would by hand. I've tried using a mask, but just can't get it to work.

I was wondering if I can do this using actionscript, I'd prefer to use actionscript.

Drawing A Circle
Hi

Using FlashMX. I want to make an animation where it looks like someone is drawing a circle. I know how to do this without actionscript, but I'd much prefer to use actionscript to do this. Please someone show me the light!

BTW I haven't used flash for a while, so I'm VERY rusty...

Dot - Circle - Trail
Can anyone help me!
I want to make a black dot follow the path of a circle and for the dot to leave a gradient trail behind it.... so by the time the dot has done a full rotation the trail is gone and ready to start the rotation again?

Is this even possible?

Circle To Square? Possible?
yeah im a crazy beginner and i wanna turn a circle into a sqaure. how the mother do i do that? i thank in advance whoever helps me. it is ten thousand times appreciated!
--crazy joolie

Rotating Circle
I have a cirlcle of buttons for the main page of a website I am creating. I want to have the whole circle rotate slowly at all times, except when the user mouse-overs one of the buttons. When the user does that I want the circle to stop rotating at that point. If the button is clicked it stays like that even with mouse-off. If the mouse is taken off without the button being clicked I want the circle to continue rotating.
The problem is that the movie clip containing the buttons continues to rotate when I mouse-over a button. Thanks in advance for the help.

Copyright © 2005-08 www.BigResource.com, All rights reserved