Re: [Flashcoders] Adding a property to an AS3-component

2009-01-26 Thread Alexander Farber
Thanks Dave, I've read up on it and understand this now. Too bad Flash docs do not mention which class is dynamic Regards Alex On Sat, Jan 24, 2009 at 6:14 PM, Dave Watts dwa...@figleaf.com wrote: is it actually possible to add a new property to an AS3-component, like button? In AS3,

Re: [Flashcoders] Adding a property to an AS3-component

2009-01-26 Thread Ian Thomas
On Mon, Jan 26, 2009 at 9:00 AM, Alexander Farber alexander.far...@gmail.com wrote: Thanks Dave, I've read up on it and understand this now. Too bad Flash docs do not mention which class is dynamic At the top of the documentation page:

Re: [Flashcoders] top down plane games

2009-01-26 Thread David Hershberger
I may be misunderstanding the trouble you are having, but are you looking for sine and cosine? var velocity: Number = 3; // Absolute velocity, regardless of direction speedX = velocity * Math.cos( cursorAngle ); // X component of velocity speedY = velocity * Math.sin( cursorAngle ); // Y

RE: [Flashcoders] top down plane games

2009-01-26 Thread Merrill, Jason
I think you should definitely consider picking up this book and going through the animation and physics lessons: Foundation Actionscript 3.0 Animation by Keith Peters (published by Friends of Ed) I just picked it up and have been really impressed with it - there is a lot of discussion on

Re: [Flashcoders] top down plane games

2009-01-26 Thread Todd Kerpelman
Well, again, don't know how much this will help you, but in the past when I've done a camera following a moving object with a scrolling background, I've attached a virtual spring from my camera to the position I want to go to and then just let the spring drag my camera to the right place. If you