Topic: Drawing with Actionscript |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: westernesse |
![]() ![]() ![]() ![]() Hi, |
Bipolar (III) Inmate From: Brisbane |
![]() ![]() ![]() ![]() Animating anything in actionscript can be a little tricky to get a handle on. |
Paranoid (IV) Inmate From: westernesse |
![]() ![]() ![]() ![]() 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 |
![]() ![]() ![]() ![]() 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 |
![]() ![]() ![]() ![]() well my go is here |
Maniac (V) Inmate From: Boston, MA, USA |
![]() ![]() ![]() ![]() 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 |
![]() ![]() ![]() ![]() 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 |
![]() ![]() ![]() ![]() 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 |
![]() ![]() ![]() ![]() quote:
|
Maniac (V) Inmate From: Boston, MA, USA |
![]() ![]() ![]() ![]() "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 |
![]() ![]() ![]() ![]() ***off topic post*** |
Maniac (V) Inmate From: Boston, MA, USA |
![]() ![]() ![]() ![]() All I can recommend is BBEdit. It's my true love for text editing and I've never had cause to stray... |