Hello,
It just kinda weird that i encounter and here is the cscenario:
I create a StringUtils.as;
package com.buspinoy.utils
{
public class StringUtils
{
public static function isEmpty(str:String):Boolean
{
return str == null || str.length == 0;
}
public static function isNotEmpty(str:String):Boolean
{
return !StringUtils.isEmpty(str);
}
public function StringUtils()
{
}
}
}
...this is based on org.apache.commons.lang, but when i put in a code like
this:
if (StringUtils.isEmpty(selectedText) )
{
comboCursor.findFirst(selectedText);
this.selectedItem = comboCursor.current;
}
...it gives me error Access of undefined property...any idea what is
happening?because i have static function working properly but not inside the
"if" condition.
btw, quick question, does AS will support method overloading in the future?
Thanks a lot.
Cheers.
--
View this message in context:
http://www.nabble.com/Error%3A-Access-of-undefined-property-tp21388507p21388507.html
Sent from the FlexCoders mailing list archive at Nabble.com.