Hi Sandy, please check this code, i hope it helps.
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="1024" minHeight="768"> <mx:Script> <![CDATA[ *private* *var* dataArray:Array= *new* Array(); *private* *var* currentData:int; *private* *function* saveData():*void*{ *if*(dataArray.length<10){ dataArray.push(txtArea.text); } *else * { dataArray.splice(0,1); dataArray.push(txtArea.text); } currentData= dataArray.length-1; } *private* *function* undo():*void*{ *if*(currentData>0){ txtArea.text=dataArray[currentData-1] currentData=currentData-1; } } *private* *function* redo():*void*{ *if*(currentData<dataArray.length-1){ txtArea.text=dataArray[currentData+1] currentData=currentData+1 } } ]]> </mx:Script> <mx:TextArea id="txtArea" x="21" y="10" width="325" height="104" change="saveData()"/> <mx:Button x="21" y="137" label="Undo" click="undo()"/> <mx:Button x="231" y="137" label="Redo" click="redo()"/> </mx:Application> On Tue, May 4, 2010 at 3:39 PM, sandy <[email protected]> wrote: > hello every one > i want to apply undo in my app so please kindly > any one help me > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<flex_india%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

