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)
very simple script using "com.adobe.Vibration" in flash Professional. IPA file is created using ADT command targeting "com.adobe.Vibration.ane".
No error is shown on complilation, but the application freeze in iPhone when the Vibration call occurs.
Worked very well with older Air versions.
SCRIPT :
import com.adobe.nativeExtensions.Vibration;
var myTimer:Timer = new Timer(2000, 1);
myTimer.addEventListener(TimerEvent.TIMER, timerHandler);
myTimer.start();
function timerHandler(e:TimerEvent)
{
var vibe:Vibration;
if (Vibration.isSupported)
{
vibe = new Vibration(); vibe.vibrate(2000);
}
}
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!
Thank you,
Yes it's that Vibration's ANE version.
ADT command is :
adt -package -target ipa-ad-hoc -storetype pkcs12 -keystore myKey.p12 -provisioning-profile myProfile.mobileprovision vibrationTest.ipa vibrationTest-app.xml vibrationTest.swf -ext ANEdir
part of xml file :
<iPhone>
<InfoAdditions>
<![CDATA[<key>UIDeviceFamily</key><array><string>1</string></array>]] >
</InfoAdditions>
<requestedDisplayResolution>high</requestedDisplayResolution>
</iPhone>
<extensions>
<extensionID>com.adobe.Vibration</extensionID>
</extensions>
thank you !
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
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.
North America
Europe, Middle East and Africa
Asia Pacific