Hi,
Try this for checking if one string contains another:
public static function contains(str:String, val:String):Boolean {
return str.indexOf(val) != -1 ? true : false;
}
Also, try to avoid attaching your functions directly to buttons, as it makes
scoping tricky:
this.opened_btn.onRelease=function(){
Check out the Proxy class here for a better way to handle that:
http://www.person13.com/articles/proxy/Proxy.htm
Hope that helps,
Jim Kremens
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com