So it dont work like int(), Number() and String() Very, very cool =/
VELO On Feb 4, 2008 6:35 PM, Sherif Abdou <[EMAIL PROTECTED]> wrote: > meant anything other than 0 and false is true but it cant be "false" > > ----- Original Message ---- > From: Marvin Froeder <[EMAIL PROTECTED]> > To: [email protected] > Sent: Monday, February 4, 2008 2:00:48 PM > Subject: [flexcoders] Strange behavior.... > > I'm making some test with Boolean Flex cast. > > > See: > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe. com/2006/ > mxml<http://www.adobe.com/2006/mxml>" > layout="absolute" > initialize="main()" > > > <mx:Script> > <![CDATA[ > private function main():void { > trace("Boolean: " + Boolean("true")); > trace("Boolean: " + Boolean("false")); > } > ]]> > </mx:Script> > </mx:Application> > > > I expect true and false on console. > > But I got: > [SWF] C:\framework\ workspace\ CobaiaFlex\ bin\BooleanTest. swf - > 445.501bytes after decompression > Boolean: true > Boolean: true > > > What happened? > > > Marvin > > > ------------------------------ > Never miss a thing. Make Yahoo your > homepage.<http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs> > >

