Flash question

Out of context: Reply #1

  • Started
  • Last post
  • 2 Responses
  • maximillion_0

    from the manual:

    loadVariablesNum("params.txt", 2);
    function checkParamsLoaded() {
    if (_level2.done == undefined) {
    trace("not yet.");
    } else {
    trace("finished loading. killing interval.");
    trace("-------------");
    for (i in _level2) {
    trace(i+": "+_level2[i]);
    }
    trace("-------------");
    clearInterval(param_interval);
    }
    }
    var param_interval:Number = setInterval(checkParamsLoaded, 100);

    your asp file will need to output some data to the file that is called. the data should be name / value pairs ie. var1="hello"&var2="goodbye"&done...

View thread