Is it possible to cast a string as a Boolean?
'true' as Boolean
'false' as Boolean.
I am receiving text data back from an XML service;
The name of a node is 'autoPlay' and has a value of 'true';
This determines whether or not the player autoplays (as one might imagine)
I am trying to cast it in actionscript as a Boolean and that does not appear
to work (null value). Is there another way to go about this other than
conditional logic?
if (elementNode == 'true')
{
_autoplay = true;
}else
{
_autoplay = false;
}
--
Johnny Waggener
Software Developer
Multicast Media
678-592-2650