I can't get sharedobjects to work on my 5610 even though the code is working on the emulator.
I'm using the exact code from a tutorial on Nokia Wiki (In portuguese)
Never mind now its working.Code:fscommand2("FullScreen", true); var handler_obj:Object = new Object(); var persist_so:SharedObject; this.createTextField("display_txt", this.getNextHighestDepth(), 0, 0, Stage.width, Stage.height); function getSharedObject(info_obj:SharedObject) { if(persist_so.getSize() <= 0) { persist_so.data.numeroAcessos = 1; } else { persist_so.data.numeroAcessos += 1; } display_txt.text = "Tamanho: " + persist_so.getSize() + "\n"; display_txt.text += "Número de acessos: " + persist_so.data.numeroAcessos + "\n"; display_txt.text += "Armazenamento máximo: " + SharedObject.getMaxSize(); persist_so.flush(); } handler_obj.onKeyDown = function() { if(Key.getCode() == ExtendedKey.SOFT1) { display_txt.text = "Dados limpos"; persist_so.clear(); } else { if(Key.getCode() == ExtendedKey.SOFT2) { fscommand2("quit"); } } } Key.addListener(handler_obj); SharedObject.addListener("meusDados", getSharedObject); persist_so = SharedObject.getLocal("meusDados");
I guess it wasn't working because my other flash file flushes too fast and kinda broke it, so i had to restart my mobile



