Work in flash6 but not in flash7 : why?

hi,

how to update this simple as code to flash 7 ??


stop();
loadText = new loadVars();
loadText.load("text.txt");
loadText.onLoad = function(success) {
    if (success) {
        play();
        my_st = this.mytext;
    }
};

i try lot of thing, but it don’t work !