ios - PersistenceManager issue -


i have written code save screen data , retrieve second time. code is:

<?xml version="1.0" encoding="utf-8"?> <s:view xmlns:fx="http://ns.adobe.com/mxml/2009"     xmlns:s="library://ns.adobe.com/flex/spark"     title="homeview"     add="addhandler(event)">  <fx:script>     <![cdata[          import mx.events.flexevent;         import spark.managers.persistencemanager;         protected function savebutton_clickhandler(event:mouseevent):void         {             var savemanager:persistencemanager = new persistencemanager();             savemanager.setproperty("mytext", myinput.text);         }          protected function addhandler(event:flexevent):void         {             var loadmanager:persistencemanager = new persistencemanager();             if(loadmanager.load())             {                 var saveddata:object = loadmanager.getproperty("mytext");                 if(saveddata)                     myinput.text = saveddata.tostring();             }         }          protected function clearbutton_clickhandler(event:mouseevent):void         {             var persistencemanager:persistencemanager = new persistencemanager();             persistencemanager.clear();             myinput.text = "";         }     ]]> </fx:script>  <s:textinput width="100%" id="myinput"/> <s:group width="100%">     <s:layout>         <s:horizontallayout/>     </s:layout> </s:group> <s:button id="savebutton" x="-1" y="65" width="100%" label="save"           click="savebutton_clickhandler(event)"/> <s:button id="clearbutton" x="0" y="116" width="100%" label="clear"           click="clearbutton_clickhandler(event)"/> 

but, when packaging deploying on ipad, gives me error like:

error occurred while packaging application:

error occurred during initialization of vm not reserve enough space object heap not create java virtual machine. compilation failed while executing : adt

i using flash builder 4.5 create ios application. thanx in advance

you need modify flashbuilder.ini file it's located in flashbuilder installation directory.

you need modify xms size - allocate more memory while compiling , building project. remember should in strongs of 2. file looks this:

launcher.defaultaction openfile -nl en_us -vmargs -xms256m -xmx512m -xx:maxpermsize=256m -xx:permsize=64m 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -