Hi France,

Please ignore my prev mail .

The purpose of adding code in creationComplete is specifically perform
initialization activity once the component and its children are created
completely.

If your requirement is to call a method in a custom component at different
scenarios in your application then create a public method and call this
method as and when required.

ie

< customComponent>

     <script>
          public function methodToBeInvoked():void{

          }
     <script>



< customComponent>




<Application>

     private function someEventHandler():void{
         c1.methodToBeInvoked();

      }

    <customComponent id="c1"/>
</Application>


Hope this helps you out.

Cheers,
Naveen

On Wed, Mar 30, 2011 at 11:58 AM, Franc <[email protected]> wrote:

> How to call a function say init() while calling a custom component
> like <components:custom1.. . In my case If I am using a
> creationComplete or initialize functions in the root tag of the
> component, this functions will be called only once.. ie if u call a
> component for the second or third time, this functions wont get fired.
>
> Thanks
> Franc
>
> --
> 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.
>
>

-- 
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.

Reply via email to