Friday, February 03, 2006

Sending float values from Java to Macromedia Flex

I'm pretty new developing with Macromedia Flex. We stared working with Flex, because it is very easy and simple to pass Java Object to ActionScript Objects (Flex Objects). A few days ago we had a problem seding float fields on Java Objects to AS Objects. Every Numeric Field(int, float, double, byte) on Java is translated into Number Object in AS. Every time we tryed to send a float field it loosed its precision on Flex. That means, on Java we had a float field call 'fee' with value 0.01 and on the Flex side we had a Number field call 'fee' but we received the value 0.0099872457 that was almost 0.01, we tryed many ways to fix this problem. The final solution was to used double instead of float fields on the Java side. Flex treats every decimal value as double values to avoid loosing precision, I know the solution sounds kind of fool , but for some reason Java float fields are not well translated to Flex Number Objects. If you want to know more about the Java to Flex translation process you can click this link.

Thursday, February 02, 2006

Welcome NetBeans 5!!!!!


Today was released the new version of the Most Amazing Java Editor, NetBeans 5. NetBeans is totally open-source, for me it's actually the best IDE for Java Developers. So here is the link to download it. And enjoy your development!!!!
http://www.netbeans.info/downloads/download.php?type=5.0