hey, I'm relatively new to flex as well but the way in which you are using the SWC is more apropreate for the map_1_9.swc becuase you are addressing it through action script verses MSXML. When your flex application is compiled the MSXML will be compiled before your action script, thus is may cause the exact behavioral anomalies you are experienceing depending on how your code is written. My advise is when in doubt stick to one or the other. I actually prefer to go at it through the actionscript library(I feel like I have more control over what will happen). To address the removal of your initial <maps:Map> control I believe that you where having a namespace problem due to the use of two differently compiled versions of the same library. So if you stick to one way of accessing the SWC verses the other this problem may go away. I hope I've helped at least a little. good luck, Andrew
On Wed, May 13, 2009 at 11:40 AM, Saxon <[email protected]> wrote: > > Hi, > > I'm building an app using the flex SDK, and was using > map_flex_1_9.swc, with a <maps:Map> control. > > I then tried to add a second map dynamically using: > > var map:Map = new Map(); > ... > stage.addChild(map); > > Although something seemed to be happening (eg the MAP_READY event was > being fired), the map wouldn't appear on the screen. > > I found that if I removed map_flex_1_9.swc and added map_1_9.swc, then > my dynamic map would work (although my original <maps:Map> had to be > removed for it to compile). > > Is this expected behaviour? > > Is it 'safe' to use map_1_9.swc with a flex SDK app, as long as I > don't mind using new Map() for all of my maps instead of <maps:Map>? > Is the only difference the addition of <maps:Map>, or is there > something else I might be missing out on? > > Thanks, > Saxon > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-maps-api-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
