Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Lines



ok, this is the first time that i am using flash. i am bouilding a person(stick person). and i want to joints to stay to gether and the length of the limbs to stay the same. so, can any one help me.



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 03-13-2004, 06:28 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

How To Find Number Of Lines Of Dynamic Text...and How Many Lines In Textfield
is there any way of finding out how many characters will fit in a dynamic textfield?

I have a textfield that is dynamically loaded with text. Sometimes the text is long and i need scroll buttons, but when the text is short i would like not display the scroll buttons.

How can i figure out if text is short enough not to display the scroll buttons?

oh..to make it even more complicated; the font of the text is not always the same. I use textformatting to display header-like lines in the textfield.

Bad Images - Straight Lines Are Jagged Lines - Why?
Hello -

Wondering if anyone had a solution --- I have some images for a portfolio - almost all of them have a diagonal line that's supposed to look straight, and in flash it's looking jagged and wiggly.

I began with 300 dpi images - saved them to the proper size, no compression, saved PNG's, then imported to Flash with lossless (jpg,png) setting, created Graphic Symbol with all graphic information in the upper left quadrant, and it is in an even space on the stage (no 113.4, but 113.0)....

I did a lot of research to make sure I got the best quality images & have taken all of these steps and it's still coming out crappy....

Any ideas? Much appreciated...

Some Problems Drawing Lines Over Other Lines...
Hi.
I'm designing a character for a movie I'm gonna make, but I'm having some trouble. I recently decided to change the colors of the lines I used, so I switched them around a bit to match the fills but some of the lines I changed the color of now overlap the lines that are supposed to be in front. I tried to draw the 'good' color over them again but at the moment I release the button the lines I draw disappear again and the others overlap them. Any help? I'm using mx 2004.

Thanks in advance

Lines, Lines, Lines....and Their Movement...
How do i make a line to move, grow, shrink, follow a path...i thought about masking but i believe there must be an easier way of doing it via actionscript...am i right?

please help...
Thanx a lot for your time...

:eek:

Draw Lines By Mouse Drag And Erase Same Lines By Mouse Click.
Put the following script on frame ..



var i=0;
var sxcord;
var sycord;
var excord;
var eycord;
onMouseDown=function(){
i++;
sxcord=_xmouse;
sycord=_ymouse;
createEmptyMovieClip("temp_mc", 20);
onMouseMove=function()
{
temp_mc.clear();
temp_mc.lineStyle(1, 0xff0000);
temp_mc.moveTo(sxcord, sycord);
temp_mc.lineTo(_xmouse, _ymouse);
temp_mc.lineStyle(6, 65280);
temp_mc.lineTo(_xmouse + 0.500000, _ymouse);
temp_mc.moveTo(sxcord, sycord);
temp_mc.lineTo(sxcord + 0.500000, sycord);
}



}
onMouseUp=function(){
temp_mc.clear();
onMouseMove=null;
excord=_xmouse;
eycord=_ymouse;
createEmptyMovieClip("line"+i, i)
with (eval("line"+i)){
lineStyle (1, 0x0093DD, 100); // this is the colour of the final line.
moveTo (sxcord, sycord);
lineTo (excord, eycord);
endFill();}
eval("line"+i).onPress=function(){
trace(this._name)
removeMovieClip(this._name)


}



}
//++++++++++++++++++++++++++++++++++++++++++++++++++ +=

Enjoy !!!

Newbie: Actionscript Long Lines Don't Wrap How To Break Long AS Lines?
Newbie question,
I'm writing .htmltext and have very long lines in my ActionScript panel I want to be able to
wrap the lines so I can read them without side scrolling. It's dumb but how do I wrap the
AS lines without starting an new line like I had entered a ";"

Thanks,

Lines... Yea I Know
i have seen an example of changing a line (mc) in flash to go from (x1,y1,x2,y2) but i cant find it when i need it. If some one could post the code please! mudgett

Lines
Hey, how can i do wide lines, with diferent alpha values, like the ones made in a lots of intros, but i think they are made using as, because they move from one side to other and they can be one in front the other, hope you catch the idea!

Lines.
how do i make a line transparent? so when i do guide layer it wont show the path?

thanks

Lines Following
hey guy please, really need your help. How do i make a line follow a path while it´s growing. I´ve tried a million times with the guided layer, but it does not work. please need help. thank you very much

Lines, Lines, Lines...
okay ive kinda worked out what i gotta do, but am still having problems. all i want to do is to set the start and end points of a straight line to certain objects.

ive tried two ways.

dynamically creating a empty MC... and setting up the parameters from there .. eg..


