hi Wyert,

If this is the kind of thing you might do more than once then I strongly
recommend checking out the 'hype' AS3 framework from Joshua Davis and
Branden Hall.

http://hype.joshuadavis.com

There's a very approachable set of intro videos here:
http://www.vimeo.com/channels/hype


C:

-----Original Message-----
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Weyert
de Boer
Sent: Tuesday, 10 November 2009 7:56 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Placing sprites on the circumference of a
circle

After a bike ride down hill to the supermarket and cooking I just tried
out all your suggestions and I have to say it appears to work!  
Really nice, only the problem I am currently happening is the issue when
I am creating sprites dynamically during runtime the origin is not in
the bottom center but in the top left which goofs up everything. And
when I try to do:

        x = -( b.width / 2 );
        y = -( b.height );

Before I am updating the positions as calculated the trigonometry
formulas. I am quite sure I am overseeing something, though. Not sure
what is wrong even when I do this after the setting x,y to the values of
nx, ny it still fails for me.

The current code I am using is as follows:
http://www.innerfuse.biz/dropbox/code.txt

Anyone know what I could be doing wrong? Thanks again, you guys are
lifesavers :)

(really need to get a book about mathematics again to fresh up)

Yours,
Weyert de Boer
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to