hi.
i'm writing a flash 5 interface that needs to update the contents of textboxes in a movieclip in response to the user clicking on buttons.
so say in my main timeline frame 1 action is...
thefile = "file1.txt";
and i've got a movieclip [called 'movieclip'] on the stage containing a dynamic textbox [called 'text']. on movieclips timeline i have the following frame action ...
loadVariables (_root.thefile, _root.movieclip.text);
no problem so far. file1.txt loads into the movieclip. now the user clicks on a button and i want to load file2.txt into moviclip instead. i send the main timeline to another frame which has the frame action...
thefile = "file2.txt";
...and i put a keyframe on the layer containing movieclip. [in the hope this will cause it to re-evaluate the frame content] but when i run the movie the text displayed remains 'file1.txt' after the button has been pressed, even tho' a trace within the frame action in 'movieclip' shows that '_root.thefile' is now "file2.txt".
so the new value has been read in but the content of the textbox isn't updating. in director i could put in an'updatestage' command which would probably do the trick but i've no idea how to do this in flash?
any help gratefully received etc.
madra xxx
PS i know this is a very clunky way of doing the whole thing but i'm a bit of a non-propellorhead so i need to write it clunky first and then try and refine it [otherwise i get completely lost]
i'm writing a flash 5 interface that needs to update the contents of textboxes in a movieclip in response to the user clicking on buttons.
so say in my main timeline frame 1 action is...
thefile = "file1.txt";
and i've got a movieclip [called 'movieclip'] on the stage containing a dynamic textbox [called 'text']. on movieclips timeline i have the following frame action ...
loadVariables (_root.thefile, _root.movieclip.text);
no problem so far. file1.txt loads into the movieclip. now the user clicks on a button and i want to load file2.txt into moviclip instead. i send the main timeline to another frame which has the frame action...
thefile = "file2.txt";
...and i put a keyframe on the layer containing movieclip. [in the hope this will cause it to re-evaluate the frame content] but when i run the movie the text displayed remains 'file1.txt' after the button has been pressed, even tho' a trace within the frame action in 'movieclip' shows that '_root.thefile' is now "file2.txt".
so the new value has been read in but the content of the textbox isn't updating. in director i could put in an'updatestage' command which would probably do the trick but i've no idea how to do this in flash?
any help gratefully received etc.
madra xxx
PS i know this is a very clunky way of doing the whole thing but i'm a bit of a non-propellorhead so i need to write it clunky first and then try and refine it [otherwise i get completely lost]