Code:
onClipEvent(load) {
_root.createEmptyMovieClip( "myLine", 8 );
}
onClipEvent(enterFrame) {
with ( _root.myLine ){
lineStyle( 0, 0x000000, 100 );
moveTo( _root.homeagain._x, _root.homeagain._y );
lineTo(_root.A01._x, _root.A01._y );
}
}

this does what i want, bar from two things. the line is not updated it merely replicates itself over and over, following "A01"'s position.

the second way i tried was pyhsically creating a MC of a line (0,0 to 100,100) then using attachMovie. this kinda worked but i can only get it working for a single line. i can make the amount i need using a for loop, but as the variables that im using are inside a function, i dont know how to refer to them with the new dynamically made lines.

also this method seems leave my lines not quite reaching their start and end points.

to be honest i really want to use the first way as it uses MX's drawing tools rather than using library elements.

all i need to do is to create 6 lines using the above code that all fix to one point, but the other ends attach to seperate objects.

i hope all this makes sense..

any guidance would be greatly appreciated..!!

? O----o Dot To Dot Lines ?
I've been struggling with this one and basically I haven't a clue !!

If I have three points on one side and three opposite.. and I want to join the opposing dots together using a line ..so when I click one dot then another dot a line appears between ! How do I do it ??

Need help !!

Thanks..

Lines Lines Lines
this might be a daft Q. but Is there a way to make lines thinner than a hairline?
The original file is exported from illustrator, when imported to flash the lines are thicker.
I want fine lines -
thanks

Lines
Alright, I'm trying to put lines in my movie that move accross the screen and fade out (like this: http://www.eye4u.com/showroom/impress/). However, I'm having the hardest time. I draw lines, convert them to symbols (graphic) but then everything gets messed up. Could someone please help or point me in the direction of help.

Thanks

Lines?
I am trying to draw a grid with actionscript 5 columns 4 rows, can anyone point me in the right direction for drawing lines with actionscript?

Thanks

Lines
how can i get a line to follow a certain path? I dont want it to go in a straight line, im on about the line curving round a corner and such the like. See what im asking?

Lines
I know dis aint actionscript problem, but im drawing some lines in me movie, and i thought they're supposed to vector graphics, but i tell ya the quality is terrible they are all pixelly and looking horrible, not wat im expecting, anyone know why this is happening? As it doesnt look very proffesional, u get me
BuBBaLee

Lines..?*
hello friends

just a quicky... how the hell do people get the digonal line effect.. for there backgrounds?.. i have seen this on so many sites for example on the home page here:

http://www.3d-sign.com/3d-sign/

thanks

Outside The Lines
If I have a tweened object that moves outside of the documents dimensions, is there a way for it to be viewed outside the document's boundaries in an html document? I am trying to get around the "cache" issue regarding frequent updates of the site. I have this page www.mbcc.net/newhome.html (how I want it to look) all in Flash. But I need to put all things that need to be updated weekly in html so frequent visitors won't have to clear their cache to view the updates. So, I want the sub menu that slides out from the side to be viewed outside the main menu's dimensions over the html text. Do-able? Or not?

Tom

Lines?
hi, a while back somebody from flashkit helped me draw a line through two points for a project. so now i decide to come back and work on it a little more...

but the problem is that i need to extend the line, so that it starts on one point and passes through another point and keeps going...

here is the coding i have so far



Code:
this.createEmptyMovieClip("Aline", 111);
_root.Aline.lineStyle(2, 0xFFFFFF);
_root.Aline.moveTo(_root.pointA._x, _root.pointA._y);
_root.Aline.lineTo(_root.pointC._x, _root.pointC._y);

Lines Between Mc:s
Hi guys...
I want to draw a line between two movieclips, and cant seem to get the x and y coordinates to work properly...

Anybody got a good script for this?

