PDA

View Full Version : Drawing A Line


Kaspersky
06-21-2008, 04:52 PM
this.createEmptyMovieClip("line_mc", 1);
with(line_mc){
lineStyle(5, 0x000000, 50, true, "normal", "square", "miter", 1);
moveTo(0, 0);
lineTo(150, 0);
_x=100;
_y=150;
}

By using the lineStyle() we tell Flash that we are going to draw a line, but of course that's not the only thing we tell Flash to do.

There are 8 parameters in this method. The first is the thickness. The second is the color in hex format. The third is the transparency. The fourth is the pixelHinting on/off which improves the rendering of the stroke on some situations. Normal is used for scaling. Other values are none, horizontal, and vertical. It influences the way the stroke reacts to scaling. Square is a value used to specify how the end of the stroke should be rendered, other values are round, and none. Miter is a value used to render the stroke joints. Other values are round, and bevel. Finally 1 is a value that applys only if the preceding parameter is set to miter. The value is used to cut off the angle of the joint. (Note: if the thickness is set to 1, the five last parameters will have no effects on the line created)

Cruzr
06-22-2008, 02:19 AM
Can't you just create a new .fla file and draw it in 2 seconds o_0

Oops, this is in AS...sorry..

TopHatMan
06-22-2008, 09:48 PM
mkay, so this is a tutorial in flash to let you make an application to draw lines?

Near
06-23-2008, 12:02 AM
OMG xD Srry Spam Post But When I Saw The Name I Started To Laugh
"Drawing A Line" xD Omg Srry Srry HAHAHAHAha. Hehe Ok Im Done Lozl

Cruzr
06-24-2008, 05:00 PM
OMG xD Srry Spam Post But When I Saw The Name I Started To Laugh
"Drawing A Line" xD Omg Srry Srry HAHAHAHAha. Hehe Ok Im Done Lozl

learn action script fool.

GuneryMan
06-24-2008, 10:41 PM
now this is a spam so learn wat to put ok and no affence

Vevevicamp2
06-25-2008, 08:38 PM
now this is a spam so learn wat to put ok and no affence

Learn what spam is.

Kaspersky
07-03-2008, 10:36 PM
Learn what spam is.

Take your own advice.

Guys, if you're going to eat **** then don't post.

Near
07-05-2008, 03:52 AM
learn action script fool.

...I Havent The Time Nor The Need To Learn ActionScripting.

now this is a spam so learn wat to put ok and no affence

..What I Said Was Spam. I Didnt Post Anything That Was Relevent To This
Threads Title. What I Am Posting Now Is Also Spam Because Im Still
Off Topic. You Haven't A Clue What Spam Is.

xfinalx
07-05-2008, 02:52 PM
...I Havent The Time Nor The Need To Learn ActionScripting.



..What I Said Was Spam. I Didnt Post Anything That Was Relevent To This
Threads Title. What I Am Posting Now Is Also Spam Because Im Still
Off Topic. You Haven't A Clue What Spam Is.
He was talking (strangely) to kaspersky.

Near
07-05-2008, 05:24 PM
Which Part Are You Talking About The Action
Script Part Where He Quoted Me And Told Me To Learn
Action Scripting Or The Part About Spam.
Because They Were All Directed To Me I Believe

BENJE
07-08-2008, 03:05 PM
learn how to not do spam XD

Kaspersky
07-09-2008, 01:34 AM
learn how to not do spam XD

Then don't.

If anyone else decides to spam and **** me off, there will be blood. I'll get fm or any other @* to kb you all for life.

BENJE
07-10-2008, 02:13 AM
your crazy lol.

sNip3d
07-11-2008, 03:23 PM
your crazy lol.

If you have nothing to contribute to the thread, then don't post at all.

TopHatMan
07-12-2008, 02:27 AM
Still haven't gotten an answer on what this does >_>

Kaspersky
07-12-2008, 04:54 PM
Creates a line on Flash solely using actionscript.

devilmayroy
07-13-2008, 06:10 PM
this is how ya spam fools

gunerysergent
07-16-2008, 08:27 PM
this is how ya spam fools

yo dog this is a spam and im your friend and all but dont do this

Kaspersky
07-23-2008, 01:34 AM
yo dog this is a spam and im your friend and all but dont do this

sdfu ****.

kbai

vSkyzv
07-23-2008, 12:36 PM
sdfu ****.

kbai
Don't argue with people who have the intelligence of my breakfast.

Kaspersky
07-23-2008, 02:56 PM
What kind of breakfast is it?

Batman19
07-25-2008, 03:35 PM
lol this forums is tooo funny
Keep going on everyone

Kaspersky
07-27-2008, 02:10 PM
This forum is funny as hell when tards like you do that they do. Is spam the right word? Yeah, it is.