Instead of posting a ton of :
if( Application.application.parameters.x)
this.x= Application.application.parameters.x;
if( Application.application.parameters.y)
this.y= Application.application.parameters.y;
... ad nauseam ... I was wondering if it was possible to do something
like this?
var elements:Array = [ "a", "b", "c" ];
for( var i:String in elements ){
if( Application.application.parameters.i )
this.i = Application.application.parameters.i;
}
I'm not too certain of the language constructs here being new to Flex,
help greatly appreciated! The highlighted line, it does not like.
Thanks!
Alex