Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package;
- import openfl.display.Sprite;
- import openfl.net.SharedObject;
- class Main extends Sprite
- {
- var object:SharedObject;
- var DataName = "Score";
- var Data_Value = 13;
- public function new()
- {
- super();
- object = SharedObject.getLocal("File Name"); //Creates the File and saves it to local machine
- potato.data.DataName = Data_Value; //DataName the name of the Data
- potato.flush(); //Writes the Data to the file
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement