Can't create htmlwrapper in air project

tomnagelgast's Avatar

tomnagelgast

06 Nov, 2013 03:50 PM

Hello,

I'm trying to build a project and have a wrapper generated, but if the project type is air or mobile, the createHtmlWrapper and asdoc tasks are missing. My attempts to recreate a task to wrap my swf have failed so far.

If I change the type to 'swf' I can generate the swf and wrapper I need, but I get errors about NativeApplication missing (probably because Air is missing).

If you have a solution to either of the above problems that would help me greatly.

Thanks in advance,
--Tom

PS: I'm using Starling and Feathers in the project, that might influence things

  1. Support Staff 1 Posted by Maxime Cowez on 06 Nov, 2013 05:54 PM

    Maxime Cowez's Avatar

    Hi Tom,

    could you describe what you're trying to achieve? I'm asking because from my perspective, creating an html wrapper for an AIR app doesn't make much sense. You either have a web application, which runs in the browser (or the standalone flash player if you wish); or you have a desktop or mobile app which runs in the AIR runtime.
    This is exactly why we left createHtmlWrapper out of the task graph for anything but a web application project (i.e. swf type).

    If you're trying to reuse your code for a web app and an AIR app, then you should reorganize into multiple projects. The most common approach is to have a library project that contains all the common code, and then a separate web project and AIR project which both depend on this common library.

    Cheers,
    Max

  2. 2 Posted by tomnagelgast on 12 Nov, 2013 10:22 AM

    tomnagelgast's Avatar

    Hey Max,

    Thanks for the comment, I got it working now, it was just a mobile project so I should call launchMobile. I got confused by some information I got from the other developers here.

    It's all working great now, the buildscript is looking much better than the version before I added GradleFX.

    Greetings,
    --Tom

  3. tomnagelgast closed this discussion on 20 Nov, 2013 01:28 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