Everybody hated the write program..So i replaced it with pong. (My highscore is 1499)
But i didnt remove the script of fastwriter.
Here is the sript:
To use it make a text and make it a object.
stop();
//create the local Shared Object
myLocalSO = sharedobject.getLocal("f
lashcookie" );
//Populate the text field if the SO already contains a name
if (myLocalSO.data.name != null) {
userName.text = myLocalSO.data.name;
numVisits.text = "You have been here " + myLocalSO.data.counter + " times."
}
//Populate the text fields if the SO does not contain a name
else {
userName.text = "<type your name here>";
numVisits.text = "This is your first visit.";
myLocalSO.data.counter = 1;
}
//update counter for number of visits
myLocalSO.data.counter++
;
// Handler for userName.onChanged
userName.onChanged = function() {
myLocalSO.data.name = userName.text;
}
//Reset the data in the SO, and text fields
blueButton.onRelease = function () {
trace (myLocalSO.objectName);
myLocalSO.data.name = null;
myLocalSO.data.counter = 2;
userName.text = "<type your name here>";
numVisits.text = "This is your first visit.";
}