[quoted text, click to view] "BuenasHowdy" <webforumsuser@macromedia.com> wrote in message
news:d4o7do$lfi$1@forums.macromedia.com...
> LuigiL -
>
> I took a look at
www.imagevuex.com - very nice. Thanks for the
> info.
>
> Im still having problems getting the data to show up in my text
> fields,
> though. I did what capt james suggested and Ive had little luck
> with that.
> What he suggests makes way sense, but, obviously I'm not doing
> something right
> or perhaps I dont have it set up correctly. Ive even tried
> experimenting with
> two very simple files and I couldnt get them to work. Im doing
> something
> fundamentally wrong, I tell ya.
>
> I dont have any hair left on my head.
>
> I could really use some help here, folks - it would be greatly
> appreciated.
If you really want to unload the first swf you can write anything you
want to save into a shared object that can be read by a loading
swf....
// file1.swf saves data to the shared object
// at the lowest position possible
mso = sharedObject.getLocal("myStuff","/");
mso.data.name = "tralfaz";
mso.data.score = 1727;
mso.flush(); // write to the file
// when needed, load the other swf file.
// button code
on (release) {
loadMovieNum("second.swf", 0); // _level0
}
// file2.swf loads the shared object when it starts up
mso = sharedObject.getLocal("myStuff","/");
text1.text = mso.data.name;
text2.text = mso.data.score;
If you don't really need to unload the first swf when loading the
second one then you won't need all this. Any variable in _level0 can
be read by a movie in another level.
// main movie on _level0
// root timeline variables
someJunk = 100;
someString = "tralfaz";
loadMovieNum("second.swf", 1); // load another movie into level 1
// second.swf can use the vars from _level0
text1.text = _level0.someJunk;
text2.text = _level0.someString;
hope that helps.
tralfaz