A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: actionscript 2: whats code to read external variable without &

  1. #1
    Senior Member
    Join Date
    May 2016
    Posts
    128

    actionscript 2: whats code to read external variable without &

    hello friends

    whats code to read external variable from txt file without &


  2. #2
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,816
    You kind of seem to misunderstand what that & is for. Its purpose is to separate variables.
    var1= hello&var2= world
    This is the proper way.
    .

  3. #3
    Senior Member
    Join Date
    May 2016
    Posts
    128
    This means that we cannot OK

    another question, is it possible to change it?

    Thank you so much swak
    You always have solutions

  4. #4
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,816
    You're basically saving variable in a text file with LoadVars. The text file basically needs 3 things to work. The variable name, the = sign to show what was saved, and the & sign to indicate separation.

    As for saving to a text file. That's a whole different issue. Keep in mind that flash is sandboxed. That means that it's been made so it can't interact with the rest of the computer except through specific channels.
    Basically you can't save to a text file. You have to work through something like php. Here's a good answer to saving stuff: https://stackoverflow.com/questions/...-file-from-as2 Look at the first answer.
    .

  5. #5
    Senior Member
    Join Date
    May 2016
    Posts
    128
    thanks again

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