Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-10-2008, 03:29 AM   PM User | #1
kryssy23
New Coder

 
Join Date: Nov 2008
Location: Melbourne, Australia
Posts: 69
Thanks: 8
Thanked 1 Time in 1 Post
kryssy23 is an unknown quantity at this point
txt file animation

I have a txt file which I have imported into flash via dynamic text, it all works. Im just wondering if its possible to animate the text? What I mean by that is... in my txt file it has breaks in it, so when it gets imported into flash it come out in about a 100 lines or so. I want the animation to ,if possible, show 1 line from the text file, a second or 2 later the next line and so on

is that even possible or do I have to copy the enitre txt file and do it manually?
kryssy23 is offline   Reply With Quote
Old 11-10-2008, 05:17 PM   PM User | #2
gnomeontherun
Senior Coder

 
gnomeontherun's Avatar
 
Join Date: Sep 2007
Location: Houston
Posts: 2,846
Thanks: 10
Thanked 238 Times in 229 Posts
gnomeontherun will become famous soon enoughgnomeontherun will become famous soon enough
You can do what you are talking about, I'm sure, but I'm not completely sure what that is.

Essentially you can send each string as a unique variable, and add it to a text area on the stage (either in the GUI or with Actionscript) and animate it (again with the GUI or Actionscript).

Look at some Actionscript tutorials about strings in my signature.
__________________
jeremy - gnomeontherun
Educated questions often get educated answers, and simple questions often get simple answers.
gnomeontherun is offline   Reply With Quote
Old 11-11-2008, 03:26 AM   PM User | #3
itsallkizza
Senior Coder

 
Join Date: Oct 2008
Location: Long Beach
Posts: 1,196
Thanks: 36
Thanked 164 Times in 164 Posts
itsallkizza will become famous soon enough
If you already have the text file loading into flash part working the reast is fairly simple.

If you want to break it up into segments you can use the String.split("\n") to break up the lines. That'll give you an array which you can manipulate however you want. You can run a loop to place each line into a dynamic text field inside an empty MC, then animate each of those MCs in whatever fashion you like.

If you have more specific specifications, I can help you further.
__________________
Feel free to e-mail me if I forget to respond ;)
ohsosexybrit@gmail.com
itsallkizza is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:28 PM.


Advertisement
Log in to turn off these ads.