1 Reply Latest reply on Jun 13, 2006 11:15 PM by tay_shk

    Variables

    Acacia957jn
      Goal: Jump to a URL from a text file where I have a list of URL's per each day, such as, wk_url.txt, mon = www.mysite.com/008.php, tue = www.mysite.com/002.php.

      What I have:
      I have a file that act as a state to load a swf file for special campaign for each day.
      Each day is a separate scene where there is a transparent button that has an action sctipt:
      OnRelease{ getURL(" http://www.mysite.com/008.php?", "_self", "GET"); }

      I am hardcoding the link and uploading a new file. With the variables loaded from text file, I only need to upload a plain text file. Please kindly help me figure out how to do this.

      Thanks, JDN
        • 1. Re: Variables
          tay_shk
          mydate = new Date();
          txt = ne LoadVars()
          a=mydate.getDay();
          txt.onLoad=function(s){
          if(s){
          if(a==0){
          myurl=txt.sunday;
          }
          else if(a==1){
          myurl=txt.monday;
          }else if(a==2){
          myurl=txt.monday;
          }
          //do this till saturday
          }
          }
          txt.load("allurl.txt");
          //and on onrelease writ
          OnRelease{ getURL(myurl, "_self", "GET"); }

          // in your 'allurl.txt' file write
          &sunday=www.mysite.com/008.php
          &monday=www.mysite.com/007.php
          //writ this till saturday



          Hope it will solve your problem