Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Nov 2008
    Location
    Melbourne, Australia
    Posts
    69
    Thanks
    8
    Thanked 1 Time in 1 Post

    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?

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    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.

  • #3
    Senior Coder
    Join Date
    Oct 2008
    Location
    Long Beach
    Posts
    1,196
    Thanks
    36
    Thanked 164 Times in 164 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •