Re: Anyone see an issue with this code? :-)

2013-06-19 Thread OmPrakash Muppirala
On Wed, Jun 19, 2013 at 10:25 AM, Justin Mclean wrote: > Hi, > > > I feel an aslint application coming up... > It exists for JS so AS shouldn't be hard :-) It already exists and it is called the compiler! I am sure that the generated bytecode for this snippet is quite optimized. > Flex PMD do

Re: Anyone see an issue with this code? :-)

2013-06-19 Thread Justin Mclean
Hi, > I feel an aslint application coming up... It exists for JS so AS shouldn't be hard :-) Flex PMD does a good job (but requires a little tuning) I once run it over the Flex SDK and was rather horrified by the results. :-) Justin

Re: Anyone see an issue with this code? :-)

2013-06-19 Thread Erik de Bruin
I feel an aslint application coming up... ;-) EdB On Wednesday, June 19, 2013, Justin Mclean wrote: > Hi, > > And this may not do what you expect. > > if (true) > trace(true); > else > // will false be traced? > trace(false); > > Justin > -- Ix Multimedia Software Jan Luykenst

Re: Anyone see an issue with this code? :-)

2013-06-19 Thread Justin Mclean
Hi, And this may not do what you expect. if (true) trace(true); else // will false be traced? trace(false); Justin

Anyone see an issue with this code? :-)

2013-06-19 Thread Justin Mclean
Hi, The rabbit hole keeps getting deeper. From displayDropdown in DateField. if (screen.right > dd.getExplicitOrMeasuredWidth() + point.x && screen.bottom < dd.getExplicitOrMeasuredHeight() + point.y) { xVal = point.x yVal =