A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: loading var from txt

  1. #1
    I'm dope. Psytrix's Avatar
    Join Date
    Aug 2002
    Location
    Slidell, LA
    Posts
    309

    loading var from txt

    alright i used to know how to do this in flash mx, and im trying to do it again but ive forgotten due to inactivity... any im trying to remember how to load a variable from a txt file into my flash movie.

    the text file would have the news in it, in the "news" variable of course. this would be inside the text file for example:

    &news=<<insert news here>>

    and on button press the flash player would load the news var from the (for example) info.txt into a text field

    im having great difficulty doing this, i even read through a few tutorials from a couple of sites and its just not working.

    i cant find a tutorial i had used before that loaded loaded weather statistics for a specific day from a txt file when you clicked which day, a link to that would be fantastic if you cant help

    thanks in advance

  2. #2
    Senior Member
    Join Date
    Dec 2003
    Location
    florida
    Posts
    386
    i can't find the tutorial you're talking about, but this one worked for me:
    http://www.flashkit.com/tutorials/Ac...dex.php?chk=no

    also, when i used a text file, i didn't put any character before the variable name. i'm not sure if that makes a diff, but in the text file, i put
    news=asdfljlsdfj


    good luck,

    heather
    ---------------------------------
    http://www.heathercash.com

  3. #3
    I'm dope. Psytrix's Avatar
    Join Date
    Aug 2002
    Location
    Slidell, LA
    Posts
    309
    well, i described the tutorial i had used wrong, thats the same one, thanks a million man, this is great

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