So I have a Main .Fla/.SWF File which contains buttons to load in external SWF files using a LoadSWF
class.
My Main class save/load code is:
private function saveData(): void {
// savedData can now take any number of properties of any type
// playerGameData is the variable name in which data is saved
savedGameData.data.savedPlayerData = playerData;
savedGameData.flush();
loadData();
tracePlayerData();
}
private function loadData(): void {
// gets the data stored in the SharedObject
playerData = savedGameData.data.savedPlayerData;
}
Assuming a set of saved data can be traced as: trace("Player Name:", playerData.playerName);
How can I load in the saved data, "playerData.playerName" into one of my externally loaded SWF files, so I can give a personalized message such as msgDisplay.text = playerData.playerName + "You Win!"