Monday, April 13, 2009

My first steps with OpenScales

After a big refactoring of the imported/rewritten OpenLayers code, I wanted to test a little bit OpenScales. After playing with the demo: http://openscales.org/openscales.swf, let's try to develop something.
All information are here: http://openscales.org/p/openscales/page/Development/
For information, because of FlexBuilder doesn't work on Linux, I'm on a Vista Home edition computer.

1. Install Tortoise. Good Windows installer here: http://tortoisesvn.net/downloads (bouh... it needs a restart...)

2. Checkout svn code with Tortoise

3. Then start FlexBuilder (standard version for 249$). In Flex builder, click on File -> Import -> General -> Existing projects into workspace and FlexBuilder makes all the work for you.

4. Then find openscales-fx-examples\src\main\flex\index.mxml and run it. If you see a nice flex app, then it should be ok.

5. For the fun, I changed the line 43 of OpenStreetMap.mxml from
mark.addEventListener(MouseEvent.CLICK, showPopup); to
mark.addEventListener(MouseEvent.MOUSE_OVER, showPopup);
It works !

Hope it can help someone.

No comments: