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




Line Effects?



I would like to recreate the kind of line effects shown on the Flash banner at http://myhome.prodigy.net/shopping/. Any help or advice would be appreciated.
thank you...
Patty



FlashKit > Flash Help > Flash ActionScript
Posted on: 02-05-2002, 06:55 PM


View Complete Forum Thread with Replies

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

Text Effects Line By Line
Hi,

How can I make the text of my website to appear line by line, each line changing it´s alpha to appear.

If the line make a small movement would be better. Something like falling from 10 pixels...

Something like this effect, but with the lines of the text instead of the letters...

thanks

Line Drawing & Masking Effects - How To's
I am looking for some opinions on the best way to do the effects on the left side of this page - the way the man is brought in (looks like he is drawn) then filled in (as vector art) and then the line moves over him to bring him in as a photo.

I have some ideas of how to do this -
shape tweens for the outline drawing and then masks to make the transition into the raster art.

Does anyone think or know there is a better way?


<b>The page </b> http://www.tommyshanesteiner.com/news.htm


thanks

Time Line Effects Inside MovieClips
I placed some components inside a movie clip after animating them using Time Line Effects. Once inside the movie clip they don't work. Could somebody help me?
Thanks in advance.

What's A Grey Line Around An Instance? I Can't Reduce Alpha In Effects
pannel. I turned an imported gif into a graphic, when i drag it onto the stage it has a grey line around it and i cant reduce the alpha settings. Any suggestions?

Streaming Sound Effects Donot Stream Correctly Over Time Line?
Hi,

I have a question regarding streaming sound effects happening over your animated movie time line. I must be doing something screwy!

This is fustrating. When I add another streaming sound file, it effects the other sounds in my time line that are supposed to happen at that specific time.

When I add a sound effect over a certain part of my main timeline (say a boom sound) I want it to happen when 2 objects collide. I can do this. Pretty simple stuff.

However, It works fine when its by itself, but when I when I add other streaming sound effect over my same movie somewhere else on the main time line it changes the sound so my original "Boom" sound does not play over where it intitially played before in time with the colliding objects. It is off and and it is not in time.

What can I do,
Please help!!!

The Flash Anthology: Cool Effects & Practical ActionScript - Chapter 3: Animation Effects
This is an article discussion thread for discussing the SitePoint article, "The Flash Anthology: Cool Effects & Practical ActionScript - Chapter 3: Animation Effects"

The Flash Anthology: Cool Effects & Practical ActionScript - Chapter 5: Sound Effects
This is an article discussion thread for discussing the SitePoint article, "The Flash Anthology: Cool Effects & Practical ActionScript - Chapter 5: Sound Effects"

The Flash Anthology: Cool Effects &amp; Practical ActionScript - Chapter 5: Sound Effects
This is an article discussion thread for discussing the SitePoint article, "The Flash Anthology: Cool Effects & Practical ActionScript - Chapter 5: Sound Effects"

Bouncing Effects And Elastics Effects
i read some tutorials about some clips that includes bouncing or elastic effects, the problem is i can't still figure out some axnscripts such as MovieClip._x*=100 or MovieClip._x-=100, what does these syntax mean anyway?

can i have some tutorial like a dribbling ball that bounces a lot then settles down after a few moment?

[MX04] Dynamically Created Textbox Won't Go To Next Line When Text Exceeds First Line
Hey all,

I've dynamically created a textbox and then applied a new text format with the following code:


Code:
{
createTextField('welcome',4,-100,-25,160,100);

welc = new TextFormat()
welc.font = "Sydnie";
welc.selectable = false;
welc.size = 12;
welc.color = 0xfffafa;
welc.multiline = true;

welcome.text ="Text that exceeds one line."
blackbox.welcome.setTextFormat(welc);
}
How do I make the textbox go to the next line when the first is full and not go beyond it's right border?

Thanks for your time,
Greenham.

Attach A Line To Two Movie Clips. So The Line Moves And Adjusts To The Positionning
Hey

ok I'm working on a project, I have two movie clips moving to different locations, and I want a line connecting both clips.

The line will need to adjust dynamically to the mouvement of both clips.

Can someone give me a heads up on how to accomplish such task.

If more information is needed, post areply saying so, and I will add more information about what I am trying to accomplish.

Thanks
Jean

[F8]Text/Paragraph/String - Line By Line Write Effect
howdy - ive seen some nice text effects recently, and im looking for some resource on recreating them. Ideally im after a nice function / prototype for outputting a line of dynamic text, to a textfield in a nice way, rather than just dumping it on screen. So either letter by letter, or line by line, without having to do all the rubbish faux-effects by masking and tweening.

any ideas?

cheers.

Reading Textfield Line By Line ? Selecting Multiple Textfields At Once ?
OK i need some serious help/advice !

I`m trying to make a sort of program like word , i want to have a text field , but the problem comes when i want to create like borders around each line of text and have DIFFERENT background colors for each line.
So i was thinking if i can read line by line and get get the height of each line by examining char by char for it's size and get the biggest one ( since my text may have different fonts sizes ect on a single line) and then have like BLOCKS that are behind each line and adjust their sizes accoring to the line size and change their color also.

Also another thing that I would also want to do , i want to create a table which i did , but now how do i put the table into my text ...and not just lie on top blocking text behind it ..how do i like "push" the text around it ?? ANY IDEAS would help...thats why i thought maybe create lots of textfields just stacked from top to bottom..but then i will have the problem of selecting them all at once like in a REAL word processing problem...and also if the text becomes too big it will need to "flow" into next textfield...

Is there ANYWAY to do this ??! HELP ME!!!!

THANK YOU

Multi-line Text Field Auto Line Break
When a Dynamic Multiple line text field is used in Flash CS3, it has a very annoying feature that auto inserts a line break at the end of inserted text. It also auto inserts a line break if no text is entered too.

I'm having a problem with this because the text is being saved from flash to a text file on the desktop. With every multi-line text field there's a nasty looking line break.

Any way of "turning off" this auto-line-break-at-the-end feature?

Txt File Double Spacing Off Line, Single On Line
Has anyone else seen this?

When I'm setting up a .txt file for import (the swf is v5 code, authored in MX), I'm noticing that if the .txt file has a single line break between paragraphs, this represents as a single empty line when the swf file is viewed on-line, but it shows as a double blank line when the same file is opened off-line.

Does anyone know a trick to getting imported txt files to display the same way on- and off-line?

(Or am I going mad and no one else has noticed this...)

Flash Getting PHP To Feed It A Text File Line By Line
Maybe someone can point me in the right direction.

I want Flash to access the text file, separated my newlines, that can get quite large. I want Flash to access each of those lines one by one and process them with Actionscript.

I am getting the idea that I should use PHP to open the text file and store the lines in an array. But how can I access each array element in Flash?

Does anyone have any suggestions about this? Have you seen where this has been done before?

Is It Possible To Get Data Printed To The Screen Line By Line As A Ping Does?
I have a Flash web app using AMFPHP remoting that calls a unix script that runs either a ping or a traceroute command based on some parameters I pass it.

The methods in my remoting method table for ping and traceroute are:


PHP Code:



function doLsPing($addr)
{
    $ping = shell_exec("/path/to/my/pingScript.sh " . $addr);
    return $ping;
}
    
function doLsTraceroute ($addr)
{
    $traceroute = shell_exec("/path/to/my/tracerouteScript.sh " . $addr);
    return $traceroute;





The unfortunate behavior I am getting is that the returns, naturally, just send me the completed data from the ping and traceroute in one big lump. Of course I would like to have the data returning to me line by line as the data is collected...like it would if you ran the script in a shell or terminal window.

You can see the danger in getting the one-big-lump-of-data scenario. If you ran a traceroute on an address that did not exist and say the traceroute did 30 hops then you could potentially be waiting a loooooooong time without anything printing to the screen. Plus the user, if familiar with ping and traceroute, would be expecting to see the results printing to the screen line by line as the command ran.

Now the caveat to this is, my PHP skills are nil to none, so maybe I am just missing something that I could use rather than just a 'return'.

Any help here would be most appreciated!

Make Line Movieclip Turn To Dotted Line
hey Everyone

Just wanting to know how to use actionscript to make a line dotted. I want to have a movieclip (a solid line) and when u click on it it will become a dotted line, then be able to switch it back to solid with another click.

Cheers

Reading Data From Text File Line By Line
I want to read some data from a text file into arrays.
In the text file, I have:

data = 1234567890

This works ok, but I want the text format in the text file to be:

data =
12345
67890

So after reading 'data', i will have 2 arrays.
[1,2,3,4,5] and [6,7,8,9,0]

Any idea how to go about doing this?
It will be even better if I dont need to use any variable.
Like this:

12345
67890

The main thing is just to read the text line by line and get them into arrays.
Thanks.

Line Break Or Line Feed For Dynamic Text
I am usin a textArea so now it is different than the last post about styles.
This text is dynamic and is assigned from within the Flash file it resides.
It comes from a list selection listener and I want to pre-format it with line breaks.

Since it resides in the file I will be using a textArea with HTML on to get the line breaks.
But now I can't Style it the same way with the setStyle methos

Currently I have one line is like this.

myNotes.text = "This is Line one<br>This is another Line<br>and another line";



Any help would be appreciated.

Thank you,
WBell





























Edited: 01/24/2009 at 12:49:08 AM by W_Bell

Two Objects Conected By A Dinamic Line + Physics Of The Line
Hi

I have two Movie clips, and I have to conect them with a dinamic line, like a rope. The movie clip A will be interactive with the mouse, changing X and Y positions, so the line should act like a rope.

Does anybody knows some code to do that or have a example?

Reading A Text File, Line By Line
I am using loadVar to read in a text file for processing by Actionscript.
Is it possible to just read in a portion of it (instead of the whole thing), process it and then read in some more? Specifically, can one read in up until a linefeed?

Multi-line Text Box Line Break?
I am trying to make a multiline text box do a line break. a quick example:

You run into a tree.
You found something!
It glows with a blue aura.

It is just for a simple break, if I try to do it normally, it ends up like this:

You run into a tree. You found something! It glows with a blue aura.

without a line break. Can someone please tell me what the line break command is?

Reading Text File Line By Line
Hy all

Got the following code:


Code:
var strContent:String;
function fillContent(folder:String):void
{
var arrayMenuItems:Array = new Array();
var arrayContent:Array = new Array();
var arrayNews:Array = new Array();
var myContent:URLLoader = new URLLoader();
myContent.dataFormat = URLLoaderDataFormat.TEXT;
myContent.addEventListener(Event.COMPLETE, getString);
myContent.load(new URLRequest("content/" + folder + "/_content.php"));
contentText.multiline = true;
trace("./content/" + folder + "/_content.php");
trace("MY DATA: " + myContent.data);
contentText.htmlText = strContent;
contentText.setTextFormat(format_ContentRegularText);
contentTitle.setTextFormat(format_Titles);
menuItemFont.setTextFormat(format_MenuItems);
}

function getString(e:Event):void
{
strContent = e.target.data;
}
What I actually need is to be able to read the _content.php file line by line. I'd like to store each line of the text file in an array (arrayContent). But I haven't found ANY solutions yet for this problem.

Best thanks for trying to help

Regards

Read External Txt File Line By Line...
Hi guys i am currently rushing a project on flash.
i did the project in java, C++ as well as tcl/tk
now i am doing it for actionscript.

i needed help on:
-read external text file which contains coordinates
Eg:
123,321
34,43
233,785
745,3

-i need the action script to read these coordinates and store them in an array. can anybody help me out pls.

Draw A Line Using LineTo Then Hit Test That Line
is there a way to hitTest a line drawn with the following method?



Code:
clear();
lineStyle(1, 0, 100);
moveTo(obj1._x, obj1._y);
lineTo(obj2._x, obj2._y);

perhaps turn it into a movie clip and hitTest that?

...I'm stumped here...

Read Line By Line In External Txt File?
I found the answer to this problem somewhere on these forums, and I've searched and searched, but I can't seem to find it again. =( Google has let me down as well.

The person wanted to know if there was a way to read in each line separately from an external txt file without using the crazy syntax, but the person who replied said that you could just make all the text one variable, and then break it up by newlines inside the AS code using a for loop.

Whoever can find that topic for me or figure out what methods are needed for it will be my hero. =)

Is Actionscript Processed Sequential (line By Line)?
Ok, so long story short, I have a loop that fills three different arrays. As soon as the loop finishes, on the next line, a function is called that loads dynamic images into movie clips. However, this isn't working as I thought. Instead, the function is being called at the same time as the loop is running. Therefor, the first few images don't show up and I get undefined errors. However, if I delay the function being called by 50ms, I don't get the error. This means that it is a timing problem and that flash is executing the loop and the function call at the same time.

Does anybody have any experience/advice on what or why this might be happening?

Thanks in advance.

Edit: Also, my entire movie is implemented using actionscript in the first frame of the movie.





























Edited: 07/18/2007 at 02:27:48 PM by nateyboy044

API-draw: Check If Line Intersects Another Line
It been a while and I need some help on this one...

I'm making a very simple game that lets you draw a curve by hand (using lineTo to the mouse position on mousemove) but now, I need to check wether the line intersects wiith another part of the same line (e.g. a loop)

I first used an onrollover command, and that worked, but not always because the mouse moved too fast (same with hittest with mouse). Then I pre-drawed the line in another mc, used hittest on it, and if it wasn't intersecting, draw it in the real mc. But that didn't work because it used the bounds to test. I guess the best way is to use some mathematical formula, but that would mean I have to save all my coordinates in an array...

Is there another way?

TIA

Read Text File Line By Line
Hy all

Got the following code:


Code:
var strContent:String;
function fillContent(folder:String):void
{
var arrayMenuItems:Array = new Array();
var arrayContent:Array = new Array();
var arrayNews:Array = new Array();
var myContent:URLLoader = new URLLoader();
myContent.dataFormat = URLLoaderDataFormat.TEXT;
myContent.addEventListener(Event.COMPLETE, getString);
myContent.load(new URLRequest("content/" + folder + "/_content.php"));
contentText.multiline = true;
trace("./content/" + folder + "/_content.php");
trace("MY DATA: " + myContent.data);
contentText.htmlText = strContent;
contentText.setTextFormat(format_ContentRegularText);
contentTitle.setTextFormat(format_Titles);
menuItemFont.setTextFormat(format_MenuItems);
}

function getString(e:Event):void
{
strContent = e.target.data;
}
What I actually need is to be able to read the _content.php file line by line. I'd like to store each line of the text file in an array (arrayContent). But I haven't found ANY solutions yet for this problem.

Best thanks for trying to help

Regards

API-draw: Check If Line Intersects Another Line
It been a while and I need some help on this one...

I'm making a very simple game that lets you draw a curve by hand (using lineTo to the mouse position on mousemove) but now, I need to check wether the line intersects wiith another part of the same line (e.g. a loop)

I first used an onrollover command, and that worked, but not always because the mouse moved too fast (same with hittest with mouse). Then I pre-drawed the line in another mc, used hittest on it, and if it wasn't intersecting, draw it in the real mc. But that didn't work because it used the bounds to test. I guess the best way is to use some mathematical formula, but that would mean I have to save all my coordinates in an array...

Is there another way?

TIA

AS3 - Bad Tv Effects Or Fuzzy Tv Effects?
Hey guys, how do i achieved this kind of effects .. like bad tv or displacing / distorted like this.

http://www.bbc.co.uk/switch/meta4orce/launch.shtml

Reading Code Line By Line?
Guys (and girls) im trying to write a bit of code which appears to shake an image on screen, however when i put all my _x &_y functions in to move it around it reads the whole block in one, instead of reading and DISPLAYING each line seperately... how do i force code to do it (in director Id use an 'updatestage' command) many thanks

[F8] Line Vs Line Collision Detection?
Anyone know how i can do line vs line collision detection? Using hitTest() isn't good enough as my lines are all at weird angles. I think vectors might be the solution, but i can't get tonypa's tutorials to work, any hints? Thanks,

Aldarn.

[F8] Delecting How Many Characters There Is Line By Line
ok cos no ones answering my other question
here I have to think of an alternative solution

can someone tell me is there a way to read through a textbox line by line and get how many characters there are in each line?

Line Rider Style Line
How can i do this, i would like the same usability as linerider where teh oencil tool ca be picked up or put down, and where the pencil tool foolows the cursor all the while the pencil tool is selected, please help!

Line-by-Line Text Effect
Hi,
I'm a newbie to this forum, but I'm hoping someone will know how to do the effect on this site -- www.outsellconsulting.com

The effect is in most of the sections (if you click on the left nav) --- the text slides in line-by-line. I don't think it's done with Swish, for example, but I could be wrong.

If anyone has any ideas on this, I'd appreciate it.

Draw A Line Through A Path Line
Hail,
Does anyone knows how I draw a line through a path line?
An example I have a movieClip that is a pencil and it is moving through a path line, now I want to draw the line that the pencil draw. Confused?

Read Line By Line From .txt File In AS 3.0
Hi,

I'm wondering how I can read from a .txt file in actionscript 3.0. I'm used to Java where when I want to read from a file I would do something like this.


Code:
Scanner scan = new Scanner(url.openStream());
String line;

while (scan.hasNextLine())
{
line = scan.nextLine();
//do something with that line
}
Is there something similar in Actionscript where I can read a file line by line?

icekube12jr

Loading Text Line By Line..?
Hi all, been using flash for a while to do linear animations for my sites but this one involves some simple actionscript and I'd like to know the best way to achieve the following please:

Basically I have a variable which will count from x to x and I need it to "reveal" a line of text when the counter gets to specific numbers.
For example; counter reaches 50 and I want the line "counter at fifty" to be added to a text box.

I'd like this text box to actually scroll too when the text begins to go off the bottom of the screen.


Now I've tried doing this with an animated mask, which moves down a line at a time when it reaches the specified variable counter number. But this does not allow me to move the text up easily when it begins to overflow the stage.

I figure that the way it is likely to be done is to load up the lines into an array and then use a loop to unhide the lines when the conditions are met. But I can't figure it out! Been trying for about 2 days now :P

Thanks very much for any help!

Flash Drawing Board With Erase Function, Erase Line By Line
Hello!

Im building a pretty simple drawing board in flash, i got this code from this forum and it works fine (there is more to it but this is the drawing part)

Code:

var clip:Shape = new Shape();

bana.addEventListener(MouseEvent.MOUSE_DOWN,_handleMouseEvent);
bana.addEventListener(MouseEvent.MOUSE_UP,_handleMouseEvent);

function _handleMouseEvent(e:MouseEvent):void{
   switch(String(e.type)){
      case "mouseDown":
      bana.addEventListener(MouseEvent.MOUSE_MOVE, _handleMouseEvent);
      
      bana.addChild(clip);
      
      clip.graphics.lineStyle(1.5,colorPicker.selectedColor);
      clip.graphics.moveTo(mouseX,mouseY);

      break;
      
      case "mouseUp":
      bana.removeEventListener(MouseEvent.MOUSE_MOVE, _handleMouseEvent);
      break;
      
      case "mouseMove":
      clip.graphics.lineTo(mouseX,mouseY);
      
   }
}


This works fine. But i want to be able to erase the drawings, step by step this is ths tricky part, ive looked everywhere(ok not everywhere) but in a whole lot of places but the only thing i found is how i could delete everything with removeChild and that in not what i want.

Maybe i need to change the function abowe? Please help me to get in the right direction. What should i read about /look at?
Do you have som sample code, no one is happier than me.

Regards
Fredrik
(sorry for my bad english, please ask if you dont understand)

[MX04] Diagonal Line Hit Test Or Drawn Line Hit Test
i have this guy who maves around and you can draw i gave it an instance name of "linesd" i dunno and i want to make it so the square will not go through the line that i draw in the swf. if you cant help with that can you help me with diagonal line hitTest i ban do vertical and horozontal ut diagonal is realy hard because it does the hitTest for the movie clip box not the line itself
-jakeA

Y=m*x+b ( Line-line Collisions )
Hey Flashkit!!!

I am currently reading a book on Flash MX game design entitled "flash mx game design demystified" and on pg. 111 under the heading <b>Line-Line collision Detection</b> the following formula is presented:

y=m*x+b

m = slope of the line
b = y-intercept ( spot where the line intersects the y-axis )

can anyone tell me what this equation means and how it relates to line line collisions and point me to some kind of web page that will explain this in comprehensive detail?

P.S I have really got to get this because all this maths stuff with games is really giving me a headache.

I Know The Line Number. I Need The Last Char Index Number Of The Line.
Hi,

I have a multiline wrap textbox which is dynamic and has a variable assigned to it. I am importing text into this textbox. If the amount of text exceeds the height size of the textbox I want to split the text into two parts, so the part which exceeds the textbox ( the text which is not visible unless you scroll down) will be moved into another textbox located below the first textbox.

I know how to get the location of the last visible line in the textbox. I simply use

LastVisibleLine=MyTextbox.bottomScroll;

Now I have the location of the last visible line so my question is:

How can I get the location of the last character in the last visible line in the textfield?

Is it possible to count the lines in a textfield when the text is wraped. I've tried to count "
" and "
" and they don't detect the wrapping.
( Wrap: When the textfield detects if a line has reached the width of the texfield it automatically breaks the line so it will fit the textfield. )

Thank you.

I Know The Line Number. I Need The Last Char Index Number Of The Line.
Hi,

I have a multiline wrap textbox which is dynamic and has a variable assigned to it. I am importing text into this textbox. If the amount of text exceeds the height size of the textbox I want to split the text into two parts, so the part which exceeds the textbox ( the text which is not visible unless you scroll down) will be moved into another textbox located below the first textbox.

I know how to get the location of the last visible line in the textbox. I simply use

LastVisibleLine=MyTextbox.bottomScroll;

Now I have the location of the last visible line so my question is:

How can I get the location of the last character in the last visible line in the textfield?

Is it possible to count the lines in a textfield when the text is wraped. I've tried to count "
" and "
" and they don't detect the wrapping.
( Wrap: When the textfield detects if a line has reached the width of the texfield it automatically breaks the line so it will fit the textfield. )

Thank you.

Text Appearing Line After Line And Then Letter After Letter
i´d like to make the text field appearing one line at a time, and when it reaches the last line, the letters of the last line appears one after another. Is it possible to be done?

3D Effects
I would like to be able to learn to do some "cool" 3d effects....what software is needed, how much does it cost, and where would I get it? I seen people referring to 3D Studio Max, but I've been doing some searching on different "shopping" centers on the net and can't seem to find the software...Am I not using the right name? I currently have access to Photoshop 6, Illustrator, Image Ready 3, Flash 5...what else do I need to make 3d animation, where to get it, and cost?

Effects
hello!

On soms sites text or buttons or any symbol for that matter flys in blurred or flies out blurred.

How is this done?
Are there any forums or tutorials on loading up a site? What I mean is after you've preloaded the site, it loads onto the page via cool effects, like the menu maybe flashes and then dims into view, or buttons bounce till they are in their place and so on...?

thanks!

Txt Effects
I want a script which enables the user to type their name in, press a button and when they get to the main page there i greeting with their name in it!

How do i do this????????

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