Better you assign the value to the SharedObject in flash.
Thanks for the reply. I have googled share objects and its seems rather excessive to read a variable from a movie on the stage.
Wouldnt something like
_root.user = _root.movieclipname.name;
be better. I'm not sure what the syntax should be. But there are many references to reading variables in movies using global or root variables. I just cant figure how
In short a text box sits in a movie on the stage and I need to get the data from the text box into another variable on the stage.
Yes u can assign like that. or SharedObject is better.
As per ur convenient.
var my_so:SharedObject = SharedObject.getLocal("kookie");
my_so.data.user = _root.movieclipname.name;
Shared object could work, but you are correct in that it really isn't appropriate at all for this purpose. Not to say that it is possible for a user to turn off shared objects and then your code won't work at all. Shared objects are like cookies in that they are really for saving persistent data from session to session and there really is no call for that here.
How are you adding things to your accordion? And have you given your accordion instance a name?
I put an accordion on the stage and gave it an instance name of acc. I then used the following code to add a movieclip to it.
I can then access the contents of that clip via:
Those are both the same.
Off course if you were really hard core about this, you would make your movies have some kind of function that collected and processed the information contained in them. And then your main timeline could do something like:
But that might be too much depending upon your needs.