Quantcast
Channel: Adobe Community : Popular Discussions - AIR Development
Viewing all 24121 articles
Browse latest View live

AIR 20.0.0.233 URLMonitor broken with iOS 9 ?

$
0
0

Hi everyone,

 

I am currently working on an app using Adobe Air, and as I was about to publish it, I tried to update my Air version (19) to the last one, and re-test the entire app.

 

And by doing this I noticed that something is now wrong with the URLMonitor.

I am using it to test my connection, as following :

 

monitor = new URLMonitor(new URLRequest(http://www.adobe.com));

ListenerMgr.addListener(monitor, StatusEvent.STATUS, function (evt:StatusEvent):void {

   trace("Network status changed, connected ? " + monitor.available);

   _isHTTPConnected = monitor.available;

});

if (!monitor.running) {

   monitor.start();

}

 

That code always worked before the Air update, and is still working on Android 4.4.4, iOS 8 and all simulators, but when I launch it on an iOS 9 device (9.1, 9.2, ...), monitor.available is ALWAYS false.

 

Could you please tell me if this is a real issue or if I missed something ment to replace that monitor ?

 

Thank you!


When will Adobe AIR be officially approved/supported to run on Windows Server 2012 R2?

$
0
0

When will Adobe AIR be officially approved/supported to run on Windows Server 2012 R2?

How do I edit the AndroidManifest.xml, and where does it go?

$
0
0

We have developed an app in Flash that's already for sale in iTunes, and we're trying to get the Android version launched. One thing I can't figure out is how to edit the AndroidManifest.xml. With Flash/AIR for iOS you put the XML in the "included file list" in the publish settings. But this doesn't seem to work for Android. We just need to add a few attributes like screen size, and API version exclusions. Where do you do this!? Thanks!

When updating APK, Google Play tells the APK is not signed, but it is.

$
0
0

Hi.

 

When uploading a new updated APK for my AIR app, Google Play tells the APK is not signed.

I signed the APK with the same p12 file I used for the first version (successfully published and approved on Google Play).

I'm using Flash Builder 4.6 with AIR SDK 3.7. The first version of app was packaged with Flash Builder 4.6 and AIR SDK 3.4.

 

Then I tried to generate a new .p12 key, but I get the same error message while uploading.

Availability of Adobe AIR runtime in the long term?

$
0
0

Hi all,

 

I'm currently maintaining an extensive portfolio of Flex (SDK 3.5) based products, that all run on browser based Flash Player plugins, and following the announcement of Google Chrome hiding Flash Player behind a click-to-start mechanism, I am reviewing what target runtime would be the best for our products.

 

I understand that Adobe still officially supports and develops AIR, but would there be any clarity on the long term (>5 years from now) roadmap of this product ?

Would converting my Flex code to run in AIR be a safe bet to ensure future compatibility on the platforms in runs on?

 

I've also been looking at alternative runtimes. There are some initiatives that try to compile MXML to HTML5 compatible CSS/JS - FlexJS, but those don't support stuff like AMF or E4X which make it useless in our situation. JavaFX could be another option but that would mean rebuilding our entire codebase from scratch.

 

We have about 10 years of development in Flex source code in our repositories and it seems like such a waste to have to rebuild it all. What are my options, and what guarantees are available, to ensure the availability of our products' runtimes in the future?

 

I presume there must be many devs facing this problem, and I was wondering if there will be a formal path from Adobe to follow (like f.i. an Adobe supported product that compiles MXML into HTML5 properly, or a guarantee that AIR will be available for at least certain period of time). Any suggestions or helpful links are welcome.

 

Kind regards,

Ferrie

How to obtain Android screen real width/height in AIR?

$
0
0

The system chrome displays some additiona bar with three dots. No matter what I use, AIR always reports the actual height incorrectly - it's not the height of the screen, but the height of available area (so the screen height - system bar height). This turns device detection into a mess. Is there a solution for this?

 

Tried:

Capabilities.screenResolutionY

stage.height

state.stageHeight

stage.fullScreenHeight

 

they all return the same value.

 

Or, is there a way to get rid of that system bar and enter true fullscreen?

ITMS-90086 “Missing 64-bit support” Error when uploading Adobe Air application issues

$
0
0

Hi,

I have an Adobe Air based app which I have previously uploaded using application loader to itunes connect.

Today I get the error: ERROR ITMS-90086 "Missing 64-bit support" iOS apps submitted to the App Store must include 64-bit support and be built with iOS 8 SDK or later.

This is odd because the 64 bit requirement has existed for some time and I am using the same build method has been accepted previously.

I have tried building without extensions to rule out third party extensions. I have updated to the latest Air SDK and are using new certificate/provisioning profiles.

Any ideas what changed?

Tom

How to scale my app to fit device dimensions?

$
0
0

My apps dimensions are 800x450.

 

My android devices dimensions are 540x960.

 

With this of course when I installed on device the app appeared non scaled inside a window on my mobile device.

 

I have the  XML set to the

 

Now I'll show you some of my code.

 

  public static var gameStage:Stage;
.... 

public function initApplication():void
  {   this._game = new MovieClip;   super.addChild(this._game);  }  private function initThreeBalls():void  {   gameStage = this._game.stage;   var starBackGround:Stars = new Stars; // Add a background large 1200 x 3000 texture
...
}

 

Here is some code I found here:

 

 

var appScale:Number = 1;
var appSize:Rectangle = guiSize.clone();
var appLeftOffset:Number = 0; // if device is wider than GUI's aspect ratio, height determines scale
if ((deviceSize.width/deviceSize.height) > (guiSize.width/guiSize.height))
{
appScale = deviceSize.height / guiSize.height; appSize.width = deviceSize.width / appScale;
appLeftOffset = Math.round((appSize.width - guiSize.width) / 2);
 } // if device is taller than GUI's aspect ratio, width determines scale
else { appScale = deviceSize.width / guiSize.width;
 appSize.height = deviceSize.height / appScale; appLeftOffset = 0;
 }

http://www.adobe.com/devnet/air/articles/multiple-screen-sizes.html

 

Wondering what elements I apply this code to?

 

It doesnt seem to work with Stage..


iOS Error ITMS-90478 and ITMS-90062 when uploading with Application Loader

$
0
0

Hello,

 

when trying to upload the latest versions of my apps to iTunes with application loader, I see these errors:

 

Screen Shot 2015-07-28 at 10.16.55.png

I unzipped the ipa and verified that the actual version number is in fact 14.10.0, so I do not know why this error pops up. I tried other version numbers as well without success. I see this error, with the respective build numbers, for 3 of my 4 apps. Those 3 apps have 32 Bits architecture right now, which I am trying to update to 64 Bits with this build. The 4th app was 64 Bits from the start and did not show this error, though I am not sure if it's related to the error.

 

I compile with the Windows Air SDK (18.0.0.180), if that makes any difference. Any ideas why this error keeps popping up?

 

Thanks

Android - StageWebView - Loading PDF Bug - AIR 3.9

$
0
0

I think I've discovered another bug in AIR 3.9. Tested on Galaxy S4, and Nexus 7

 

When using the StageWebView on Android, PDFs will not load correctly. This works correctly on iOS and Desktop.

 

a Event.Complete event is dispatched, but all you ever see is a white square with Zoom buttons on the bottom right.

 

Has anyone else ever experienced this?

 

<?xml version="1.0" encoding="utf-8"?>

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

               applicationComplete="init()"

               xmlns:s="library://ns.adobe.com/flex/spark" applicationDPI="160">   

    <fx:Script>

        <![CDATA[

            import spark.components.Application;

           

            public function init():void{

                this.stage.scaleMode = StageScaleMode.NO_SCALE;

                this.stage.align = StageAlign.TOP_LEFT;

               

                var webView:StageWebView = new StageWebView();

                webView.stage = this.stage;

                webView.viewPort = new Rectangle(50,50,this.stage.stageWidth-100, this.stage.stageHeight-100);

                webView.addEventListener(Event.COMPLETE, this._onLoadComplete);

                webView.loadURL("http://labsdownload.adobe.com/pub/labs/flashruntimes/shared/air4-0_flashplayer12-0_release notes.pdf");

            }

            private function _onLoadComplete($event:Event):void{

                trace("COMPLETE");

            }

        ]]>

    </fx:Script>

</s:Application>

Android AIR continuous autofocus doesn't work

$
0
0

Hello!

 

I am making an application for Android using AIR - it has to make a streaming of video from the camera to server. I started with a simple application which draws rear camera preview on the screen, the code looks like this:

 

camera = Camera.getCamera("0");

video = new Video(camera.width, camera.height);

video.attachCamera(camera);

 

And I have three problems when tesing the app on my LG L65 with Android 4.4.2:

1) The preview is very dark. It becomes a bit brighter when I show the lamp, or some other sources of light - the brightness is being adjusted continuously, but when i return back to ordinal views with no really-bright sources - it becomes dark again. The front camera does not have such a problem - the brightness is ok. The most important here is that the native Camera Roll application shows good and bright previews from both cameras, and also, when i test a simple Android app to check camera preview - it also shows good and bright picture from both cameras - so, i have this problem only in AIR application and only for rear camera.

Screenshot_2015-01-26-19-54-02.png

  Rear camera preview screenshot From AIR application

Screenshot_2015-01-26-19-55-29.png

   Rear camera preview screenshot From Android application

 

2) I noticed, that the continuous autofocus doesn't work in AIR application - it works (refocuses) only when manually calling Camera.setMode, but the solution of refocusing every, for example, 3 seconds won't fix the problem, because it will hang the video every time for half a second. There was a discussion here: https://forums.adobe.com/message/3775731, whitch led to creation of a bug in bugbase here: https://bugbase.adobe.com/index.cfm?event=bug&id=2921514, which was closed, but should not. It was concluded there, that if a smartphone does not provide continuous autofocus - it won't work continuously in AIR also. BUT: i checked my LG L65, and also Samsung Galaxy Note 2 for continuous autofocus - made a simple Android application, set the autofocus mode to continious, and it worked for both smartphones. But the AIR continuous autofocus did not, for both LG and Samsung. That's why i really ask you to reopen that bug in a bugbase and try to help to find some solution. The code I use to check continuous autofocus in Android:

 

