Skip navigation
Currently Being Moderated

Trouble with line drawing

Mar 29, 2012 7:30 PM

Tags: #problem #flash #action_script_3 #ac3 #actionscript3

Can somebody help me figure out why this isn't drawing a line? The code is in frame 1 by itself, and I'm not getting any errors.

 

var brownLineDraw:Shape = new Shape();

brownLineDraw.graphics.lineStyle(12, 0x352000, 1);

brownLineDraw.graphics.moveTo(100, 100);

brownLineDraw.graphics.lineTo(200, 200);

 

Thanks!

 
Replies
  • Currently Being Moderated
    Mar 29, 2012 8:04 PM   in reply to Razzi_A

    By default a movieclip will loop. You just need to put a stop(); in the frame script (anywhere) to tell Flash not to run the code over and over.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points