PDA

View Full Version : drawing simple shapes with actionscript?


onlyrobot
07-12-2002, 02:02 AM
sorry for what is probably a ridiculous question but this is the newbies forum...so...

i'm just looking for a way to draw simple shapes with actionscript so that i can, in the future, automate it with an algorithm (to do stuff like fractals, etc).

let's say, for instance, i wanted to draw a triangle and the three x,y coordinates were generated mathematically. how could i have the script draw it?

thanks so much...

noah

CyanBlue
07-12-2002, 02:06 AM
MovieClip.lineTo in FMX can do the job...
If it needs to be done in F5, I think you will have to duplicate lines and move them around to shape the triangle...
Good luck...