I'm new to flex using Flashbuilder 4.6, I'm trying to save the users data with presistenceManager.
When I try to read the data back all that shows is the word: "mySetup" no data, what did I do wrong?
I made a .as file with this.
public class MySetup
public var myName:String;
public var myStreet:String;
public var myCity:String;
public var myPhone:String;
public var myPin:String;
In my view (.mxml) I do this:
protected function saveButton_clickHandler(event:MouseEvent):void
var saveManager:PersistenceManager = new PersistenceManager();
var mySetup:MySetup = new MySetup;
mySetup.myName = myName.text;
mySetup.myPhone = myPhone.text;
mySetup.myStreet = myStreet.text;
mySetup.myCity = myCity.text;
mySetup.myPin = myPin.text;
I have seen that example, but it only use a single text line I use a Class.
But I just noticed something in my code, I use "" around the class and then it will save it as a word, not the class. I will test it and write back.
Thanks for your help.
That was the problem, after removing the double quotes it save the class structure.