Can you use a default parameter value? e.g.
change this :
public function onUploadCanceled(event:Event):void {
to this :
public function onUploadCanceled(event:Event=null):void {
That's if you're not actually using any info in the event, of course ?????
I'm guessing there, but it seems reasonably likely for an uploadCancelled
function.
Otherwise I tend to use a a wrapper function that takes the event, parses the
event info and then passes that to a function that does the real work (which
you can of course call separately).
-----Original Message-----
From: [email protected] on behalf of danielvlopes
Sent: Tue 18/12/2007 20:22
To: [email protected]
Subject: [flexcoders] Question about flash.event ... someone can help?
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...
______________________________________________________________________
This communication is from Primal Pictures Ltd., a company registered in
England and Wales with registration No. 02622298 and registered office: 4th
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT
registration No. 648874577.
This e-mail is confidential and may be privileged. It may be read, copied and
used only by the intended recipient. If you have received it in error, please
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637
1010. Please then delete the e-mail and do not disclose its contents to any
person.
This email has been scanned for Primal Pictures by the MessageLabs Email
Security System.
______________________________________________________________________<<winmail.dat>>

