1 Replies - 2610 Views - Last Post: 12 April 2014 - 07:57 AM

#1 LynnS  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 12-April 14

Flash CS6 ActionsScript3

Posted 12 April 2014 - 07:41 AM

Im drawing an irregular shape - and error message comes up TypeError: Error #1006: lineTo is not a function.
at Untitled_fla::MainTimeline/frame1() - cant identify why? - Can you help?

Heres my code:
var mcMortar:MovieClip = new MovieClip();
mcMortar.graphics.lineStyle(3, 0xe81f75,0.75);
mcMortar.graphics.beginFill(0xb0b0b0, 0.5);
mcMortar.graphics.moveTo(512,235);
mcMortar.graphics.lineTo(716.8,307.2);
mcMortar.graphics.moveTo(614.4,320); 
mcMortar.lineTo(614.4,384);
mcMortar.curveTo(560,384,512,420);
mcMortar.curveTo(459,384,409.6,384);
mcMortar.lineTo(380,320);
mcMortar.lineTo(307.2,307.2);
mcMortar.graphics.endFill();
addChild(mcMortar);

This post has been edited by macosxnerd101: 14 April 2014 - 06:31 AM
Reason for edit:: Added code tags and moved to Flash


Is This A Good Question/Topic? 0
  • +

Replies To: Flash CS6 ActionsScript3

#2 LynnS  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 12-April 14

Re: Flash CS6 ActionsScript3

Posted 12 April 2014 - 07:57 AM

Just found my problem - sorry to have troubled you :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1