Lines
hey guys, i'm new to flash and I feel really dumb asking this but..how to you bend the lines after you draw them on flash? I just can't figure it out :(

Lines
ok, this is the first time that i am using flash. i am bouilding a person(stick person). and i want to joints to stay to gether and the length of the limbs to stay the same. so, can any one help me.

[FMX] LINES Help
Hi there!

Does anybody know what methods should I use creating a game such as Lines. The biggest problem is that I don't know what AS to write to check when the 5 or more bubbles are in line and when they must dissapear. How I can do this? Any help? Thanks!

Lines In MX
Can anyone tell me of direct me to a tutorial on how to draw lines in MX. I want to draw a square or a rectangle. I would prefer to use actionscript, but a tween would be ok. Thanks.

Lines
How do you guys get it so that like lines move around and seem to "grow" or get longer and move. When i try it just seems to move the line not expand on it. A good example of what i mean is www.2advanced.com

Thanks for any help in advance

What Do These Lines Do?
what does the below code do?:
for (i=0; i<10; i++) {
_root.i.loadmovie("4.swf")
}

Help With A Few Lines Of AS
Hello everyone,

I was wondering if someone could take a look at this for me. (See attached) It is a mask effect that follows the mouse. I did not make the file, I got it from somewhere long ago. (Not sure where). Anyways, If I try to export the file using Flash 7 - AS 2.0 it won't work. If I export it as AS 1.0 it works so I am assuming the AS needs to be updated however I don't know how to do this.

There are only a few lines of code so I hope someone can take a look at it for me. I am using Flash MX 2004 Professional.
Thanks a lot and Happy Holidays!

Mark

[FMX] LINES Help
Hi there!

Does anybody know what methods should I use creating a game such as Lines. The biggest problem is that I don't know what AS to write to check when the 5 or more bubbles are in line and when they must dissapear. How I can do this? Any help? Thanks!

Lines
How do you guys get it so that like lines move around and seem to "grow" or get longer and move. When i try it just seems to move the line not expand on it. A good example of what i mean is www.2advanced.com

Thanks for any help in advance

Lines
hey,
I am currently using the lineto and curveto functions with flash.
What I need to know is, if I make a new line, how would I refer to it in code?


ActionScript Code:
this.onLoad = function(){
this.clear();
this.lineStyle (3, 0x003399, 100);
this.moveTo (100, 300);
this.curveTo(0, 0, 200, 200)
}



that's my code, now what I want to do is be able to make an if statement with it, so how would I call to it?

Lines
Can somebody explain me how was this done?

http://www.wembley.ro/eng/home.html

I know that is not difficult to make it on flash. there are some layers and lots of lines. Maybe somebody has an idea about a tutorial.
Thanks.

Lines ...
Just surfing through the VW Touareg website and I´d like to know how the creators always made the illustrated strokes of the image. E.g. in this .swf? It is simply done by lines (pen tool) in flash or any other method?
THX for help ...

Textbox Lines
I am creating a text box in my flash and i want to add text in it. I have followd the scroll button tutorial, and i need to add the text in the ation area. Here is the text thing.

onClipEvent (load) {
newstext = "insert text";
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
}

How do i goto the next line in this if I want to have a word a line like this?:

Hello
Yes
No
... But it comes comes out with:

Hello Yes No.

Dinamic Lines
hi,

how do i draw a line between two dinamic points?
the line must move and change size according to them.

thanks

How Do I Find Out How Many Lines?
I want to find out how many lines are in a text field, so I can scroll an appropriate amount.


EG:

scrolledAmount/scrollPossibleAmount * linesOfText

How can I find out what linesOfText equals?

Animated Lines?
I want to create an effect that will make it look as though lines are being drawn as the surfer views the site...I tried doing it using my limited flash knowledge with motion tweens and such but with no luck...can someone please help me with how to create something that will look like this...?

Thanks,

James

Overlaping Lines
Hi,
in my application i have two lines.both the lines can be moved around.
can anyone of you suggest me a way such that when any one line overlaps the other then it should provide a jumper sort of thing at the intersect point.
regards
Jayant

Drawing Lines
Hi,
i am building an application in which i have to draw a line between two points.The starting point is fixed,whereas the end point of the line is not fixed.the line is always horizontal.

what i have done is that i have made a movie clip of a line.
i increase the width of the line till it reaches the end point.but when i increase the width,the height of the movie clip also increases and the line appears thicker.
can anyone help me as to how i can overcome this problem.
regards
Jayant Chaudhuri

Problem With Lines
Hello:

I have several ponits in a map that i need to connect them with lines

once i click on a point it becomes dragable until it is droped on to another place.
the problem i have is to keep the moving point joined with a line to the place where it was until it is fixed on another place.
How can i keep the moving point joined with a line with its first position?

i've tried with a line changing its height and scale but it works only if it starts form a 0,0 values for x_position and y_position, it doesn't works well if it is placed in another place

:-)

antibiotico01@hotmail.com

PROBLEM WITH LINES
TO ALL GURUS, NEED YOUR HELP!
********************************************
Please check Hazelnut81 thread:
How to prevent Flickering??

Hazelnut81, i used your code n it works fine, without the flickering, the only thing i couldnt solve was the lenght of the line, sometimes it gets bigger, in the code below i think you control the lenght:

if (_root.v_line2._width < r) {
_root.v_line2._width = _root.v_line2._width + /:speed;

} else if (_root.v_line2._width > r) {
_root.v_line2._width = r;
}

