SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2002
    Location
    london
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    loop through loaded vars to check if loaded

    Hi

    say i have 3 text files that look like:

    myarray=blah, blah, blah&finished=1

    How can I load the files with a loop then loop through the 'finished' var to check that they are all loaded?

    thanks
    L
    give me all your lentils

  2. #2
    SitePoint Zealot
    Join Date
    Mar 2002
    Location
    New York, NY
    Posts
    170
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    are you using flash 5 or MX?
    Better-Barter.com
    Logo store full of unique, professional identities
    perfect for you or your client!

  3. #3
    SitePoint Zealot
    Join Date
    Jan 2002
    Location
    london
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by zing
    are you using flash 5 or MX?
    Sorry, using 5. I had it going in MX using loadVars but I have to get it down to 5.
    give me all your lentils

  4. #4
    SitePoint Zealot
    Join Date
    Mar 2002
    Location
    New York, NY
    Posts
    170
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by lentildal
    Sorry, using 5. I had it going in MX using loadVars but I have to get it down to 5.
    ok.. i'm not sure what you mean by loading the files with a loop... but i think this would work:

    Code:
    //put this code into the actions of an empty movieclip
    onClipEvent (load) {
    	 loadVariables ("textFileLocation.txt",_root);
    }
     
    onClipEvent (enterFrame) {
    	 if (_root.finished) {
    		 trace ("Everything Loaded." );
    		 _root.finished = 0;
    	 }
    }
    hope it works

    zing
    Last edited by zing; Mar 26, 2003 at 13:01.
    Better-Barter.com
    Logo store full of unique, professional identities
    perfect for you or your client!


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
  •