Possible a difference in the load time between the servers and the timing
for the mapReady event versus your blueprintAvailable function being fired.
I would try making a third method/function here that gets called by your
blueprintAvailable and by mapReady that checks for both having been called
before doing this work so in pseudo code something like this:
function bluePrintAvailable():void
{
isBluePrintAvailable=true;
doStuff();
}
function mapReadyHandler(event:Event):void
{
isMapReady=true;
doStuff();
}
function doStuff():void
{
if(!isMapReady || !isBluePrintAvailable)
return;
//Do the rest of your code here
}
The behavior still seems strange for just accessing a static variable on a
class but maybe some of the classes aren't yet loaded until after map ready
(once it's retrieved some bytecode swf from the server).
Shaun
--
You received this message because you are subscribed to the Google Groups
"Google Maps API For Flash" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-maps-api-for-flash/-/5gJa4kyVppkJ.
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.