Mailing List
Home
Forum Home
Flash Pro
Subjects
Subject: RE: Firework Effect
Web Service Results
Flash Interface with 10mb xml file
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash MX 2004 Sucks
Reading and displaying RSS feeds in Flash MX
Flash and QuickTime VR
Textfield prototype question
XML to Object help
Order of events per frame
MX2004 Dataset itemClassName
memory management removeMovieClip /
Event Dispatcher between classes
Help: MX 2004 How to script a print button to print the entire sli
ScrollPane component doesn 't auto update
setInterval bug identified and fixed
setInterval bug identified and fixed
Listener Object 's best practice
 
RE: [Flashnewbie] Easy way to draw a rectangle with cut corners u
   sing AS?

RE: [Flashnewbie] Easy way to draw a rectangle with cut corners u
   sing AS?

2004-03-03       - By Jesse Warden

 Back
"Do yall wanna go jump in da pool!?  I think we all need to go jump da
pool!"

...I love that song...

*ahem*

this.clear();
this.lineStyle(0, 0x000000);
this.moveTo(0, 0);
var w = 200;
var h = 300;
var cut = 12;
this.lineTo(w - cut, 0);
this.lineTo(w, cut);
this.lineTo(w, h);
this.lineTo(cut, h);
this.lineTo(0, h - cut);
this.lineTo(0, 0);
this.endFill();


-- --Original Message-- --
From: thotskee [mailto:thotskee@(protected)]
Sent: Wednesday, March 03, 2004 01:24 PM
To: flashnewbie@(protected)
Subject: [Flashnewbie] Easy way to draw a rectangle with cut corners using
AS?


Greetings,

Is there an easy way to figure out how to draw a shape such as with
actionscript:
-- ---- ---- ------
|                    \
|                    |
|                    |
|                    |
|                    |
|                    |
|                    |
\                    |
 -- ---- ---- ---- --

kinda ruff but im sure you get the idea....

thanks

thotskee


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=436302518-03032004><FONT face=Arial color=#0000ff size=2>"Do
yall wanna go jump in da pool!?&nbsp; I think we all need to go jump da
pool!"</FONT></SPAN></DIV>
<DIV><SPAN class=436302518-03032004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=436302518-03032004><FONT face=Arial color=#0000ff size=2>...I
love that song...</FONT></SPAN></DIV>
<DIV><SPAN class=436302518-03032004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=436302518-03032004><FONT face=Arial color=#0000ff
size=2>*ahem*</FONT></SPAN></DIV>
<DIV><SPAN class=436302518-03032004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=436302518-03032004><FONT face=Arial color=#0000ff
size=2>this.clear();<BR>this.lineStyle(0, 0x000000);<BR>this.moveTo(0,
0);<BR>var w = 200;<BR>var h = 300;<BR>var cut = 12;<BR>this.lineTo(w - cut,
0);<BR>this.lineTo(w, cut);<BR>this.lineTo(w, h);<BR>this.lineTo(cut,
h);<BR>this.lineTo(0, h - cut);<BR>this.lineTo(0,
0);<BR>this.endFill();</FONT></SPAN></DIV>
<DIV><SPAN class=436302518-03032004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
 <DIV></DIV>
 <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
 face=Tahoma size=2>-- --Original Message-- --<BR><B>From:</B> thotskee
 [mailto:thotskee@(protected)] <BR><B>Sent:</B> Wednesday, March 03, 2004
 01:24 PM<BR><B>To:</B> flashnewbie@(protected)<BR><B>Subject:</B>
 [Flashnewbie] Easy way to draw a rectangle with cut corners using
 AS?<BR><BR></FONT></DIV>
 <DIV><FONT face=Arial size=2>Greetings,</FONT></DIV>
 <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
 <DIV><FONT face=Arial size=2>Is there an easy way to figure out how to draw a
 shape such as with actionscript:</FONT></DIV>
 <DIV><FONT face=Arial size=2>&nbsp;-- ---- ---- ------</FONT></DIV>
 <DIV><FONT face=Arial
 size=2>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 \</FONT></DIV>
 <DIV><FONT face=Arial
 size=2>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 |</FONT></DIV>
 <DIV><FONT face=Arial
 size=2>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 |</FONT></DIV>
 <DIV><FONT face=Arial
 size=2>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 |</FONT></DIV>
 <DIV><FONT face=Arial
 size=2>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 |</FONT></DIV>
 <DIV>
 <DIV><FONT face=Arial
 size=2>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 |</FONT></DIV>
 <DIV>
 <DIV><FONT face=Arial
 size=2>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 |</FONT></DIV>
 <DIV><FONT face=Arial
 size=2>\&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 |</FONT></DIV>
 <DIV><FONT face=Arial size=2>&nbsp; -- ---- ---- ---- --</FONT></DIV>
 <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
 <DIV><FONT face=Arial size=2>kinda ruff but im sure you get the
 idea....</FONT></DIV>
 <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
 <DIV><FONT face=Arial size=2>thanks</FONT></DIV>
 <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
 <DIV><FONT face=Arial
size=2>thotskee</FONT></DIV></DIV></DIV></BLOCKQUOTE></BODY></HTML>