I am able to log the changes in the numeric stepper values. That is not the problem. But, how do i record if the change was made by clicking on the arrows or by manually entering values and pressing enter?
On Oct 4, 5:33 am, Sidhu Vijay Sidhu <[email protected]> wrote: > Log the thins into txt file go through this > > http://www.flash-db.com/Tutorials/savingAS3/savingData.php?page=2 > > > > On Fri, Oct 1, 2010 at 11:09 AM, Nikhil <[email protected]> wrote: > > i mean, how do i separately log changes due to manual textinput and > > due to pressing the arrowkeys... > > > On Oct 1, 1:46 pm, Nikhil <[email protected]> wrote: > > > Hi. > > > > I want to log the changes a user makes in numericStepper. However, if > > > user makes changes by clicking on the arrow buttons, these are > > > recorded separately than if he manually enters the value. > > > > Current code snippets: > > > > <mx:NumericStepper id="proposedBid" value="50}" minimum="0" > > > maximum="100" stepSize="1" change="{calcProfits(event)}" > > > mouseUp="{calcProfits(event)}" /> > > > > public function calcProfits(event:Event=null):void > > > { > > > var bid:int=event.currentTarget.value; > > > var now:Date=new Date(); > > > if(event.type=="mouseUp" && bid != > > prevValue) > > > { > > > > if(bid>prevValue) > > > writeFile("UP_ARROW"+event.type+"\t\t"+bid); > > > else > > writeFile("DOWN_ARROW"+event.type+"\t\t"+bid); > > > prevValue=bid; > > > > } > > > else if(event.type=="change" && > > event.type!="mouseDown" && > > > event.type!="mouseUp" && bid != prevValue) > > > { > > > writeFile("TYPED_IN"+event.type+"\t\t"+bid); > > > prevValue=bid; > > > } > > > > } > > > > This is only a part of the entire code, but this records changes only > > > due to change event. However, if the else if part is commented out, > > > then it records the mouseup events, but the manual entry is not > > > recorded then. > > > -- > > 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%2bunsubscr...@googlegrou > > ps.com> > > . > > 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.

