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
Nubuu
Posts: 19
Registered: ‎02-14-2012
My Device: Playbook
My Carrier: O2

Import .swc's to a blackberry Air Project

Hey guys,

 

i'm new to the "blackberry world" (i really like it :smileyhappy: ) and have a questuin about the components built for As3.

 

 

In the Blackberry-SDK Folder (/frameworks) there are 5 and more swc files, wich can be used by As3. Wich i have to use, if i wanna to use the blackberry specific Comps like Button, List and so on?

 

Importing all these files doesn't seem "right" to me.

 

 

Greetings, Nico

Please use plain text.
BlackBerry Development Advisor
twindsor
Posts: 820
Registered: ‎07-15-2008
My Device: Z10
My Carrier: Bell

Re: Import .swc's to a blackberry Air Project

Have you taken a look at our guide for creating your first AIR Application?

https://bdsc.webapps.blackberry.com/air/documentation/ww_air_getting_started/Create_your_first_appli...

 

The expectation is that you would be adding them all, but the qnx-air.swc is linked externally, while the others are merged. As you can see from the names, the various API additions are split across files, rather than added in a single monolithic file.

 

AIRlibraries.png

Tim Windsor
Application Development Advisor II
Please use plain text.
Developer
DachFlach
Posts: 148
Registered: ‎12-06-2010
My Device: Not Specified

Re: Import .swc's to a blackberry Air Project

Do you have instructions for adding required SWCs and ANEs to a Flash IDE ( CS6 )  project?

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Import .swc's to a blackberry Air Project

Is this for BB10 (SDK 3) or PlayBook (SDK 2)?
Please use plain text.
Developer
DachFlach
Posts: 148
Registered: ‎12-06-2010
My Device: Not Specified

Re: Import .swc's to a blackberry Air Project

Ultimately for both BB10 and PlayBook.

Working with PlayBook initially.

 

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Import .swc's to a blackberry Air Project

For PlayBook (SDK 2), all you really need to do is check "Add platform specific libraries to library path" under "AS Build Packaging" / "BlackBerry". This assumes you are using Flash Builder.
Please use plain text.
Developer
DachFlach
Posts: 148
Registered: ‎12-06-2010
My Device: Not Specified

Re: Import .swc's to a blackberry Air Project

The problem is specifically with Flash Professional IDE   Not   Flash Builder.

Plenty of Flash Builder instructions out there and recent too..  but Flash Professional has been left behind.

 

If anyone out there has successfully added BlackBerry libraries in a Flash Professional project  And was able to use them.... I would love to hear about it.

 

I should note, all other aspects of building an app in this IDE sweem to be fine.

Please use plain text.
Developer
DachFlach
Posts: 148
Registered: ‎12-06-2010
My Device: Not Specified

Re: Import .swc's to a blackberry Air Project

Ok..  Thank you!

I just realised what you said in your post..  use SDK 2 for PlayBook.

I was under the assumption..  and apparently wrong, that PlayBook could now use SDK 3.

 

So, I just swapped them and I have access to the libraries!

 

I am not sure yet if SDK 3 for BB10 will work however, as that was what I was using with no luck.

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Import .swc's to a blackberry Air Project

Correct, PlayBook = SDK 2, BB10 = SDK 3. Early next year (spring), PlayBook will be upgraded to SDK 3.x. I can see that it might be at the same time as getting AIR 3.4 too. It will be a big release for PlayBook.
Please use plain text.
Developer
DachFlach
Posts: 148
Registered: ‎12-06-2010
My Device: Not Specified

Re: Import .swc's to a blackberry Air Project

My issue still exists for SDK.

Perhaps I am not targeting BB10 correctly.

Is more than just using the other SDK when designating it for BB10 ?

Please use plain text.