Hi Sudha, What is the logic with which u are asking the user to click the allow button. If u are using Alert.show() then there is a parameter (closehandler) in the function prototype that allows u to call a function after Ok or Cancel is clicked. Just give the name of any function there without parameter list.
In the body of that function u can check if (evt.detail == Alert.YES) { // Do something } else // Do something else So in ur case in the condition Alert.YES(Allow) u can call ur startTimer() function. In case u are using a custom component and displaying it as a popup then u will have to call startTimer() on the click of the Allow button. Let me know if ur using any other case apart from these 2. Utkarsh. On Apr 7, 6:01 pm, sudha says 2 u <sudhakarredd...@gmail.com> wrote: > Hi Friends, > > I am trying record voice using action script and flex. > > When i am clicking on record button, it will fire the event > getMicroPhone() and then > > we have to click allow to access the micro phone which is in > our sys. Now my question is > > when i clicks allow then we have to call user defined > function startTimer(); > > But how can write code for this...??? where i have to call > the function startTimer() > > -- > *SUDHA SAYS 2 U* -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_india@googlegroups.com. To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.