You're going to need to dispatch the event, instead of calling the handler
directly.
In your component:
this.addEventListener(onUploadCanceled);
...
In the caller:
public function cleanForm():void{
dispatchEvent(event);
parentDocument.goToStack(0); }
I may have the exact syntax wrong (check the docs) but the gist is there.
-Sam
On Dec 18, 2007 2:22 PM, danielvlopes <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I had public function inside component and this function receive as
> argument event, like this:
>
> public function onUploadCanceled(event:Event):void {
>
> And now i want call this function outside of component, but i don't
> know how i will pass an event as argument for this function, i try
> this but doesn't work:
>
> public function cleanForm():void{
> uploadFotos.onUploadCanceled(event);
> parentDocument.goToStack(0); }
>
> Thanks...
>
>
>