Upgrading from 5.3 to 6.0 (the beginning)

So, I am back.  Finally able to devote some time to this because well, they told me I could work on my project again.  We are wanting to upgrade our 5.3.2 API up to the 6.0 API because we want to take flash player up to 10.1.  Well, you might think hey you shouldn’t have to do that, but we noticed there was a lot of issues with 5.3.2 loading the tiles up in flash 10.1.  The tiles would load then some would turn grey and say loading even though they loaded fine earlier.  More so in FireFox than IE, but still it is there in both.  We also noticed that 6.0 was not having this issue on the example apps so thus the upgrade. 

So downloaded the new API.  To my surprise it was only one SWC file as the others have been multiple files.  Cool, at the first look it is a good thing that they are down to 1 file, less for subversion to handle.  Then I did the dreaded thing;  I compiled the code.  50 errors.  YIKES, what happened…?  In saying with every upgrade come the loss of some of the old code.  I have experienced this other times and it can be very frustrating.  I took to digging into the documentation and trying to figure out what is going on.  There is a lack of documentation that lets me know what objects and functions have been depricated and what I can use to replace what I was using.  Some of the quick ones are (IPointLL, Exec, GeoAddress, IPointLLCollection, LocationCollection, Address, PointXY).   It seems we also lost some of the methods in a PolygonOverlay(setFillColor, setFillColorAlpha, setColor, setColorAlpha, setBorderWidth) which I was overriding to accomplish some of our goals.   

To start going through this I am going through there tutorials and example code trying to see what changed. 

Exec has been replaced with a Geocoder object.  I like this object a lot better.  All it seems you need to give it is the API KEY you get from MapQuest.  Good change from all the other information that you had to give to the Exec object.

GeoAddress is now the GeocoderLocation object.  However it is lacking the actual functions that bring back the public variables which I had coded all over the place. 

LocationCollection has changed to become a standard Array which you might want to use ArrayCollection where you were using LocationCollection.

Poi also had a little change, it looks like poi.getLatLng() is just poi.latLng (my guess is that a lot of the getters and setters are off of the objects now.

This is all I have found so far in sifting through the tutorials and trying to get updated.  If anyone else has gone through the upgrade please let me know what you have found that has changed.  I plan ok keeping this updated as I go on as well.  Keep posted for more of the updates. 


About this entry