Re: [Flashcoders] Try... catch......

2009-05-09 Thread ACE Flash
Hi Hans, Thanks for the code :) I have one more question for the script below 1. if catch the TypeError, does the last line => return ball will execute? Thanks a lot public function myBall( value:int ):Ball { var ball:Ball = null; try{ //my cod

Re: [Flashcoders] Try... catch......

2009-05-09 Thread Paul Andrews
Yes. - Original Message - From: "ACE Flash" To: "Flash Coders List" Sent: Saturday, May 09, 2009 3:28 PM Subject: Re: [Flashcoders] Try... catch.. Hi Hans, Thanks for the code :) I have one more question for the script below 1. if catch the TypeError, does the last line =

Re: [Flashcoders] Try... catch......

2009-05-09 Thread Paul Andrews
I regret my one word answer because while it answers the question, there's a question of good practice to consider. Putting "return ball;" as the last line doesn't really help the casual code reader, because I need to really look hard at the code to realise that if ball is not explicitly set

Re: [Flashcoders] RegEx

2009-05-09 Thread Anthony Pace
http://help.adobe.com/en_US/AS3LCR/Flash_10.0/String.html#match() Anthony Pace wrote: I am reading the documentation, and it says that match and replace are only for air 1.0 and they have that nasty trilobal air logo. What the heck If that is the case then why are they running in the fla

[Flashcoders] RegEx

2009-05-09 Thread Anthony Pace
I am reading the documentation, and it says that match and replace are only for air 1.0 and they have that nasty trilobal air logo. What the heck If that is the case then why are they running in the flash player? ___ Flashcoders mailing list Fla

Re: [Flashcoders] RegEx

2009-05-09 Thread Muzak
Must be a mistake. There's no such mention here: http://livedocs.adobe.com/flex/3/langref/String.html#match() - Original Message - From: "Anthony Pace" To: "Flash Coders List" Sent: Sunday, May 10, 2009 12:54 AM Subject: [Flashcoders] RegEx I am reading the documentation, and it say