×
Namespaces

Variants
Actions
Revision as of 09:35, 13 August 2012 by hamishwillee (Talk | contribs)

Create Flash Applications with Carbide.c++

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Code ExampleCompatibilityArticle
Created: Risalmin (09 Dec 2009)
Last edited: hamishwillee (13 Aug 2012)
{{{width}}}
03 Jan
2010

This article explains how to add a plugin for Carbide.c++ to quickly compile your Flash project into a Symbian installable application for S60 3rd edition and 5th edition Nokia Symbian devices. If you are interested in packaging into a WRT widget, see the article How to package Flash content in a Widget. If you want to package Flash for Series 40 phones, go and see this document about the NFL format.

Contents

Prerequisites

You need to have access to a computer with Windows operating system. If you already have a working Symbian SDK and Carbide.c++ IDE installed, you can skip to Step 1.

Download a Symbian SDK

The Symbian SDKs are free. You are only required to register as Nokia Developer member, which is also free.

  • Get S60 5th Edition here
  • Get S60 3rd Edition here

Download and read the release notes corresponding to your choice of the SDK.


From the release notes you will learn:

  • If you need to have installed some 3rd party software like ActivePerl and Java Runtime Environment (JRE).
  • Known issues (e.g. installation problems and known bugs or limitations)

Note.pngNote: If you have Windows Vista, read also Using Nokia SDKs and Tools on Windows Vista.

Install the SDK

Once you are sure you have all the necessary pieces of the SDK puzzle, install the SDK on your PC.

Install Carbide.c++

Carbide.c++ is a free IDE from Nokia, you can download and install it from the link below

Creating and testing a Flash Stub app

Follow the steps below to create a Flash Stub application. Please note, that to be able to publish sis file in the Nokia Store you need to have a publisher account for the Nokia Store and to sign the sis file. More information about signing in the chapter Ready for Signing

Step 1. Add the Wizard template for Flash Stub

(only needed once)

  • Make sure Carbide.c++ is not running and closed.
  • Unzip and drop this .jar file to <installation path>/plugins (for example C:\Apps\Nokia\Carbide.c++ v2.0\plugins)

Step 2. Open Carbide and create a new stub

  • Start a new project (ctrl+N)
  • In Select Wizard dialog, select 'Symbian OS/Symbian OS C++ project
(Click Next)
  • In Select type of project dialog, select Flash stub application

NewStub.jpg

(Click Next)
  • Give a name to your project
(Click Next)
  • Select the SDK
Flash does not work in the emulator, select only Phone Release GCCE

SelectSDK.jpg

(Click Next)
  • Give your project’s UID, you author name and a Copyright, if desired
NOTE: For the first trial, you might wish to leave the Test UID there, since a “real” UID will not work for Self Signing

TypeUID.jpg

(Click Finish)

Step 3. Drop your own content in

DataFolder.jpg

  • Select the data folder under the project.
If you cannot see the Data folder, select Window\Open perspective\Other…\C/C++
  • Right Click on the folder and select Show in Explorer
  • Drop your SWF into this folder, rename it and replace the one in the folder (it’s a placeholder swf)
The name needs to be the same as the placeholder swf.
If you have more than one file, add the extra files your PKG file in the 'group folder

Step 5. Test the content

  • Select your project in the left pane
  • Press Ctrl+B to build the project
Wait for the build to finish

Build.jpg

  • Right click on the sis folder and select Show in Explorer
  • Send the *.sisx file to your device (sis=unsigned, sisx=self signed)
*.sis is an unsigned file, which cannot be installed anywhere. the 'x' in the end is not mandatory for signed files, it's for convenience only.
Emulators don’t support Flash, so you need to have a supported device
If you do not have a supported device check the Remote Device Access service

Note.pngNote: For S60 3rd Edition: The sis will compatible with both S60 5th and S60 3rd edition devices, but is if you are targeting a S60 3rd edition device, you cannot have the location capability in a self signed application. So in this case you need to edit the *.mmp file in the group folder and remove the location keyword at the end of the file.

Creating the actual application

Getting a UID

Now, if everything is OK, and you wish to make a commercial application, go and get a UID from Symbian Signed. Here too you need to create an account, but Symbian signed is also a free service. If you do not wish to make a commercial application, you can use the automatically generated UID, it's from a free range and can be used for testing and Self signed apps. But a commercial application needs a "proper" UID assigned to your company name.

Make a new Flash Stub project

(O.K. this is not absolutely necessary, you can of course find and replace each and every occurrence of the UID all over the project, but since the Wizard is so nice and easy to use, why not take advantage of it ;o)

  • Repeat steps 2 and 3

Step 6. Getting ready for delivery

RLSFile.jpg

  • Edit the content of qtn_caption_string in group\<projectname>.rls
This is used as your application title in the device
Make it as short as possible, there is not much room on the Applications menu
  • Drop a new SVG icon to “gfx” folder, remove the placeholder svg and give your icon the same name it had.
More information about creating SVG icons in: How to create a Symbian application icon (SVG)

Testing the final application

Now that you have your file in a commercial format you cannot self sign it anymore with a self signing key. In the previous steps Carbide was creating a self signing key for you, but since you are now using a proper UID you need to have the file properly signed. You can use the Open Signed Online tool for signing the sis for installation to a single device. For this you need to give your IMEI code. (press *#06# on the device).

Note.pngNote: Even though in the sis folder you still have both a self-signed .sisx and an unsigned .sis file, you cannot install either one of them to your phone, you need to have the .sis file open signed, the .sisx is useless at this point.

Ready for signing?

TIP

The following is only needed for signing with your Publisher ID: Instead of using the command line tools for signing and making the sis package, you need to use Carbide. A new key is added like this:

  • Right click on the project icon in Carbide
  • Select Properties
  • Select Carbide.c++ / Build configurations
  • In SIS builder tab select the configuration (you should have only one by now) and click Edit
Check Sign sis file with certificate/key pair
Browse and select the cer and key files you got from you pfx file.

Note.pngNote: IMPORTANT
You cannot install a sis package signed with your publisher ID, it's only meant for submitting to Symbian Signed.

To be able to install and submit to OVI Store, Go to Express Signed for Flash Lite apps and follow the instructions there.

Feedback much appreciated!

Please use the Comment tab for feedback to the author.

316 page views in the last 30 days.