Subscribe to RSS
get email updates
home | about | pixDif AIR app | video tutorials
polyGeek.com

Publishing AIR 1.5 apps

December 7th, 2008 . by polygeek

If you want to take advantage of the new features in AIR 1.5 – Flash Player 10, encrypted databases, etc. – then you’ll have to update your Flex Projects, or create new ones, to work with the new framework. Here are the steps that I went through. Actually, these are the abbreviated steps that don’t include all of the wrong ways that I did it first. :)

I have already updated to Flex Builder 3.0.2 and the Flex SDK 3.2 so that’s where I’m starting here. If you haven’t yet updated then you may need to backtrack and take care of that first. Here are a few useful links to take care of that:

Create/Update a project
Right-click on your project and select properties -> Flex Compiler. Make sure you are using the 3.2 SDK.

Flex Properties

Line 2 of you’re Adobe AIR Application Descriptor File Template – usually appName-app.xml – should read:

1
&lt;application xmlns="http://ns.adobe.com/air/application/1.5"&gt;<!--formatted-->

That should cover it.

Quick 3D test
If you would like to take it for a quick test drive then try something simple like transforming a component in 3D like such:

1
2
3
4
5
6
7
// runs on creationComplete
private function init():void {
var m3D:Matrix3D = new Matrix3D();
m3D.appendRotation( -10, Vector3D.Z_AXIS );
m3D.appendRotation( 15, Vector3D.Y_AXIS );
panel.transform.matrix3D = m3D; // ID of some &#039;panel&#039; you created
}

Panel transformed in 3D

AIR 1.5 specific
If you would like to try out one of the new AIR 1.5 specific features then try H. Paul Robertson’s Working with the encrypted local SQLite database. All you have to do is copy/paste his code – and don’t forget to add the EncryptionKeyGenerator.as file. His example won’t work without AIR 1.5. If you try it in AIR 1.0 you’ll get an error: Incorrect number of arguments.  Expected no more than 5. line 55.

If something here has proved valuable to you then feel free to drop a couple of bucks in the tip-jar.

Post to Twitter Post to Delicious Post to Facebook Post to Reddit Post to StumbleUpon


similar posts

No Responses to “Publishing AIR 1.5 apps”


comment number 1 by: Greg Jastrab

You can also add minimumPatchLevel="7220" in the application descriptor as an attribute to the <application> tag to force the runtime to update before installing/updating the application.

comment number 2 by: polyGeek

@Greg, thanks for sharing. I saw somewhere that and had no idea what it meant. Way to be descriptive, eh?

comment number 3 by: ben waldman

very confused. i've tried this with 3.2 and all I get is "Variable Matrix3D is not defined."

I've tried to then import flash.geom.Matrix3D, but its not listed.

Thoughts?

comment number 4 by: Greg Jastrab

@ben are you sure you're targetting the new player? Make sure the 3.2 compiler is set in the "Flex Compiler" section of flex builder. If you're running this just as Flash and not AIR I believe you also have to add

-target-player=10

as an additional arg to specify it's for Flash Player 10.

comment number 5 by: polyGeek

@ben, are you using the code that I wrote above? Just guessing but if you have a variable named 'Matrix3D' you're going to have a problem because that's the name of the package.

Have you updated to Flex Builder 3.0.2? Before I did I was missing a lot of code hinting for things like the BitmapData and Graphics when working with the 3.2 SDK.

@Greg, thanks for pointing out the command line instruction.

comment number 6 by: ben waldman

@All…

Yup.. that was it. -target-player=10. I had set the target player in the flex config file, but evidently you also have to set it in the compiler arguments. I thought I had read it was an either/or situation. It appears not.

@Greg, I haven't noticed the code hinting (yet), but truly my goal was to take advantage of Sound.extract for the project I am on, for which I haven't noticed any issues.

Thanks for your help!

   Welcome back (Change)

Leave a Reply

comment feed RSS   subscribe to this comment thread

Recent Posts

   



polyGeek.com

© Copyright 2008 polyGeek.com / Dan Florio, All Rights Reserved Except Where Explicitly Stated
Web Developement Blogs - Blog Catalog Blog Directory
M2 Websites
Local Directory for Los Angeles, CA

Better Tag Cloud