myArray:Array = null

 

Regards, 

-Keith 
http://keithreinfeld.home.comcast.net
<http://keithreinfeld.home.comcast.net/> 
 

  _____  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of luvfotography
Sent: Wednesday, June 24, 2009 3:41 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how do I set the default value for an array in a
function definition?

 






How do I make the array parameter optional??

private function howdoI(mycount:int,mystring:String, myArray:Array =
[]):void {
trace('hellow');
}

I get 
1047: Parameter initializer unknown or is not a compile-time constant. 

How do I make the Array parameter optional? :
myArray:Array = []

thanks,



Reply via email to