A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Displaying text in flash through variabel

  1. #1
    Junior Member
    Join Date
    Aug 2002
    Posts
    21

    Displaying text in flash through variabel

    Hi,
    I am trying to display text in flash from a txt file.As soon as the swf file is run the text should be displayed and it should scroll in a vertical way.

    How i am suppose to do it?????

  2. #2
    Senior Member Ex-Ess's Avatar
    Join Date
    Nov 2002
    Location
    York (England)
    Posts
    588
    you need to use loadVariable("txtFile.txt", "", "POST");

    that will load the variables from the txt file.

    Make sure the text file says something like:

    myVar=texthji koewfk oe fkowep fkwofp kewof kewopf kewop fkewo fwe kf


    then use a dynamic text field in flash with the var name the same as the one in the text field, so myVar in this case.

    Then look into scrollMax, scroll and delays to get it to scroll automatically.


    Cheers
    Ex-Ess

  3. #3
    Pixel Pusher Elastikman II's Avatar
    Join Date
    Jan 2003
    Location
    London, UK
    Posts
    168
    For help on text fields...

    Straight from the source!

    Looks like Ex-Ess just beat me to it with some good advice...

  4. #4
    Senior Member Ex-Ess's Avatar
    Join Date
    Nov 2002
    Location
    York (England)
    Posts
    588
    I never liked the macromedia example. It makes it so you have to keep clicking the scroll buttons. Better to make the button on(press) start a movie that makes the text scroll in the direction you want and the on(release) stops it. Makes it nice n smooth.

    Cheers
    Ex-Ess

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center