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
Developer
Innovatology
Posts: 1,280
Registered: ‎03-03-2011
My Device: Playbook, Z10, Q10, Z30 with Files & Folders and Orbit of course

BB10 WeatherGuesser sample for Flash Builder

For some reason, the BB10 WeatherGuesser sample was built for PowerFlasher FDT, not for Adobe Flash Builder. It uses a rather "exotic" project structure, which makes it difficult to get working in Flash Builder.

 

Attached to this message is a version that should be a little easier to use with FB 4.6. I've adjusted the package and asset locations and names to match the "best practices" that we are used to.

 

I won't go into how to configure FB and the SDK, or create a debug token. You can read about that here, here and here.

 

To use the sample, choose File > Import Flash Builder Project and select the .zip file attached to this post. After import, you'll need to modify the <author> and <authorId> tags in bar-descriptor.xml to match your debug token.

 

This sample is based on the AIR SDK beta4 version posted here on 2012-11-28.

Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands
Developer
Innovatology
Posts: 1,280
Registered: ‎03-03-2011
My Device: Playbook, Z10, Q10, Z30 with Files & Folders and Orbit of course

Re: BB10 WeatherGuesser sample for Flash Builder

PS: the sample is in desperate need of some documentation and comments in the source code, if anyone feels like it... ;-)

Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands
Regular Contributor
testworks
Posts: 76
Registered: ‎04-19-2011
My Device: Bold 9700

Re: BB10 WeatherGuesser sample for Flash Builder

Thanks for this - I gave up attempting to import the FDT based project - couldn't even work out how to make that into a mobile application :/

 

Managed to get your zip working in about 2 minutes flat :smileyhappy:

Developer
tensioncore
Posts: 324
Registered: ‎12-13-2010
My Device: Bold 9900/Z10 Special Edition

Re: BB10 WeatherGuesser sample for Flash Builder

THANK YOU THANK YOU THANK YOU!

 

I gave up on my attempt at making it work in FB 4.6, and have been wanting to try it out badly.

 

I might give a go at commenting it.

CEO/Lead Developer - Tensioncore™ Design Studios
http://tncr.ws/ - ShortenThis!™ for Blackberry Playbook | ShortenThis!™ for BlackBerry® 10
The Periodical Toe A highly informative Table of Elements
DrawThis! A fun drawing app for the BlackBerry® PlayBook™!
http://www.tensioncore.com/ - Tensioncore™ Web Hosting
Developer
Developer
mdd
Posts: 225
Registered: ‎01-17-2012
My Device: PB

Re: BB10 WeatherGuesser sample for Flash Builder

Cannot get this to work:

 

FB 4.7 - when importing, says it will be converted to AIR 3.4.

 - Changed app.xml to 3.4

 - set -forceAIRversion 3.1 in Advanced tab

 - inserted my author/authorId

 

BB10 DevAlpha simulator v 10.0.9.1673 (In FB 4.7 there is a new simulator option: AIR simulator - assuming we do NOT use that)

 

app launches, crashes after showing default (BB) splash screen: no consol output.

 

what am I doing wrong?

 

Regards,

 

 

Developer
Innovatology
Posts: 1,280
Registered: ‎03-03-2011
My Device: Playbook, Z10, Q10, Z30 with Files & Folders and Orbit of course

Re: BB10 WeatherGuesser sample for Flash Builder

Have you specified AIR 3.1 on the first line of your WeatherGuesser-app.xml?

Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands
Developer
Developer
mdd
Posts: 225
Registered: ‎01-17-2012
My Device: PB

Re: BB10 WeatherGuesser sample for Flash Builder

For FB 4.7, (as I understand) xmlns must be 3.4

 

then we use "-forceAIRversion 3.1" in the Advanced tab in Build Packaging.

 

It runs fine in FB 4.6, but trying to test with latest FB/SDK's...

 

Regards,

 

 

Retired
dmalik
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook

Re: BB10 WeatherGuesser sample for Flash Builder

Also make sure you add the compiler argument -swf-version 14

 

Full instructions - https://developer.blackberry.com/air/documentation/bb10/gsg_change_runtime_fb.html 

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Developer
Developer
mdd
Posts: 225
Registered: ‎01-17-2012
My Device: PB

Re: BB10 WeatherGuesser sample for Flash Builder

doh! that did it... Thanks Dustin!

Developer
Developer
mdd
Posts: 225
Registered: ‎01-17-2012
My Device: PB

Re: BB10 WeatherGuesser sample for Flash Builder

sorry to pester, but...

 

This says its running in captive mode - is that correct?

 

If so, does that mean that the app (also built using FB 4.7) that I submitted to the Hack-a-Thon will not be accepted?

 

Regards,