Okay, Im new here, but not a stranger to internet forums.
Here is the problem I’m having.
I participate in an online community revolving around a flash game. This community frequently transfers their sols to collaborate and such. What I am making is a flash renaming system where the sols can be stored within the localhost, and my flash can rename them without having to frequently go to said users local host. This is the script I’ve made.
onClipEvent (enterFrame) {
import mx.controls.Alert;
solName = _level0.solFileName.text;
if (solName == “” || solName == undefined) {
Alert.show(“Please type the name of your SOL file (minus the .sol) into the box at left.”, “Error”, Alert.OK, _root, alertHandler, Alert.OK);
return;
}
so = SharedObject.getLocal(solName);
if (so.getSize() == 0) {
so.clear();
Alert.show(solName+“No savedLines detected”, “Error”, Alert.OK, _root, alertHandler, Alert.OK);
return;
}
sharedData = so.data;
_level0.solTree.removeAll();
addObjectNode(_level0.solTree, sharedData);
function addObjectNode(root, obj) {
for (name in obj) {
itemObj = _root.createTreeObj(name, obj[name]);
newRoot = root.addTreeNodeAt(0, _root.getLabel(itemObj), itemObj);
if (typeof (obj[name]) == "object") {
addObjectNode(newRoot, obj[name]);
}
}
}
_global.solName = solName;
}
The problem is that instead of actually displaying the sol itself, it will only display the info tree. Can anyone here help me, and if possible, a way to have multiple sol detection.
Thank you.