There seems to be something wrong with the Flex API. The following code
generates the stack trace below:
public class Test extends Sprite {
public function Test() {
_map = new Map();
_map.key = "***************************************************";
_map.url = "http://www.*******************.com";
_map.sensor = "true";
_map.addEventListener(MapEvent.MAP_READY, onMapReady);
_map.addEventListener(MapEvent.MAP_INITIALIZE_FAILED, onMapReady);
_map.setSize(new Point(1024, 600));
stage.addChild(_map);
}
}
I've tried with the Flex SDK 3.5, 4.1 and 4.5. I've also tried
map_flex_1_20.swc and map_flex_1_18.swc. Same error. Any help would be
appreciated, I am not using MXML and could provide my Flex AS5 project if
required.
Thanks.
SWF] /mapsapi/publicapi - 4,117 bytes after decompression
[SWF] /mapfiles/lib/map_1_20.swf - 317,303 bytes after decompression
TypeError: Error #1009: Cannot access a property or method of a null object
reference.
at
mx.styles::StyleManager$/getStyleManager()[E:\dev\4.x\frameworks\projects\framework\src\mx\styles\StyleManager.as:125]
at
mx.styles::StyleProtoChain$/getStyleManager()[E:\dev\4.x\frameworks\projects\framework\src\mx\styles\StyleProtoChain.as:970]
at
mx.styles::StyleProtoChain$/initProtoChain()[E:\dev\4.x\frameworks\projects\framework\src\mx\styles\StyleProtoChain.as:149]
at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::initProtoChain()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:10446]
at
mx.core::UIComponent/regenerateStyleCache()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:10509]
at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::addingChild()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7213]
at
mx.core::UIComponent/addChild()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6910]
at com.google.maps.wrappers::SpriteFactory/addChild()
at com.google.maps.wrappers::ISpriteFactoryWrapper/addChild()
at com.google.maps.core::Bootstrap$/createChildComponent()
at com.google.maps.core::MapImpl/createChildren()
at com.google.maps.core::MapImpl/onContainerSet()
at com.google.maps.core::MapImpl/onAttached()
at com.google.maps.wrappers::WrapperBase/set wrapper()
at com.google.maps.wrappers::Wrapper/wrap()
at com.google.maps::Map/bindInstance()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.google.maps::ClientBootstrap/createFactory()
at com.google.maps::ClientBootstrap/executeNextFrameCalls()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
--
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/-/3KWd12rqlGgJ.
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.