[as3]
function stringToBoolean ( StringToConvert:String ) : Boolean{
if ( StringToConvert.toLowerCase() == "false" ) {
return false;
} else if ( StringToConvert.toLowerCase() == "true" ) {
return true;
} else {
return false;
}
}
[/as3]

Leave a Reply

Your email address will not be published. Required fields are marked *

Post Navigation