Thanks!
that seems to be the triple right way ;)
but converting the type of a myString:String to a myString:Boolean is just a big nono possible?
Latcho

Danny Kodicek wrote:

how to cast a string "true" into a boolean true and a "false" into false without using this long trick;
   var myBool:Boolean;
   myBool= ( myString == "true") ? true : false;

You could cut out the last bit:

myBool= ( myString == "true")
Danny
_______________________________________________
[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


_______________________________________________
[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

Reply via email to