Skip navigation
Currently Being Moderated

native extensions with AIR 3.3

Apr 20, 2012 7:16 AM

Did someone successfully compile with ADT native extensions like com.adobe.Vibration with AIR 3.3 ?

Thank you !

(Since i've moved to 3.3, it doesn't work anymore)

 
Replies
  • Currently Being Moderated
    Apr 23, 2012 2:24 PM   in reply to newpatrocle2

    I will try with AIR 3.3 and let you know.  In the meantime, can you tell me what is the error you are seeing?  Is this happening when you are trying to create .ANE file using ADT?  Thanks!

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 24, 2012 12:22 PM   in reply to newpatrocle2

    Thanks for the info.  I am assuming you are using the ANE file from http://download.macromedia.com/pub/developer/air/ane/Vibration.zip ?  What is your ADT CMD for packaging the IPA file?  I've logged a bug against this.  Please let me know if you have further questions.  Thank you!

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 25, 2012 5:15 AM   in reply to newpatrocle2

    Hi,

     

    I have tried reproducing your issue but I am not able to reproduce it , following is the code which I am using in my app :

    package

    {

    import flash.display.Sprite;

    import flash.display.StageAlign;

    import flash.display.StageScaleMode;

    import com.adobe.nativeExtensions.Vibration;

    import flash.events.*;

    import flash.utils.Timer;

    import flash.text.TextField;

    import flash.text.TextFormat;

    import net.hires.debug.Stats;

     

    public class TestVibration extends Sprite

    {

    private var subsButton:CustomButton = new CustomButton("Press me!");

    private var tt:TextField = new TextField();

    private var tf:TextFormat = new TextFormat();

    public function TestVibration()

    {

    super();

    addChild ( new Stats() );

     

    tf.size = 20;

    tf.bold = true;

     

     

    tt.x=0;

    tt.y =450;

    tt.height = stage.stageHeight;

    tt.width = stage.stageWidth;

    tt.border = true;

    tt.defaultTextFormat = tf;

     

    addChild(tt);

    // support autoOrients

    stage.align = StageAlign.TOP_LEFT;

    stage.scaleMode = StageScaleMode.NO_SCALE;

     

    var myTimer:Timer = new Timer(2000, 1);

     

    myTimer.addEventListener(TimerEvent.TIMER, timerHandler);

     

    myTimer.start();

    subsButton.x = 150;

    subsButton.y=10;

    subsButton.addEventListener(MouseEvent.CLICK,subsButtonHandler);

    stage.addChild(subsButton);

     

    }

    public function subsButtonHandler(e:MouseEvent):void{

    trace("button pressed");

    tt.appendText("\n Button pressed!");

    }

    public     function timerHandler(e:TimerEvent):void

     

    {

     

    var vibe:Vibration;

     

    if (Vibration.isSupported)

     

    {

    trace("1");

    trace("12");vibe = new Vibration();

    trace("13");vibe.vibrate(2000);

    trace("14");

    }

    trace("15");

    }

     

     

    }

    }

     

    I am using the ANE and SWC provided at

    http://download.macromedia.com/pub/developer/air/ane/Vibration.zip and I am using the target ipa-ad-hoc on device iphone4 .

     

     

    Can you please specify if you are doing something else in your app?It would be great if you can send your sample app with the steps to reproduce @ nimisha1@adobe.com ,so that we can reproduce the issue .

     

    Thanks,

    Nimisha

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2012 12:14 AM   in reply to newpatrocle2

    i can't get Air 3.3 to compile with any native extensions either remove the extensions and it compiles fine

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2012 7:40 AM   in reply to newpatrocle2

    I had this problem that the application crashed on native Extension.

     

    What worked for me was to make sure my .ANE was set as EXTERNAL LIBRARY (NOT INCLUDED).

     

    Hope this help,

     

    Paul-André

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 11, 2012 2:19 AM   in reply to newpatrocle2

    I can confirm this error too.

     

    On Flash CS6 when there is ANE file embedded to the fla project, if I set the target Air to 3.3.0.3650 for iOS, the Publish command just doesn't complete. It keeps showing publishing dialog with progress bar and never finishes. But if I set the target option back to Air 3.2, then it publishes fine and produces the IPA file.

     

    If I remove ANE file, then it completes the publish command with Air 3.3 and it works fine on the test iphone.

     

    I tried it with 2 different ANE files.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 11, 2012 11:40 AM   in reply to khundaga khurelbaatar

    Is this air sdk 3.3 for ios with ANE bug? I cannot publish when use ANE with air 3.3.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 11, 2012 1:14 PM   in reply to tle7

    Same here, with ANE and AIR3.3 the publishing progress does not end. No problems with AIR3.2 or without ANEs.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 11, 2012 1:33 PM   in reply to mr2222

    it seems like, the error occurs only on Windows CS6..

     

    I fired up my tiny macbook air, and on it the air3.3 + ane is publishing fine without any issues with the Flash CS6 mac..

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points