I'm creating a BlackBerry app for PlayBook using Adobe Flash Builder. For that I need to import qnx.fuse.* and it shows an error message telling The import fuse could not be found. But I can import some other BlackBerry components. For example, I have the following imports:
import qnx.dialog.DialogButtonProperty;
import qnx.dialog.PromptDialog;
import qnx.display.IowWindow;
import qnx.fuse.ui.buttons.LabelButton;
import qnx.fuse.ui.text.Label;
But, only the last two imports show errors. Why is that?
Thanks in advance!
The new Fuse components are the correct ones to use for AIR development at Playbook.
The API is documented at https://bdsc.webapps.blackberry.com/air/api
Maybe you can't import qnx.fuse.*; because there are no classes in that folder, it just holds other sub-folders. It's ok.
What Blackberry Playbook sdk version for air you have installed.
import qnx.fuse.ui.buttons.LabelButton;
import qnx.fuse.ui.text.Label;
These imports can be used if you are using Flashbuilder 4.6 & Air version 3.1 , below it will not supported.
https://developer.blackberry.com/air/apis/
You need to do two things to get access to those classes.
Add the native extension QNXSkins from qnx
Add the quxui.swf to your Library Path (Properties->Build Path->Library path). That file is located at /Application/ResearchInMotion/blackberry-tablet-sdk-3.1.0/frameworks/libs/qnx (on Mac).
Related
I'm thinking if is possible to connector to bind somehow many ANE files?
For example if I have Vibration ANE , GoogleMaps ANE and AdMob ANE... I have to import each ANE, one by one in my project. My question is: could be there a solution to connect ANES togeter and import only one file and inside this file to be all my ANE...??
Thank you.
I created a project that has add mysql-connector-java-5.1.34-bin as a library to the project using IntelliJ 13, but when I tried to import com.mysql.jdbc.ResultSet, the IDE shows that it can not resolve the symbol ResultSet. I'm wondering how to resolve the issue.
[EDIT] when I tried import com.mysql.jdbc.PreparedStatement;, it has no problem.
cheers
Looking inside the MySQL Connector/J .jar file (e.g., by using the Package Explorer tree view in Eclipse) we see that com.mysql.jdbc does contain PreparedStatement.class but does not contain ResultSet.class
That is, you cannot
import com.mysql.jdbc.ResultSet
because it doesn't exist. What you really want to do is import PreparedStatement, ResultSet, etc. from java.sql, as in
import java.sql.PreparedStatement;
import java.sql.ResultSet;
or the lazy option
import java.sql.*;
I've had not trouble until this point directly from MXMLC command line. While compiling Actionscript 3 code I ran into a dependency problem.
import flash.filesystem;
and I get
Error: Definition flash:filesystem could not be found
There are another or two file-related libraries such as filestream. Where can I find these standard libraries and how might I add them to my MXMLC library PATH?
What are the specific classes you are trying to use? If you want to import all of the classes in the flash.filesystem package you need a * at the end of that import statement. Otherwise you need to append the class name(s). Something like one of these:
import flash.filesystem.*;
or
import flash.filesystem.File;
The other thing that might be an issue is the values in your flex-config.XML (or air-config.xml) file that is part of the SDK. You might need to configure this to include the classes in the AIR sdk, etc.
I think I'm missing some classes in my library.
If I type in 'import fil', FD4 autocompletes to only this:
import flash.net.FileFilter
import flash.net.FileReference
import flash.net.FileReferenceList
I saw people using FileStream and wondered why I don't have this class available.
Do you guys know why this happens and how I can obtain the library?
FileStream is only available when targeting AIR 1.0+.
I´d like to know.
What exactly does 'import'?
I´m thinking about to use a flash component with this 'import':
//import the required data class
import fl.data.DataProvider;
//import the AutoComplete class
import com.yahoo.astra.fl.controls.AutoComplete;
I mean, I don´t have those folders in my app main folder.
Is it importing from web?
If yes, is it safe? If server is shut down, will the app, that uses those classes, crash?
Thanks.
I am almost completely certain that import does not get anything from the web. I use imports for a complex game core I wrote. Imports can either import from a component of the Flash platform, or from your own classes. When the .swf is compiled, those classes are pulled in and compiled as part of the project.
In order to import something other than from the Flash platform, you WILL need to have the folders in your project. For example, I have gradua.as at trailcrest/gradua/gradua.as, and that trailcrest folder is located in the same directory as my Flash project (.fla). At the top of my gradua.as class, I have the following:
package trailcrest.gradua
{
public class gradua
Then, I can import gradua for use in my main .fla's document class (named osr.as, btw)...
import trailcrest.gradua.gradua;
public static var Gradua:gradua = new gradua();
And I can access its functions (such as my Score function) from anywhere in my project...
osr.Gradua.Score(true);
Again, to restate...to the best of my knowledge, you CANNOT import from the web this way. Flash is going to look for the file path com/yahoo/astra/fl/controls/AutoComplete.as in your project directory...and in a couple other places on your computer, tho I'm not sure where atm...
With the import statement you can include certain ActionScript classes in your application, which then will be compiled in your SWF file. If you use strict syntax and you try to use a Class member that is not imported, the compiler will tell you about it. Otherwise your app will still work.
The imported AS classes must be added to your library path, or src path when working on an ActionScript project. You can't import online files.
Rob