A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: save to file in Flash 5

Hybrid View

  1. #1
    Junior Member
    Join Date
    Sep 2000
    Posts
    2

    Unhappy

    Hi,
    is there anybody who knows how to save variables in a txt-file in Flash 5. The script

    FS Command ("exec", "command.com"&Chr(9)&"/c"&Chr(9)&"echo"&Chr(9)&"text3="&TypeVar&">c:\cont ent.txt")

    works very good in Flash 4 but Flash 5 converts the "&" to "add" and it looks like

    FS Command ("exec", "command.com" add Chr(9)add "/c" add Chr(9) add "echo" add Chr(9 add "text3=" add TypeVar add ">c:\content.txt")

    Have you any idea how to convert this script so that it works.
    Sorry for my bad english and thanks for many answers...
    J.

  2. #2

  3. #3
    Junior Member
    Join Date
    Sep 2000
    Posts
    2
    Thank you jasonlatta,
    but I think the problem is that the command.com cannot read the "add". When I play the projector of the fla the command.com opened for a short time but the variables were not written into it. So no "content.txt"-file was created. I've tried many ways to replace the "add"-operator....nothing works.
    J.

  4. #4
    try using the "\" before the "&" so it would read "\&"

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