Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'update stage' flash equivalent of this director command

Status
Not open for further replies.

madra

MIS
Feb 12, 2003
95
GB
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]

 
(removing my propellor while typing...it gets in the way)

ok, sounds as though when your prompting the movie to load text 2 it might be looping to text 1 instead (or as well).

This is not a problem with flash, as it can easily update by reading text files from the server (see CHAT section at ).

So, if you want to e-mail me the fla or post a link to it here I'll have a look and try and sort for you.

dave dave@davdesign.co.uk

^^^^^^^^^^^^^^^^
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top