Topic: Drawing with Actionscript |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: westernesse |
posted 04-04-2004 09:58
Hi, |
Bipolar (III) Inmate From: Brisbane |
posted 04-04-2004 12:04
Animating anything in actionscript can be a little tricky to get a handle on. |
Paranoid (IV) Inmate From: westernesse |
posted 04-04-2004 14:34
thanks cameron. what i've been trying to do is to just draw[no animation] a line between two button objects and have the line redraw as i drag the buttons around. My problem seems to be the co-ordinate systems, i can make the line which is the correct vector [right sense and magnitude] but it isn't in the right place on the screen. |
Bipolar (III) Inmate From: Brisbane |
posted 04-04-2004 17:49
Arr, yes. The coordinate system in Flash can be tricky because each movie clip instance has it's own local coordinate space. Have a read up on the myMovieClip.globalToLocal and MovieClip.localToGlobal methods in the flash help files, perhaps they'll be able to help you sort things out. |
Paranoid (IV) Inmate From: westernesse |
posted 04-04-2004 22:56
well my go is here |
Maniac (V) Inmate From: Boston, MA, USA |
posted 04-04-2004 23:46
Okay, here's a starter for you. It's not an exact solution but I'll bet you can modify it to work for your needs. code: TextNode.prototype.drawLineToOrigin = function() {
|
Bipolar (III) Inmate From: Brisbane |
posted 04-06-2004 16:01
Crap, can't open that flash file, don't have MX 2004. Well, I can't offer much more help than the execelent resources Steve has provided -- hopefully that'll be enough. |
Paranoid (IV) Inmate From: westernesse |
posted 04-06-2004 21:26
awesome, thanks for all the help guys. I've had to restrain myself from all this stuff lately, damn degree projects. |
Bipolar (III) Inmate From: Brisbane |
posted 04-06-2004 22:17
quote:
|
Maniac (V) Inmate From: Boston, MA, USA |
posted 04-07-2004 03:47
"I must admit i have sort of started down a purely manual route [oh dear] by just drawing it all out in different MovieClips but i think i'll turn back towards Scripting instead." |
Bipolar (III) Inmate From: Brisbane |
posted 04-08-2004 07:54
***off topic post*** |
Maniac (V) Inmate From: Boston, MA, USA |
posted 04-08-2004 23:34
All I can recommend is BBEdit. It's my true love for text editing and I've never had cause to stray... |