Guess my drawing classes are capable of doing this in easyest way.
try this:
import com.jR.Drawing.Polygon;
var poly:Polygon = new Polygon(_root, 1);
poly.join = false;
for(var i:Number=0; i<yourPoints.length; i++){
poly.addPoint(yourPoints[i].x, yourPoints[i].y);
}
poly.lineStyle(1, 0xFF0000);
poly.drawOutline();
this is just a quick code without testing but it should work this way.
you can get this an all connected classes ar www.mediaverk.lv/asd
2006/3/24, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> Hi,
> i need to draw a graph made of a series of points .
> I Know the x and y values of every point only at run-time because i take
> them from a cgi script.
>
> I tryed creating a movieclip at run-time in a for statement .but at the
> end
> i view only oone point...
>
> the code is this one:
>
>
> for(i=0;i<xA.size();i++)
> {
> //create a new movie clip;
> //draw a square
> }
>
> can be because in my code the movie_clip has always the same name?
>
> Thanks,Riccardo
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com