Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Posts: 526
Registered: ‎05-17-2009
My Device: 9900
My Carrier: ATT

Re: Google Maps API

[ Edited ]

I get passed the loading of the map in a few seconds but nothing is ever displayed on the pb screen. Any ideas? This is the map code im using, might be missing something. Right from their sample app.



			map.key = "my key";
			map.setSize(new Point(stage.stageWidth, stage.stageHeight));
			map.addEventListener(MapEvent.MAP_READY, onMapReady);


		public function onMapReady(event:MapEvent):void {
			map.setCenter(new LatLng(40.736072,-73.992062), 14, MapType.NORMAL_MAP_TYPE);


Edit: ok i got it to do something. That something is an exception now. Anyone seen this error?


TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.styles:Smiley FrustratedtyleManager$/getStyleManager()[E:\dev\4.x\frameworks\projects\framework\src\mx\styles\StyleManager.as:125]
    at mx.styles:Smiley FrustratedtyleProtoChain$/getStyleManager()[E:\dev\4.x\frameworks\projects\framework\src\mx\styles\StyleProtoChain.as:970]
    at mx.styles:Smiley FrustratedtyleProtoChain$/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:Smiley FrustratedpriteFactory/addChild()




Like all of my posts
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Google Maps API

At what line in the code are you getting this error?

It appears you are calling or using an MX control??

Setting a style somewhere??

Dont use UIComponent from MX, use the QNX UIComponent.


I have had no problems in getting GMaps to work in AIR and the simulator.


If you can share more (or create a smaller project where the maps is causing the problem), I might be able to help.

Posts: 526
Registered: ‎05-17-2009
My Device: 9900
My Carrier: ATT

Re: Google Maps API

All I did was take the sample application and add the google maps code to it and get that exception. Ive moved to a mobile application in burrito instead of the actionscript app built around qnx components now and it works well with that, even if its slow to load.

Like all of my posts
Posts: 1
Registered: ‎01-10-2012
My Device: PlayBook 16GB
My Carrier: AT&T

Re: Google Maps API



I know this isn't exactly what you're asking, but just wanted to point out that MapQuest offers a Mobile Flash API and it is still under development (not deprecated, like GMaps).  They have a Developer Network website that goes into more detail about their APIs.


They also have a showcase/sample app that was built with Flash Builder 4.5.1 and deployed to iOS and Android, but it could also be deployed to the PlayBook.  There is more info about it here and they do have their source code available here.  


I hope this isn't too obnoxious, but I figured this would be a good "first post" to the forum, since I'm pretty new to the PlayBook, and this is actually something I know a little bit about! Smiley Happy