in your code what is the code "/:speed"?
can't figure it out, please HELP!!

Here's my code:
http://www.geocities.com/antibiotico...0000/lines.gif
http://www.geocities.com/antibiotico...0000/lines.swf
http://www.geocities.com/antibiotico...0000/lines.fla

BIG PROBLEM
somehow the swf don't work on the net, don't know if its geocities server or what, send me a mail to see if we can solve this.

How To Animation Lines
How do i make a line like crawl from one point, to another point, without the end of the line trailing behind, like a line that is deing drawn by a "ghost", thx for the replies.

Jason

Number Of Lines
Hi
is it posible to get the number of lines from a dynamic or input text field?

thank's

Che

Diagonal Lines...I....Just....Can't....Do IT
Ok, this has been annoying me for a while and i'm coming to the point in my design process where i'm going to HAVE to get this done, but still have not figured it out.

It's how to get diagonal lines in graphics...in Flash...that are clean and not "jaggy".

I just can't figure it out in Flash and in Photoshop i've done everything from skewing a rectangle to using the grid to draw a perfect path & then highlighting the path and copying the image to a PNG file.

Regardless, the diagonals are "jaggy" or not perfectly straight...or both.

Here's an example I found of someone who IS able to do it:

http://www.flashkit.com/gallery/Inte...60/index.shtml

Can anyone here break my thick mental block on what seems to me, something that should be a simple procedure?

How To Get Lines BEING DRAWN ?
I want a rectangular being drawn at my site, I mean the visitor should see that the lines are drawn (becoming longer, takuing a corner of 90 degrees etc.). I'm completely new to SWish. Is there anyone who could give me a hand ?
Kippie

Gradient On Lines?
Can You apply A Gradient to A line in Flash? If so, How?

Moving Lines
I have written a script where 4 moving crosses are joined by 4 lines. my problem is that the lines join up with cross1 perfectly (cross1 to cross2 and cross4 to cross1) but not with any others though I cannot see why. If I stop the crosses from moving the lines seem to join nicely.
Also, occasionally a cross gets trapped along one of the edges and again I cant see why. Help please.

frame1:
xspeed=new Array();
yspeed=new Array();
currentX=new Array();
currentY=new Array();
cross=new Array();
line=new Array();
topedge=20;
bottomedge=380;
leftedge=20;
rightedge=530;
number_cross=4;
for(i=1;i<=number_cross;i++) {
xspeed[i]=Math.random()*5;
yspeed[i]=Math.random()*5;
cross[i]="cross" add Number(i);
line[i]="line" add Number(i);
}

frame2:
for (i=1; i<=number_cross; i++) {
currentX[i] = getProperty(cross[i], _x);
currentY[i] = getProperty(cross[i], _y);
currentX[i] += xspeed[i];
currentY[i] += yspeed[i];
setProperty(cross[i], _x, currentX[i]);
setProperty(cross[i], _y, currentY[i]);
setProperty (line[i], _x, currentX[i]);
setProperty (line[i], _y, currentY[i]);
if (i == number_cross) {i = 0}
destX = getProperty(cross[i+1], _x);
destY = getProperty(cross[i+1], _y);
if (i == 0) {i = number_cross}
setProperty (line[i], _xscale, destX-currentX[i]);
setProperty (line[i], _yscale, destY-currentY[i]);
if (currentX[i]>rightedge) {
currentX[i] = rightedge;
xspeed[i] = -xspeed[i];
}
if (currentX[i]<leftedge) {
currentX[i] = leftedge;
xspeed[i] = -xspeed[i];
}
if (currentY[i]<topedge) {
currentY[i] = topedge;
yspeed[i] = -yspeed[i];
}
if (currentY[i]>bottomedge) {
currentY[i] = bottomedge;
yspeed[i] = -yspeed[i];
}

}
frame3:
gotoAndPlay (2);

I can send the source fla to anyone that fancies helping.

Many thanks

DAN
[Edited by danturv on 02-13-2002 at 06:06 AM]

Blinking Lines...
Excuse me for asking a (probably, at least) stupid question...but I'm extremely new to Flash (using version 4), and am having a bit of trouble.

Basically, I want the word "welcome" to jump from the lower left to the lower right, and then have lots of long, white lines blink in and out of the middle of the screen.
So far, I can get the welcome word, and the white lines in...but I can't get them to blink.

Thanks in advance; all help is greatly appretiated!

-mythren

Thick Lines?
Is there any way to make the lines you draw in Flash thicker? (like in photoshop)


thanks.

Copyright © 2005-08 www.BigResource.com, All rights reserved