AIR 2.7, PlayBook and Robotlegs

darloScottt's Avatar

darloScottt

08 Jul, 2011 09:24 PM

Hi all,

I am using FDT, with Robotlegs and the latest PlayBook SDK to deploy an application to my PlayBook. One problem I am having is that I cannot connect back to the debugger from the device but another issue I am having sounds like it could be releated to Robotlegs.

I can deploy my app in debug mode and although it will not connect to the debugger, the app will launch and is functional. However when I change to release mode the app shows a blank screen (suggesting that the app is not being bootstrapped and therefore not initialising ). I found this post: (http://knowledge.robotlegs.org/discussions/problems/22-export-relea...) and I thought that maybe in release mode the compiler was ignoring the metadata required so I added the following to me compiler arguments:

-keep-as3-metadata+=Inject -keep-as3-metadata+=PostConstruct

However this did not solve the problem. I am using ANT to build my project and I specified the compiler arguments in FDT via the project properties so I wasn't sure if my compiler arguments would be ignored. I should point out that this has only become a problem since the latest PlayBook SDK update (which uses AIR 2.7 rather than AIR2.5)

Any help would be appreciated.

  1. 1 Posted by Stray on 09 Jul, 2011 08:59 AM

    Stray's Avatar

    Hi Darlo,

    If you read the 'common problems' wiki entry you'll find some info on how to add the metadata when compiling using ant:

    https://github.com/robotlegs/robotlegs-framework/wiki/common-problems

    When in debug-mode the metadata from the swc gets compiled in, but in release mode it doesn't. It did also happen in Air 2.5 but again only in release mode.

    Hopefully adding the arguments to your ant file will fix it (the FDT project properties won't be read by ant afaik),

    Do come back if that doesn't work,

    Stray

  2. 2 Posted by darloScottt on 12 Jul, 2011 06:48 PM

    darloScottt's Avatar

    Hi Stray,

    Thank you very much for your reply. I realised I wasn't compiling using the .SWC, instead I had placed the robotlegs classes in the src folder. As soon as I used the .SWC the problem was resolved (no need to use the arguments in my ANT build).

    Thanks again.

  3. darloScottt closed this discussion on 12 Jul, 2011 06:49 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac