I think you can declare a function and do your evaluations in the component. After, call this function in events "show" (or "hide") of the children of the viewstack. Also this method need to be called in "creationComplete" event of the first view that you show.
On Sep 11, 11:59 am, ravibharathi <[EMAIL PROTECTED]> wrote: > My problem is i have two screens which use a common component.These > two screens are placed within the viewstack and with corresponding > link button i am showing the screens.I am getting the id of the > clicked link button.oncreationcomplete of the screen based on the id > i have to enable and disable some feilds in that component .At first > time it works fine.I know that view state just show the screen for > second time.Is there any way to check which button the user clicked > and render the screen based upon that. > > On Sep 11, 5:23 am, "Kreative Vision" <[EMAIL PROTECTED]> wrote: > > > Hey, > > > Creationcomplete for a component is called only once in the lifecycle of the > > component. Once the conponent is created and rendered on the application, > > that method would never be called. You could 'enterFrame' but this would > > always be called after specific time. Other way round you could write a > > custom event and dispatch it where you need it to do your validations. > > > I think you need to elaborate your problem for an ease to give you a proper > > solution. Post some part of your code. > > > Regards, > > KREATIVES > > Kreative Vision Group [http://kreativeslive.codenamegenius.com]. > > "MIND - VISION - IDEA is all that takes to create a spark." > > > On Thu, Sep 11, 2008 at 2:22 PM, ravibharathi <[EMAIL PROTECTED]>wrote: > > > > I have a viewstatck within that i have some child component to show.I > > > have some link button, on click of the link button i am setting the > > > selectedchild of the viewstack.With in the component i am calling > > > creationcomplete method.It works fine when i clicked at first time the > > > creationcomplete method is called. But when i click on second time the > > > creation complete event is not calling.I am doing some validation > > > based on the creationcomplete method.Is their is any way to call the > > > creationcomplete method every time .Or anyworkaround for ths- Hide quoted > > > text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

