dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: checking if loadVariables is finished

  1. #1
    Member
    Join Date
    Jun 2003
    Location
    Italy
    Posts
    89

    checking if loadVariables is finished

    Does anyone know,

    when using the command "this.loadVariables", is there any way to set up a loop which checks if the variables have been loaded yet?

  2. #2
    Senior Member
    Join Date
    Jun 2002
    Location
    Toronto, Canada
    Posts
    305
    In your txt file, make the first variable a test var named 'myVar' and make it as such, myVar=true;
    Code:
    myVay=false;
    this.loadMovie("myData.txt");
    this.onEnterFrame=function(){
      if(myVar){
         //DATA IS LOADED
         delete this.onEnterFrame;
      }
    }
    So when flash has loaded everything... The 'preloader' will end

  3. #3
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    Check this tutorial:
    http://www.flashkit.com/movies/Utili...4983/index.php

    It uses loadVariables in connection with a php script and the site is changed when everything ok. May be it helps you.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  4. #4
    Member
    Join Date
    Jun 2003
    Location
    Italy
    Posts
    89
    Thanks for the suggestions guys,

    I'll try them both and see if I can get tehm to work with my Fla.

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