Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
New Developer
scienceHal
Posts: 26
Registered: ‎03-07-2011
My Device: Torch

Re: Apps compiled from the command line don't get past loading

Sorry you're still having problems. I admire your perseverence.

 

I've had exactly the same problem as you for the past three days. But I think I've solved my issue.

I found yet another Adobe site & followed the instructions:

http://www.adobe.com/devnet/devices/articles/blackberry_playbook_battery.html

 

The main point I didn't realize (until now) was that (as far as I can tell) I don't think you can simply take a standard .fla or .swf file & package it up into a .bar file for the Playbook.

 

You seem to need to use AIR 2.5 from the start (i.e. to create your .fla and .swf files).

 

I downloaded the AIR extension for Flash CS5 & then created a new "Adobe AIR 2" file instead of an Actionscript 3.0 file like I normally do & everything worked.

As far as I can tell, it has something to do with swf files created w/o AIR not being able to play on every platform. But AIR somehow makes them more universal & playable outside of a browser environment.

Or at least that's what I think.

 

Hope this helps! Good luck.

Contributor
squivo
Posts: 27
Registered: ‎03-05-2011
My Device: Blackberry Torch 9800, Playbook Simulator

Re: Apps compiled from the command line don't get past loading

That post you mentioned is definitely the best one (in my opion) for a good basic general undertanding of what to do.....

 

And oh man I'm glad that trick worked for you! :smileyhappy:.  It didn't work for me.  I even removed all the code from the new 'Adobe AIR 2.0' .fla  after I imported the library from my previous .fla for sharts n gargles and that still didn't work for me!  I think I'm trying too hard.  It's gotta be something easier than this.

 

I'm still stuck on a swf that won't load properly.  Of course, in the adl debugger it works great.?!

 

I'm curious what this bin-debug folder is - and why some .swfs work with or without it. 

 

Anyway

 

thanks for the suggestions.

squivo
Contributor
squivo
Posts: 27
Registered: ‎03-05-2011
My Device: Blackberry Torch 9800, Playbook Simulator

Re: Apps compiled from the command line don't get past loading

For those who still maybe interested, and although this may no longer be the forum where I ask for help for this topic - I have found a problem that is causing my .swf to not load properly and has NOTHING to do with the Blackberry SDK/simulator. 

 

In one of my previous posts I said I tried a test .swf with NO CODE in it.  I was wrong... there was code hiding...blah blah....  So I started debugging and then just straight up removing all functions and variables line by line and found a problem.  I still haven't figured out WHY it's a problem but at least I've come up with something that causes the issue!

 

 

var myFile:File;

 

 

It seems the 'File' class for some reason causes my AIR environment to fail when loading outside the test environment.... Even with 'import flash.filesystem.*' I am still unable to simply click on my .swf and run it when that line is in my code.

 

Like I said, I have no idea why that may be

 

?

 

squivo
New Member
JacobEdmondKerr
Posts: 1
Registered: ‎06-22-2011
My Device: Simulator

Re: Apps compiled from the command line don't get past loading

FOR EVERYONE STILL READING THIS POST! I HAD THE SAME PROBLEM AND I WENT INTO PUBLISH SETTINGS AND SET TO PUBLISH AIR FOR AINDROID AND NOW MY SWF WORKS!!!. Selecting puplish for AIR 2.6 etc was not working but publishing for AIR for Android fixed everything! So if you're having the same problem give this a try!