A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: LoadVars and '%'

Hybrid View

  1. #1
    Senior Member
    Join Date
    Jan 2001
    Posts
    122

    LoadVars and '%'

    Hi,

    I'm using loadvars using txt file with this line:
    &varName=varValue text... text...&
    Where varValue is % - and that causes the rest of the text not to appear.

    What's the way to put a- % in the txt so it won't cause the trouble?

    Thanks in advance,
    Maya Malimovka.
    Maya Malimovka

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    You can url encode it....

    %25

    Also have .......

    System.useCodePage=true;


    ....on the first frame.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Senior Member
    Join Date
    Jan 2001
    Posts
    122
    Thanks for the answer.
    The file i'm working on is not a file that i've created and it is complexed files - so i'm trying to do the minimum in such a way that it wouldn't affect other "things" in the files that i'm not femiliar with...yet.

    What u wrote is to write %25 in stead of % in the txt file?
    If not - is there a way to write '%' via loadVars by touching just the txt file?

    Thanks again,
    Maya.
    Maya Malimovka

  4. #4
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Flash 5 used to understand %25 straight away. MX seems to want the code page reference.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.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