Well I get somewhat close to fixing it
then I notice “this cannot be used for commercial use”. _________________________________________ Jonathan Miranda Flexible Master of the Web "In the
game of chess, it's important to never let your opponent see your pieces." From: Flex 1.5 was used to create the Yahoo Maps currently on
Yahoo's dev site. As such, it won't compile in Flex 2. You can load
it into a Loader maybe, but then you could only control it via LocalConnection,
and they don't have a LocalConnection API in it. Your best bet is to create one via Flash; load the SWC in
there, put some proxy functions on _root, like: function __resolve(name) { return yahoo_mc[name]; } // localconnection, etc. ANd then publish the SWF, and load in Flex 2, and then
extned LocalConnection implementing the API that you put in the Flash SWF. ----- Original Message ----- From: Jonathan
Miranda Sent: Monday, February
06, 2006 3:30 PM Subject: [flexcoders] Yahoo
Maps & Flex 2 Anyone got a no-brainer solution to this or know somewhere
where I can find this information? I’m trying something just real basic
with the SWC in the root of the project and I’m getting “YahooMap
is not a compile-time constant” or something close to that. Ideas? <mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml"
xmlns:yahoo="com.yahoo.maps.api.flex.*" xmlns:local="*"
xmlns="*" > <yahoo:YahooMap id="myMap"
width="550" height="400" zoomLevel="3"
latitude="37.77159" longitude="-122.401714"
initialize="onInitialize(event);" /> </mx:Application> _________________________________________ Jonathan Miranda Flexible Master of
the Web "In the game of
chess, it's important to never let your opponent see your pieces."
|