A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: button loading txt files

  1. #1
    Senior Member Factor1studios's Avatar
    Join Date
    Feb 2002
    Location
    chandler, AZ
    Posts
    138

    button loading txt files

    I have 6 buttons, that need to load 6 txt files into a dynamic text box. check out the attached files. The menu is loaded in, then I have invisable buttons, that need to trigger the appropriate txt file to load in to the dynamic text box.

    I have most of this set up, i just cant figure out the rest of the action script to link the txt files to the buttons.

    please help!

  2. #2
    FK's Official Mac Hater jasonsplace's Avatar
    Join Date
    Mar 2002
    Location
    Provo, Utah
    Posts
    2,245
    On your dynamic text box, set the variable to _level0.myTextBox
    Then on your button put:
    on(release)
    {
    loadVariablesNum("Filename.txt", 0);
    }
    Then formane your text file as:
    myTextBox=This is the text that I want loaded in.
    Jason L. Wright
    I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.

  3. #3
    Senior Member Factor1studios's Avatar
    Join Date
    Feb 2002
    Location
    chandler, AZ
    Posts
    138
    awesome. I knew it was something simple like that. I just couldnt get it out right. Thanks!

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