A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: loading text file.What am I doing wrong?

  1. #1
    Junior Member
    Join Date
    Apr 2002
    Posts
    5
    In my main timeline actions layer i have
    Code:
    loadVariablesNum("test.txt", 0);
    Then in my text box named text1 the var. is
    mytext.
    Test.txt has mytext = "blah, blah, blah."

    Can anybody tell me what I am doing wrong?

    Thanks

  2. #2
    Junior Member
    Join Date
    Nov 2001
    Posts
    13
    leave out the quotations and the first space.

    try this in your text file:

    mytext=blah, blah, blah


    that should work. if you want to add another variable do as follows:

    mytext=blah, blah, blah&mytext2=whatever you want

    also it may be wise to include the "_root." in your text variable. so the text box variable would be '_root.mytext'

    hope this helps and is correct.

  3. #3
    Junior Member
    Join Date
    Apr 2002
    Posts
    5
    Originally posted by Pampasano
    try this in your text file:

    mytext=blah, blah, blah

    Thanks, that did the trick.

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