BlackBerry-airpackager with js instead of swf (project .air to work)

I have a .air HelloWorld.air project.  It installs and works perfectly (just prints Hello World to the console, and creates a window with Hello World html as its prinout).  It has 3 files: HelloWorld - app.xml HelloWorld.html and AIRAliases.js.

The code of the HelloWorld - app.xml:

  1 
  2 http://ns.adobe.com/air/application/2.5">
  3    com.sample.HelloWorld 
  4    HelloWorld
  5    HelloWorld
  6    1.0.0
  7    
  8       HelloWorld.html 
  9       true
 10       
 11       
 12    
 13 

The code for HelloWorld.html:

  1 
  2 
  3    Hello World
  4    
  5    
 10 
 11 
 12    

Hello World

13 14

Hey gesinger,.

at the present time the playbook supports only Flash/AIR, which means that you must provide a SWF file so that your application is running. This is a very good explanation of why this is the case:

http://supportforums.BlackBerry.com/T5/Tablet-OS-SDK-for-Adobe-Air/basic-question-about-air-Implemen...

hope that things cleared up. Good luck!

Tags: BlackBerry Developers

Similar Questions

  • Priv de Blackberry blackBerry 10 with 10 BBOS instead of Android?

    I'll buy the Blackberry private and have a question for the guys who work for blackberry and have basic knowledge of:

    What happens if I don't like how the Priv combines Android with Blackberry applications - is it possible to run "ordinary" BBOS 10 on it?

     

    Nope. It will be a single Android device... at least for what has been said so far.

  • Problem with loading an external swf of in an external swf...

    OK, everything was going well on a Web site project, I worked, until yesterday. I will try to explain the whole scenario first, and I'll put the code here too so anyone can try to understand what the problem is. Here is a breakdown of the site:

    1) there a MAIN SWF file that plays an intro and then stops on the last image with the Navigation buttons 'hand'.

    2) in the root folder where the MAIN SWF resides, there is another folder called "sovereign wealth funds", which contains six main external navigation pages, but also another folder called "galleries" which contains additional external SWFs for six pages in the gallery.

    3) on one of the layers of the MAIN SWF, there is a clip called 'mySWFLoadingClip' that the buttons of Navigation of the 'hand' loading and unload pages external to swf. It all works perfectly. The beginning of the problem to the next step. This is the code I used for the buttons of navigation on the MAIN SWF scenario:

    var Xpos:Number = 0.0;
    var Ypos:Number = 0.0;
    var swf:MovieClip;
    var loader: Loader = new Loader();

    var defaultSWF:URLRequest = new URLRequest("swfs/home_page_swf.swf");

    Loader.Load (defaultSWF);
    Loader.x = Xpos;
    Loader.y = Ypos;
    this.mySWFLoadingClip.addChild (loader);
    ////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////

    Function universal BTNS
    function btnClick(event:MouseEvent):void {}

    this.mySWFLoadingClip.removeChild (loader);
    var newSWFRequest:URLRequest = new URLRequest ("SWFs /" + event.target.name + ".swf");
    Loader.Load (newSWFRequest);
    Loader.x = Xpos;
    Loader.y = Ypos;
    this.mySWFLoadingClip.addChild (loader);
    }
    Listeners of BTN
    home_page_swf.addEventListener (MouseEvent.CLICK, btnClick);
    portfolio_page_swf.addEventListener (MouseEvent.CLICK, btnClick);
    services_page_swf.addEventListener (MouseEvent.CLICK, btnClick);
    about_page_swf.addEventListener (MouseEvent.CLICK, btnClick);
    team_page_swf.addEventListener (MouseEvent.CLICK, btnClick);
    contact_page_swf.addEventListener (MouseEvent.CLICK, btnClick);


    4) one of the external navigation SWF pages is called "portfolio_page_swf" and gets loaded into the moveclip of 'mySWFLoadingClip' on the MAIN SWF. This is where the problem begins. The "portfolio_page_swf" has six buttons facing an additional external swf in the file galleries. Now when I open the file "portfolio_page_swf" to test if the buttons work, they work perfect. When I click the buttons, the external swf gallery files appear as they should. But the problem is that when I open the "MAIN SWF" file to test the site, I can click on the main Navigation buttons and they work. I click the portfolio button on the time line of Hand SWF and place of 'portfolio_page_swf' on the stage as it should, but when I click the buttons located in the 'portfolio_page_swf' galleries are not displayed. The page "portfolio_page_swf" buttons work only if I open the file 'portfolio_page_swf' directly. The following code is used in the "portfolio_page_swf":

    var Xpos:Number = 0.0;
    var Ypos:Number = 0.0;
    var swf:MovieClip;
    var loader: Loader = new Loader();

    var defaultSWF:URLRequest = new URLRequest("galleries/gallery_print_swf.swf");

    Loader.Load (defaultSWF);
    Loader.x = Xpos;
    Loader.y = Ypos;
    this.mySWFLoadingClipGALLERY.addChild (loader);
    ////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////

    Function universal BTNS
    function btnClick(event:MouseEvent):void {}

    this.mySWFLoadingClipGALLERY.removeChild (loader);
    var newSWFRequest:URLRequest = new URLRequest ("galleries /" + event.target.name + ".swf");
    Loader.Load (newSWFRequest);
    Loader.x = Xpos;
    Loader.y = Ypos;
    this.mySWFLoadingClipGALLERY.addChild (loader);
    }
    Listeners of BTN
    gallery_print_swf.addEventListener (MouseEvent.CLICK, btnClick);
    gallery_packaging_swf.addEventListener (MouseEvent.CLICK, btnClick);
    gallery_web_swf.addEventListener (MouseEvent.CLICK, btnClick);
    gallery_video_swf.addEventListener (MouseEvent.CLICK, btnClick);
    gallery_others_swf.addEventListener (MouseEvent.CLICK, btnClick);
    gallery_logos_swf.addEventListener (MouseEvent.CLICK, btnClick);

    If anyone can help understand me this I would really appreciate. This is a very important project and the deadline is coming up very soon. Please help me understand how to load an external SWF on the main timeline and then charge an additional external swf within the first external swf. I'm puzzled.

    If I'm following the structure you describe, it's probably a problem of targeting.  If you load a swf into another swf I think the scenario is the same that if you load a swf in a web page...  The charging base is the document down the chain, which is your main swf if you test Flash (otherwise it would be so stable web page in a web page).  So when your portfolio is responsible in the hand, it's like living in the folder of the hand, so your swf portfolio should probably include sovereign wealth funds in targeting... as in...

    var defaultSWF:URLRequest = new URLRequest("swfs/galleries/gallery_print_swf.swf");

  • When I open a link irc with a string name that contains "~" at the end, firefox (14.0.1) opens the same channel name but with "7%" instead of "~" at the end

    When I open a link irc with a string name that contains "~" at the end, firefox (14.0.1) opens the same channel name but with "7%" instead of "~" at the end
    http://img835.imageshack.us/img835/2856/clipboard05nq.jpg

    I can't open the image, but I can say something in general about the tilde.

    The tilde "~" is an unreserved character and that's why it can be replaced by its form encoded percentage '% 7' inside a URI without changing the meaning. See

    http://en.Wikipedia.org/wiki/percent-encoding

    According to article 2.3 of RFC3986 we should prefer the encrypted form so this behavior seems to be somewhat outdated.

  • Anytime I try to connect my blackberry 9700 with my Hp compaq 615 laptop

    Whenever I try to connect my blackberry 9700 with my laptop Hp compaq 615 I always get this error message... The bluetooth device driver is not installed. Install the latest driver for the device.

    Hello

    What version of Windows operating system is installed on your computer?

    I suggest to install the drivers provided by blackberry on the computer and check if this can help,

    Also try the steps in the following Microsoft article and check if it helps.

    Set up a Bluetooth enabled device (for Vista): http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-a-Bluetooth-enabled-device

    Solve problems with Bluetooth (for Vista) devices: http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-Bluetooth-enabled-devices

    Hope the information is useful.

  • Control with Labview instead of MAX PCI-1422

    Hello Experts,

    I need your help in one of my problem. I have a camera of sensors unlimited that is SU - 640 1.7 RT - D and a card parallel NI PCI-1422. I can use and acquire data with power MAXI of the camera, but I want to exploit, use and acquire images from the camera by using LabView. Is it possible to export or using the camera with Labview instead to write fresh code in LabView?

    LabView offers it all support or bed automatically PCI-1422 or any possible solution that I get the code for the use of this device block diagram in LabView.

    Please let me know, answer.

    For any help or suggestion will be highly appreciated.

    Thanks in advance!

    Hi David,

    You can use the function IMAQ write file to record the images to the disc. Please see the link for an example below.

    IMAQ writing file 2 VI

    http://zone.NI.com/reference/en-XX/help/370281M-01/imaqvision/imaq_write_file_2/#IMAQWriteJPEGFile2

    IMAQdx enter and save individual files

    https://decibel.NI.com/content/docs/doc-19537

  • My Win XP menu contextual folder always starts with 'Search' instead of how 'open' to ' open '?

    Original title: context menu of the folder

    My Win XP menu contextual folder always starts with 'Search' instead of how 'open' to ' open '?

    Edit the registry

    run regedit and navigate to [HKEY_CLASSES_ROOT\Directory\shell]
    the default value to 'none '.

    Or use this reg file, which does the same thing.

    Save and double-click, read this first if you want to check

    http://www.kellys-Korner-XP.com/regs_edits/folderopenssearch.reg

  • Opening files from the desktop causes to try to be open with WorkPerfect instead of Word

    When I try to open a document in the office, I receive a message indicating that it tries to open it with WordPerfect instead of the word.  Why this happens when I want, he opened with Word.

    Hello

    Go to Control Panel/Default Programs/Set file associations. Scroll down to the file type (.doc/.docx) and select it, then click on "program change" and choose a Word from the list, or click Browse for the word.exe file.

    Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • When you install the adobe reader software to change some of my icons and programs all try to open with adobe instead of their exe files. If I delete the adobe reader software, then they return to their exe. files and work well. Why what is happening

    I am running windows vista and am trying to install Adobe Reader.
    My internet programs explore and the printer have changed the icon and the programs trying to open with adobe instead of their exe. If I delete then adobe, they work fine...

    Hi dabrown52,

    You can check out the following link and try the suggestions posted by Linney MVP on Friday, January 29, 2010 19:03 and check if it helps.

    http://social.answers.Microsoft.com/forums/en-us/vistaprograms/thread/d18cbb53-6c2e-437D-ae98-ebba1d80f582

    If the problem persists, you can try uninstalling and reinstalling adobe.

    You can try to uninstall all older versions, Adobe Acrobat , and see if the problem is resolved. Uninstall earlier versions of the application and then install the version you want. If multiple versions of Adobe Reader are installed on the system, remove all versions and install only one version.
    To do this, follow these steps:
    1. click on Start, type Appwiz.cpl in the Start Search box, and then click Appwiz.cpl in the list of found files.
    2. double-click on the version of Acrobat or reader you want to uninstall.
    3. click on Yes if you are prompted to confirm that you want to uninstall the program.
    Note If you are prompted to confirm that you want to run the program, click on allow.
    4. click Yes to restart the computer.

    For more information, please visit the following links:
    http://Windows.Microsoft.com/en-us/Windows-Vista/uninstall-or-change-a-program
    http://social.answers.Microsoft.com/forums/en-us/vistaprograms/thread/8730d9b6-2fa6-41d2-815F-e68c9d3619ce/

    Hope this information is useful.

    Boumediene. K.
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • BlackBerry Smartphones with data when my blackberry is connected to Wi - Fi?

    I have BIS on my Blackberry Bold 9900. When I'm at home or work I have my BB automatically connected to Wi - Fi and Wi - Fi, so I have to do something about Facebook, Twitter, email, yahoo messenger, etc. BBM is using my data?

    Hi Gankuu

    Welcome to the Forums of the BlackBerry Support

    If your device you have wifi so it will automatically choose the first wifi network. So if you access or use the services of data on your device with WiFi on and then it will consume wifi not your cellular network data.

    See you soon!

  • BlackBerry sync with Google Calendar Blackberry smartphones

    HI, I managed to sync my main calendar for my Blackberry, but it doesn't seem to synchronize my other google calendars.

    I have 3 Calenders, one for me, one for CHILDREN that I share with my husband (and I also need this calendar on my blackberry to remember the events of those of children) and the calendar of my husband.

    At present, it is only to sync my main calendar. Does anyone know a way around it, so that it can synchronize all 3?

    Thank you!!

    While urhamilton gives good advice, as a new user I would offer that it could simply be that you didn't Sync to use all three.   I had the same problem and didn't you open Google Sync, go to Menu (the button left of the click wheel) and go to Options. There you can select the calendars to sync with.  I also have three and it works fine.

  • Outlook Smartphones blackBerry 0x80040FB3 with periodic meetings calendar sync error

    I'm trying to accomplish a synchronization very simply from my calendar to Outlook 2010 Enterprise (32-bit) on Windows 7 using BlackBerry Desktop Software v6.0.2.44 to my personal calendar on my curve.  Synchronization is set to go in a direction of Outlook-> curve.

    Well, it seems to work with one big exception.  Synchronization fails with error 0x80040FB3 cod anytime a meeting organizer changed one or more individual meetings initially set up through the series.   When I filter crime meeting, identified by the subject line, the synce will proceed without error.

    Alors_que adding these filters helped in troubleshooting, I can't continue in this mode of operation because: 1) it prevents me from having the full view on my agenda; (2) requires a lot of manual effort to identify the meeting the question; and (3) it is not solving the root cause of the problem.

    I searched the Bulletin Board and have not found this question expressed by others.

    I checked for updates of the software to desktop and portable, erased from the calendar held in the hand before synchronizing, deleted the Intellisync desktop folder and tried most of the other articles that I found in the forum related to questions that seem similar, but nothing did.

    Someone has an answer for this?

    I stopped using my Blackberry and moved to Android.  Until I'm done with the Blackberry, I found a solution for Outlook synchronization issues that worked for me.

    http://supportforums.BlackBerry.com/T5/General-BlackBerry-functions-and/error-code-0x80040fb3/TD-p/6...

    Remove the mapping for the availability and the participants.

  • BlackBerry smartphones can my blackberry 8800 with OS4.2 supported more than a calendar?

    I'm looking for a solution to be able to check my google calendar since the blackberry without intefrering with institutional calendar.

    My blackberry calendar syncs with my calendar on my desktop PC, which in turn syncs up with a group calendar - across the Department. This synchronization works automatically and is not under my control.

    I also have an account of personal google calendar that I want to be able to access from my blackberry. I've installed sync google calendar for blackberry, which didn't work the way I want to. In fact, it worked, but my google (such as lists of races, personal appointments) calendar entries were copied to my blackberry calendar, then as a result of my PC calendar, then as a result of the timing of the Department so I had to turn it off.

    Some people on this forum wrote to have more than one calendar on their blackberry but I don't see this option on mine. Help upgrade the OS? Blackberry model is 8800 with OS 4.2.

    Ideially I want to find an app for blackberry, separate calendar of the standard blackberry calendar application. Something like the gmail client: it works separately from my box of blackberry and my mail to individuals and companies are well separated. Is there a client of google for blackberry calendar application?

    Two calendars on blackberry would be an excellent solution. Another approach wouid be to enable calendar synchronization one-way only (only for the blackberry only, but not to him). Entered the calendar in this way would mix in the calendar of a blackberry. As long as this mixture does not spread the deparement calendar, which will also.

    You'll appreciate you help and suggestions.

    I solved it. Any application must be installed on the blackberry to access google calendar. It is available through the standard blackberry browser. All I had to do was to add a bookmark for this address:

    http://www.Google.com/calendar/m?source=mobileproducts&DC=gorganic

  • BlackBerry Smartphones with app Facebook 1.6 problem

    I wonder if someone could help. I've recently (yesterday) updated my Blackberry Pearl with version 1.6 of Facebook and now can now liked log in the application on my phone due to the following error:

    "Cannot connect because a data service is not available. Please try again later. If the problem persists contact your support provider. »

    It is a combined work, so using enterprise server, but 1.5 version used to work properly and things like msn messenger and myspace application also work. I reinstalled several times and followed up with the battery pull. Is there anything else I can do? Or does anyone know where to get the 1.5 version so that I can go back to that?

    Thank you

    L

    OK - this has been fixed! Contacted Vodafone and they told me that my BlackBerry had not been in service for internet access. They did something their end, and bingo, application works like a charm! Not really sure it was worth all the hassle, but there you go.

  • Smartphones blackBerry synchronization with MS Outlook calendar

    I used my BB with MS Outlook calendar. So far it works very well. Recently, a few articles on my Outlook calendar disappeared, but are still on my BB calendar.

    How can I get these items on the BB to sync to my Outlook calendar? Is this possible.

    I appreciate any help.

    Thank you

    Tamara

    sounds like a problem of multi calendar

    Open your calendar on your BB, click options and meu

    under fat calendars that make you see (address email, facebook, default of the unit?)

    Click on each of them and see what is the number of entries for each

    next go back to your home screen, go to options (for wheel) and then advanced options, default sevrices

    only one of these elements under fat calendars earlier is mentioned here beside CICAL?

    If you had entered with more than 1, you have a problem of multical

    one who is by default would be that you synchronize successfully, the other calendars that had entered and are by default not wouldn't entries do not sync

    There is a new article that can help you with m, new multicals for whoever you want by default

    http://www.BlackBerry.com/BTSC/search.do?cmd=displayKC&docType=kc&externalId=KB19240&sliceId=1&docTy...

Maybe you are looking for