-
Hey ya'all,
I've got a dynamic text field, a txt-file (variables in txt file are readable in flash) and a flash movie.
On the first frame (where dynamic text field is, too) I would enter the following AC:
loadVariablesNum ("myfile.txt", 0)
newquote = random(47);
_root.dyntxtvarname = eval("q" +newquote);
I also have a button lying on the stage.
The problem: the quotes won't show up until I press the buttong to which I assigned
on(release){
newquote = random(47);
_root.dyntxtvarname = eval("q" +newquote);
}
although I have placed the "newquote = ..." in the first frame of the movie, too!
How is it done right?!?!
Hope you can help me!
Thanx
Lenny.
[Edited by Zacky2001 on 10-14-2001 at 06:07 PM]
-
I would say that if you have 47 quotes odds are flash has not load all the file in the split second before you try to read the var I would put some frames between the loadVariables and calling on the variables
hope this helps
David
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|