Welcome!

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

Reply
Contributor
jansensan
Posts: 30
Registered: ‎04-04-2012
My Device: BlackBerry Playbook

Help needed with first project built with FDT5

So I got my hands on the Playbook and am happy to discover there is an AIR SDK for it. I can't seem to figure how to make it work, and I don't seem to find what I need from my google-fu. So I though I couls ask here.

 

I want to try and publish the most simple thing there is: a simple project with a button on it. I installed the SDK, pointed to the Flex SDK 4.5.1.21328 (Flex Hero) which has the AIR SDK 2.6. I created an AIR project, with a simple AS file. Below is its code:

 

package net.jansensan.playbookhelloworld

{

import qnx.ui.buttons.LabelButton;

import qnx.ui.core.Container;

 

 

[SWF(backgroundColor="#cccccc", frameRate="30", width="1024", height="600")]

public class PlaybookHelloWorld extends Container

{

public function PlaybookHelloWorld()

{

trace("hello world");

 

var button:LabelButton = newLabelButton();

button.label = "hello world";

addChild(button);

}

}

}

 

Then I went in the debug configuration to create a new one. However, when I click debug, I get an error:

 

"Compile" has encountered a problem. An internal error occured during: "Compile".

 

And details are equally vague:

 

An internal error occurred during: "Compile".

java.lang.NullPointerException

 

The SWF is not even generated, due to that error.

 

I know it's not that I cannot publish AIR projects with FDT, as I have tried, to cover that option, and AIR only projects work.

 

Michael Chaize published a video explaining how to do this in Flash Builder (http://vimeo.com/16470265), because there is an integration into that IDE.

 

So the question is, how to do that with FDT? Any help is welcome!

--
mat janson blanchet
twitter: @jansensan, portfolio: http://jansensan.net/portfolio, tech blog: http://jansensan.net
Developer
Smugrik
Posts: 185
Registered: ‎04-05-2011
My Device: PlayBook

Re: Help needed with first project built with FDT5

There are some nice resources linked in the FDT community pages:

 

http://fdt.powerflasher.com/docs/Community_Resources#RIM_Blackberry_Playbook

 

you could also check this post on my blog on how to customize FDT templates for the PlayBook:

 

http://www.smugrik.org/playbook/fdt5-project-template-for-playbook/

Julien
Web: smugrik.org Follow: @Smugrik
PlayBook apps:
OSCream
kiPass
Contributor
jansensan
Posts: 30
Registered: ‎04-04-2012
My Device: BlackBerry Playbook

Re: Help needed with first project built with FDT5

Thanks for the resources Smugrik, however using the SDK and creating a project is not my issue. It's that the SWF does not get created at all. Anything else I should check.

--
mat janson blanchet
twitter: @jansensan, portfolio: http://jansensan.net/portfolio, tech blog: http://jansensan.net
Developer
Smugrik
Posts: 185
Registered: ‎04-05-2011
My Device: PlayBook

Re: Help needed with first project built with FDT5

I heard FDT 5.5 has blackberry intégration... So you might want to check it out http://fdt.powerflasher.com/2012/04/fdt-5-5-beta-released/

 

I remember a few weird bugs with FDT 5 it wouldonlly recognize a air 2.6 sdk, so you have to manually fake the tablet os sdk signature to be able to use it with FDT...

 

Julien
Web: smugrik.org Follow: @Smugrik
PlayBook apps:
OSCream
kiPass
Developer
greg209
Posts: 70
Registered: ‎12-13-2010
My Device: Playbook 16Gb

Re: Help needed with first project built with FDT5

Unfortunately, I've had this error several times with FDT and never got to the bottom of it as there is not a lot to go on from the error.

 

I came to the conclusion (and have avoided it since) that using the Flex SDK with the Blackberry SDK overlayed seems to cause problems with the Debug compile. Even changing back to a pure Flex SDK (with no Blackberry SDK overlay) doesn't seem to fix the problem (or at least didn't for me).

 

I always use ANT scripts now to manage my Playbook compile/debug and deploy which avoids this problem.

 

I haven't tried FDT 5.5 yet - maybe that does help.

 

Sorry it's not a true solution to the problem.

 

Greg

 

 

Contributor
jansensan
Posts: 30
Registered: ‎04-04-2012
My Device: BlackBerry Playbook

FDT 5.5 update

Hey guys, so FDT 5.5 beta indeed helps for BlackBerry Playbook projects: https://twitter.com/#!/jansensan/status/192351810575548417

 

That comes from the project with which I had an issue when I asked this questions.

 

However, creating a new project with the provided template is still an issue: http://bugs.powerflasher.com/jira/browse/FDT-2692

 

Anyone else facing this?

--
mat janson blanchet
twitter: @jansensan, portfolio: http://jansensan.net/portfolio, tech blog: http://jansensan.net
Developer
Smugrik
Posts: 185
Registered: ‎04-05-2011
My Device: PlayBook

Re: FDT 5.5 update

Hi!!

 

Just checked FDT 5.5, PlayBook integration not available yet, thanks @jansensan for submitting a case...

For now I'll stick with FDT 5 and Ants scripts + my PlayBook project template ;-)

Julien
Web: smugrik.org Follow: @Smugrik
PlayBook apps:
OSCream
kiPass