On second thought, that looks somewhat confusing to a non-Flasher.

I don't have time to do it for you right now, but if you give me the
language you're using and the circumstances, I can put it together pretty
easily...

Cheers,

Kevin

-----Original Message-----
From: Kevin Aebig [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 24, 2006 2:00 PM
To: CF-Talk
Subject: RE: Plot points on the circumference of a circle.

Convert this from AS to CF and you're good to go (watch for wrap)...

placeOnCircle = function (numberItems:Number, radius:Number, x:Number,
y:Number, clipid:String, attachTo:MovieClip, depth:Number) 
{
    var segment:Number = 2 * Math.PI / numberItems;
    for (var i=1; i<(numberItems+1); i++) {
        attachTo.attachMovie(clipid, clipid+"_"+i, depth+i, {_x:x + radius *
Math.cos(segment*i), _y:y + radius * Math.sin(segment*i),
_width:setup_mc.distractor_cb.value, _height:setup_mc.distractor_cb.value});
        }
}

Cheers,

!k

-----Original Message-----
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 24, 2006 1:09 PM
To: CF-Talk
Subject: RE: Plot points on the circumference of a circle.

Postgres , SQL Server 2000/5, and  Oracle have their own set of  
spatial extensions as well.

Jon


That would be interesting, but my current requirement has nothing to do with
a database.  I am creating pure display, arranging a series of divisions in
a circle around a point.


--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

---------
| 1 |   |
---------  Binary Soduko
|   |   |
---------
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 








~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261616
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to