Re: [Flashcoders] .curveTo question

2006-03-06 Thread Tom Rhodes
curveTo takes 4 args, not 2. have a look in the help for curveTo, you 
need to specify the control points and the anchor points...


___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] .curveTo question

2006-03-06 Thread Scott Hyndman
I believe the curveTo() method take four arguments. Anchor coords and control 
coords. Just something I noticed offhand. I haven't tested the code.

Scott


-Original Message-
From:   [EMAIL PROTECTED] on behalf of murder design
Sent:   Mon 3/6/2006 12:32 PM
To: Flashcoders mailing list; Flashnewbie Mailing List
Cc: 
Subject:[Flashcoders] .curveTo question
i am trying to draw a rectangle, with only three out of four curves. the
rectangle has only one straight edge, the top right. by my calculations, the
rectangle should be 50 pixels high, and 150 wide. for some reason, this code
produces a weird polygon with no curves. any ideas?

function drawBar(xx, yy) {
 _root.createEmptyMovieClip(bar, 1);
 with(bar) {
  beginFill(myMenuColors[0], 100);
  moveTo(15, 0);
  lineTo(150, 0);
  lineTo(150, 35);
  curveTo(135, 50);
  lineTo(15, 50);
  curveTo(0, 35);
  lineTo(0, 15);
  curveTo(15, 0);
  endFill();
  _x = xx;
  _y = yy;
 }
}

regards,
murderd
___
Flashcoders@chattyfig.figleaf.com
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



___
Flashcoders@chattyfig.figleaf.com
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

RE: [Flashcoders] .curveTo question

2006-03-06 Thread Scott Hyndman
Oops, I should have read this reply first.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Tom Rhodes
Sent:   Mon 3/6/2006 12:41 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] .curveTo question
curveTo takes 4 args, not 2. have a look in the help for curveTo, you 
need to specify the control points and the anchor points...

___
Flashcoders@chattyfig.figleaf.com
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



___
Flashcoders@chattyfig.figleaf.com
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