Are you trying to read a boolean from a xml document? If so, try it like that:
_miniMapPack=new MiniMapPack(_miniMap.child("active").toString() == "true" ); Cheers Ralf. On Tue, Mar 4, 2008 at 6:02 PM, Joe <[EMAIL PROTECTED]> wrote: > > > > > > > Hey all, > > So I am making an awesome class, that does awesome things. Really Awesome. > :P > > Anyways, So i get to the point were I am about to init a custom Class, > called MiniMapPack. > > _miniMapPack=new MiniMapPack(_miniMap.child("active")); > > passes a true value, even though the data is set to false. So I assume, that > It is just reading if it is there or not. > > However, When i make a getValue method... > > private function getValue(item:*):*{ > //no code is in this method > } > without anything inside of it, I can now pass the accurate value. Such as: > > > _miniMap:XML; > _miniMapPack:MiniMapPack; > > Before: > _miniMap.child("active"); //false > _miniMapPack=new MiniMapPack(_miniMap.child("active"); //true; > > After: > _miniMap.child("active"); //false > _miniMapPack=new MiniMapPack(getValue(_miniMap.child("active")); //false; > > Interesting, eh? > Anyone have an explanation? > > > -- > -Joe -- Ralf Bokelberg <[EMAIL PROTECTED]> Flex & Flash Consultant based in Cologne/Germany