Hi there,
I am trying to add try block in my code, how can I deal it with return
function?
If the code without any problems, I'd like to return "ball" , otherwise I'd
like to EXIT or return null.
Thanks
-------------------------
public function myBall( value:int ):Ball
{
var ball:Ball
try{
//my code goes here.....
return ball;
} catch (e:TypeError ){
}
// shall I add => return null here?
}
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders