dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: dynamic url

  1. #1
    Junior Member
    Join Date
    Feb 2002
    Posts
    12
    Hi,

    How can I load a dynamic url from an external text file. I am sure this is something pretty easy but can't seem to figure it out this morning.

    Thanks in advance,
    Surveysays

  2. #2
    on frame

    loadVariablesNum("YourTextFile.txt", 0);

    on button

    on (release) {
    getURL(VarFromYourTextFile);
    }

    Hope it helps

  3. #3
    Junior Member
    Join Date
    Feb 2002
    Posts
    12
    I need to put a variable name = to the variable text I want to load in the text document, right.
    varname=www.urltoload.com

    Then on frame
    loadVariablesNum("YourTextFile.txt", 0);
    and put this in a dynamic text field named "varname"

    on button
    on (release) {
    getURL(VarFromYourTextFile);
    }
    that would be varname, correct.

    Is this the right process for your post?

    thanks,
    surveysays

  4. #4
    Yes that's right

    put this in textfile.txt
    urltogo=http://www.yahoo.com

    on frame
    loadVariablesNum("textfile.txt", 0);

    on button
    on (release) {
    getURL(urltogo);
    }

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