Loadvariables

I found a script which loads text from a TXT file. Nou the code workd fine on a button, but assoon i putt that code on a MC it doesn’t load the variables properly. That meas; i don’t any script errors, but the text doesn’t appera in the dynamic texterea


on (release) {
	loadVariables ("document1.txt", "");
mytext.scroll=x
}

now i want this script to work on a MC!
Anybody who can help me?