Welcome to TalkGraphics.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2003
    Location
    Oklahoma, USA
    Posts
    34

    Default

    Hello,

    I am wanting to load a .txt file from my website based on the number I input in a text field in flash.

    [ text field ]
    [ Button ]
    [ File.txt ]

    I want to put a number in the text field push a button, and flash load the url of the text file.

    Example: TextField & Data-->[ 1 ]

    http://www.4mstudios.com/file_1.txt

    Is this possible?

    Thank You SO Much.
    Mmm... Graphics, www.4mstudios.com
    IP

  2. #2
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,918

    Default

    Hi Psycho
    It should be possible.
    In frame one set up your variables thus:

    text1= "http://www.serveraddress.com/text1.txt";
    text2= "http://www.serveraddress.com/text2.txt";
    text3= "http://www.serveraddress.com/text3.txt";

    Then in the button actions set the action to:

    on (release) {
    loadVariablesNum(text1,0);
    }

    Where textNUMBER is the text file you wish to load (text1 in this example), and 0 is the level to load it.

    Hope this helps. Get back if you need further assistance.
    Egg
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host
    IP

  3. #3
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,918

    Default

    I've set up a very rough and ready example but a bit more sophisticated than the above here
    Egg
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host
    IP

  4. #4
    Join Date
    Nov 2003
    Location
    Oklahoma, USA
    Posts
    34

    Default

    Thank you so much EGG.
    Mmm... Graphics, www.4mstudios.com
    IP

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •