dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: curves

  1. #1
    Senior Member
    Join Date
    Jun 2002
    Location
    Ljubljana, Slovenija
    Posts
    168

    curves

    How can i draw a curve with actionscript???

  2. #2
    Bob (the singing sock)
    Join Date
    Aug 2000
    Location
    Århus, Denmark
    Posts
    472
    _root.createEmptyMovieClip( "circle", 1 );
    with ( _root.circle )
    {
    lineStyle( 0, 0x0000FF, 100 );
    // beginFill( 0xFF0000 );
    moveTo( 500, 500 );
    curveTo( 600, 500, 600, 400 );
    curveTo( 600, 300, 500, 300 );
    // curveTo( 400, 300, 400, 400 );
    // curveTo( 400, 500, 500, 500 );
    // endFill();
    }

  3. #3
    Senior Member
    Join Date
    Jun 2002
    Location
    Ljubljana, Slovenija
    Posts
    168
    thanks a lot

    "lineStyle" was all i needed

  4. #4
    half as fun, double the price senocular's Avatar
    Join Date
    Feb 2002
    Location
    San Francisco, CA (USA)
    Posts
    4,361
    also, bear in mind if you just want a fill, you dont need to use lineStyle AND if you ever use clear(), you would need to re-declare your linestyle as it too would be ... "cleared."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center