A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: txt problems with load()

  1. #1
    Junior Member
    Join Date
    Apr 2008
    Posts
    5

    txt problems with load()

    hi. I'm using load() to load a local txt file. The content in my txt file is as follows:

    a1=message
    a2=text

    The problem is that, instead of identifying that as 2 different variables, flash returns a1 as:

    message
    a2=text

    and, of course, a2 isn't even read b/c it's a 'part' of a1. How do I tell the load function to stop reading a1 at the end of the line, and to read a2 as well? I tried a semicolon ; and it still didn't work. Instead it returned:

    message;
    a2=text;

    Thanks in advance for any help.

  2. #2
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,317
    try a1=message&a2=text
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

  3. #3
    Junior Member
    Join Date
    Apr 2008
    Posts
    5
    Quote Originally Posted by webdreamer View Post
    try a1=message&a2=text
    wow, thank you very much, i was SO close to doing this in a really complex and unnecessary way, b/c I assumed this isn't possible.

    Thank you

  4. #4
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,317
    Quote Originally Posted by mayoarm11 View Post
    wow, thank you very much, i was SO close to doing this in a really complex and unnecessary way, b/c I assumed this isn't possible.

    Thank you
    Be sure to allows check the flash doc's. Press F1 in flash IDE. There's a wealth of information there.
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center