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.
12-11-2012 02:04 PM
This is a Flex class.
Make sure you are pointing to the proper Flex SDK in your library build path if you would like to use this API
12-11-2012 04:58 PM
I'm aware its a Flex class. I am using Flex 4.6.0/FB 4.6 (because Adobe hasn't answered my request for a complimentarry upgrade).
In other projects that use Flex 4.6.0 in the same workspace, the build path includes more than a dozen swc's. In my BB10 app, only 5 swc's are included and mx.utils isn't found.
So, which swc contains mx.utils. I don't recall having to manually add extra swc's previously.
12-11-2012 05:19 PM
I'm not sure the exact swc but the location for them is:
[Flash builder install dir]\sdks\4.6.0\frameworks\libs
You wouldn't have to add them if you created a Flex Mobile project. If you created an AIR mobile project it won't add the Flex classes by default.
12-12-2012 11:22 AM
no sooner did I post, Adobe sent the link for FB 4.7. Maybe thanks to Dustin...
Anyway, followed the great docs, posted earlier by Dustin, installed BB10 Gold.
Then, imported my existing FB4.6 projects into FB4.7:
- libraries stayed as Flex 4.6.0, BUT
- apps were converted to AIR 4.6.0, and have lots of errors:
where did I go wrong?
12-12-2012 11:29 AM - edited 12-12-2012 11:30 AM
"import qnx.fuse.ui.text.*;" - should work fine. FB4.7 will give you a warning though that that your not using it in your app. I recommend just importing the classes that you're actually using.
"[Embed (source=..." - FB4.7 changed the way that they handle embeds. Have a look at this thread on the Adobe forums for more info - http://forums.adobe.com/thread/1062413?tstart=0
12-12-2012 11:33 AM
great to know - thx
I deleted AIR 4.6 from the build path, then added the Flex 4.6.0 SDK and that seems to work - at least no compile errors.
Should I convert to AIR or try to stay with Flex? Also: what about mixing AIR app with Flex libs???
12-12-2012 11:35 AM
It's up to you and what your app is trying to accomplish
I've only ever done AIR only apps but that's just how I like to code.
12-12-2012 02:32 PM
If my app is AIR 4.6 and my library is Flex 4.6, when launched on simulator, app crashes immediately/no consol output.
If I try to make an ActionScript library instead, none of the qnx/ANE's are found. Even adding them manually does not work.
1. What kind of project should I use for a library compatible with AIR 4.6?