parameters.setFocusMode(Parameters.FOCUS_MODE_CONTINUOUS_VIDEO);

camera.setParameters(parameters);

 

3) I also tried to use flashlight at the same time, as the video is previewed from camera - and failed: we cannot use one camera object in AIR and one in ANE at the same time - we only can release it in one side to work with it in another, by making camera object null in AIR or by calling Camera.release in android. I could only blink the flashlight, using the native extension (make AIR camera null, start flashlight from ANE, release camera object in ANE, make a new camera object in AIR, attach it to video). What would you kindly suggest to do here - to show camera preview and use flashlight at the same time? Are there any possibilities to change android camera parameters to use in AIR camera with help of ANE or anything else? And maybe you are already planning to add some more functionality to Camera class in AIR to use more camera settings?

 

Hope this post helps other developers when you answer!

I also submitted the 3 bugs here:

https://bugbase.adobe.com/index.cfm?event=bug&id=3927313

https://bugbase.adobe.com/index.cfm?event=bug&id=3927321

Also, i have made a feature request for using the flashlight in AIR during the camera preview working:

https://bugbase.adobe.com/index.cfm?event=bug&id=3927326

And a feature request for controlling the camera parameters of android and use them in AIR camera:

https://bugbase.adobe.com/index.cfm?event=bug&id=3927339

