hackin
03-14-2008, 06:51 PM
I create the following function
---------------------------------
package com.cerebrum.utils {
import mx.rpc.events.ResultEvent
import mx.controls.Alert;
public class Result {
[Embed("/assets/images/dialog-information.png")]
public var IconDialogInformation:Class;
public function Result(event:ResultEvent,MyObject:Object):void {
Alert.show("teste", "teste", 4, null, null, IconDialogInformation);
}
}
}
---------------------------------
I as follows
import Result;
Result(event, meuobjeto);
---------------------------------
Is presented in the following error flex builder
1137: Incorrect number of arguments. Expected no more than 1.
---------------------------------
How should I inform the function that actually has 2 parameters?
---------------------------------
package com.cerebrum.utils {
import mx.rpc.events.ResultEvent
import mx.controls.Alert;
public class Result {
[Embed("/assets/images/dialog-information.png")]
public var IconDialogInformation:Class;
public function Result(event:ResultEvent,MyObject:Object):void {
Alert.show("teste", "teste", 4, null, null, IconDialogInformation);
}
}
}
---------------------------------
I as follows
import Result;
Result(event, meuobjeto);
---------------------------------
Is presented in the following error flex builder
1137: Incorrect number of arguments. Expected no more than 1.
---------------------------------
How should I inform the function that actually has 2 parameters?