Thanks. Putting event in as a parameter solved it.

--- In [email protected], Alex Harui <aha...@...> wrote:
>
> Not sure I understood.  I would think you would get an exception give than 
> you didn't 
pass any parameters into clickHandler()
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.<http://www.adobe.com/>
> Blog: http://blogs.adobe.com/aharui
> 
> From: [email protected] [mailto:[email protected]] On 
> Behalf Of 
spinglittery
> Sent: Sunday, February 22, 2009 4:53 PM
> To: [email protected]
> Subject: [flexcoders] How to access module app. controls from within module?
> 
> 
> When I call
> itemclick="parentApplication.clickHandler();"
> from my Module to the main App. where clickHandler =
> 
> public function clickHandler(event:ItemClickEvent):void {
> _modUrl = "modules/" + event.label + ".swf";
> moduleHandler(_modUrl);
> 
> ... it doesn't work -although clickHandler works to load modules from the 
> main app.
> 
> Can anyone give me any pointers as to what I am doing wrong, please?
>



Reply via email to