please, vote it up!

 

Thanks,

Vassad2214.

Can adobe air send SMS on ios and android without opening the native sms app?

$
0
0

Is it possible to programatically create and send an SMS text message on android and ios using adobe AIR? I have had success using navigatetourl to create the sms message, but was curious to know if its something that AIR is capable of or if os-specific native development is required to accomplish this.

I'm using flash builder 4.6 and AIR 15.

osx ane x86_64 fails with error #3500: The extension context does not have a method for name

$
0
0

Hello,

 

I'm developing my ANE for osx, tried sdk 19r (i386), 20r and 21r, you know they only support x86_64. No results as expected:

 

- myAneExt.framework is built with success in El Capitan / xcode 7.3.
- it's actually a POC to test a single method, quite sureI'm ok with my code (both c/c++ or actionscript)
- Max number version in extensiondescriptor name is 20, weird that 21 return an error (invalid namespace), so I have to build .ANE against 19/20

- Tried with no luck the workaround as suggested here: http://blogs.adobe.com/flashplayer/2015/12/air-64-bit-on-mac-osx.html

 

Of course, i'll continue to check it's my issue, but I'm quite sure is not, afaik not much devs are actually applying to osx ane, but they deserve things works.

 

Please, don't let this post without relevant answer.

 

thanx in advance

Marco Fusetti aka Jaco

Zoom in/out in the gesture area

$
0
0

Hi,

 

 

 

i want to zoom in into a movieclip.

 

The zoom should zoom in the area where the gesture was taken.

 

In this moment i scale the movieclip and set the new x and y coordinates by myself.

This one works not as i wish.

 

Any ideas?

 

 

Best regards

 

AS3 - iOS, drag and drop collision

$
0
0

Hi,

I'm using Flash Pro/ Actionscript 3 for an iOS-game.

 

