You can access the function from the component using "parentDocument".
Usage:

parentDocument.functionName()

Just ensure that the function is public.

Although you can access it this way, it will make your component more
tightly-coupled. And it is always recommended to create loosely coupled
components. Another alternate way to handle the scenario is to dispatch an
event from the component. And in the main application, listen to the
component and call the required function when the event is listened.

Regards,
Venkat
www.venkatv.com

On Sat, Dec 13, 2008 at 12:15 AM, rjoshicool <[email protected]> wrote:

>
> I want to access a function, which i have written in the script tags
> in my component, from my main application. How can I achieve this?
>
> Regards,
> Rahul Joshi
> http://www.rjdesignz.com
> >
>


-- 
Regards,
Venkat
www.venkatv.com

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