I've used this site: http://www.designscripting.com/2011/05/hittest-as3-for-collision-detection-flash-actionscr ipt-3/ and this picture to demonstrate my question. When using 'drag and drop' is it possible to e.g. move through a maze and not go through the walls? Like stopDrag if the blueobject hits it? I can make this work with a virtual joystick (or they keys on a computer), but I wanted to use the touch-function on the iPhone. I was hoping this could be done withouth a physic-engine.

Untitled-1.jpg


Ridiculous!!! We need a MAC to use Application Loader to upload our apps to the AppStore??

$
0
0

Apparently, Apple has recently changed their appstore upload procedures and now require developers to use their Application Loader software to upload the binary files to appstore - which is only available on a MAC.  is there any way a Windows developer and upload an app using a PC?

iOS language list in iTunes

$
0
0

Just got my game approved and listed in the app store.

 

http://itunes.apple.com/us/app/dice-a-rama/id441585479

 

One thing that bothers me is that my listing says that my game supports a huge array of languages, even though my game is only in English. In my descriptor, I only provided an English name and description.

 

And I'm looking through the other AIR-written apps, and I'm seeing the same thing. Looking at the iTunes Connect listing, it appears that the supported language-list is coming from a manifest inside the game, the game itself (specifically the "iphone-bundle-localisations" identifier).

 

Is there a way to set this in your iOS descriptor XML?

Adobe Air 3.0 iOS streaming H264/Speex over RTMP -- No Video

$
0
0

Problem:

H264/Speex RTMP stream from Flash Media Server doesn't display video.  Audio plays fine.

 

Conditions:

Adobe Air 3.0

iOS device (iPad 2, iOS4.3)

 

App settings:

<renderMode>direct</renderMode>

 

Flash Builder 4.5.1 compiler settings:

-swf-version=13

-target-player=11.0.0

 

 

I have tried using both stageVideo and the regular Video object to render an H264 signal streaming from Flash Media Server over rtmp, but with no luck.  I can hear the audio, but the video is never rendered.

 

I CAN see H263 video when streamed over RTMP using this setup (with just the Video object). 

I can also stream a locally stored mp4 (H264/AAC) file over rtmp from the iOS device and play it locally just fine (using a stageVideo object).

 

I have attempted this with both stageVideo (which works fine when streaming an mp4 file from the iOS device) and with the regular Video object (the regular Video object handles H263 just fine streaming down from FMS over rtmp).  I've also played around with backgroundAlpha = "0" for this case, all with no luck.

 

I've followed all the online instructions and tutorials to get this working for the past week, but have not had any luck.  I'm happy to post more code, but this approach is fairly straight forward and has been described multiple times around these forums and in the adobe blog posts.  It goes like this:

 

     - instantiate NetConnection (_nc) to FMS and wait for successful connection:

               _ns = new NetConnection();  

               _nc.connect(serverAddress);

     - instantiate NetStream (_ns) and connect using NetConnection: 

               _ns = new NetStream(_nc);

     - setup listener for StageVideoAvailabilityEvent; if stageVideo becomes available, attach _ns: 

              _stageVideo = stage.stageVideos[0];

              _stageVideo = _stageVideo.attachNetStream(_ns);

     - if stageVideo ISN'T available, fall back to Video object:

               _video = new Video();

               _video.attachNetStream(_ns);

               stage.addChild(_video);

     - play netStream app:

               _ns.play(appName);

 

My renderMode is set correctly ("direct"), and from what I can tell, this isn't a backgroundAlpha issue.

 

I have seen this problem described elsewhere on this forums and on the net. 

 

I'd like to know from Adobe: are there any compatibility issues with this approach?  There doesn't seem to be any type of compatibility chart listing which video codecs and transport protocols are available on the different mobile platforms.  Since mobile deployment is so heaviliy fragmented, a descriptive chart or table like this would be helpful for those of us developing -- at least for the main mobile platforms predominantly in use.

 

Other forum posts similar to this problem:

 

http://forums.adobe.com/message/3981541#3981541

http://forums.adobe.com/message/3954578#3954578

 

 

Thanks in advance!

Kindle Fire HD auto orientation is upside down

$
0
0

Hi,

 

Has anyone else had the problem of the kindle fire HD orientation being upside down when auto orientation is turned on for landscape? Is there anyway to fix it?

DataShare ANE not including camera role (photo gallery) on Android!

$
0
0

Any idea why DataShare ANE doesn't include camera role (photo gallery) on Android? I only get these apps on my phone. Tested it on many different phones and tablets too. Same result. No save to album/photos...

Screenshot_2016-08-24-16-05-28.png

Viewing all 24121 articles
Browse latest View live