Adobe AIR for iphone app: can't play audio properly

I just developed an App by using adobe air. It contains some animations with background music in mp3 format. The problem is that the music is very jerky when the animation is playing... FYI, this is the way how I play audio in flash:new Sound(new URLRequest("m3.mp3")).play() Have I done anything wrong?
BTW, the funny thing is that if you hit the HOME button, and then come back to the app again, everything plays beautifully...
Any comments would be appreciated!!! Will be waiting for the answer online.

Try the loading sound internally method through sound channels and such.
Great tutorial below.
http://www.republicofcode.com/tutorials/flash/as3sound/
var mySound:Sound = new Sound();
var myChannel:SoundChannel = new SoundChannel();
mySound.load(new URLRequest("myFavSong.mp3"));
myChannel = mySound.play();
I just finished an app that uses a lot of audio while stuff is animated on the timeline and the sound responds well on all iOS devices. (havent tested on 3GS yet)

Similar Messages

  • Re: Adobe AIR for iPhone

    Based on the announcement yesterday from Apple to let 3rd party code run on the iPhone, ie Adobe AIR files, does anyone know if there any plans to restart the Air SDK for the iPhone and make it like it is on Android?

    According to http://labs.adobe.com/technologies/packagerforiphone/
    "Apple’s recent announcement that it has lifted restrictions on its third-party developer guidelines has direct implications for the Packager for iPhone. The feature is available for developers to use today and we will now resume development work on this feature for future releases."
    Is that what you were asking?

  • Multi Touch not supported in Adobe Air for IOS?

    Hi, I've just started developing my first app for my iPhone which is an iPhone 3GS. I'm using CS5 to make these apps.
    I did a simple test game where there are two arrows on the screen and a fire button. The screen also has a ground and the player standing on it which can be controlled with left/right and fire. Now, if I press right, he moves right, if I press left, he moves left, if I press fire, he jumps... BUT no matter what I do I can't make dual touch work, ie: I press right AND fire, it only recognize just ONE touch point. So I did alot of researching and didn't find much.  I thought maybe adding a TouchEvent.TOUCH_TAP which I found a guide on on this page: http://openexhibits.org/support/gestures/1/one-finger-tap , but couldn't make it work, so I found this: http://www.adobe.com/devnet/flash/articles/multitouch_gestures.html and it seems Adobe Air for iPhone only allows four different gestures, no TouchEvents. I found a code somewhere that when run it checks to see if the device it's running on supports TOUCH_TAP stuff and in CS5 I got the message that it is not supported, in Adobe Device Central I get it's supported, on the actual phone (yes, got dev license from Apple and all that and can run my apps from CS5 on my iphone) I get it IS supported, but it doesn't work when I try it for real.
    So, my question is: how can I make Adobe Air using CS5 to detect 2 finger presses at the same time in iPhone apps?  Like pressing right+fire at the same time, so it doesn't just detect ONE of them being pressed.
    Thanks a million for any reply.

    Before listening for TouchEvents like TOUCH_BEGIN, TOUCH_MOVE, TOUCH_END etc... you need to set the input mode of your device to TOUCH_POINT. By default it is set to GESTURE.
    This works fine on the iPAD:
    import flash.ui.Multitouch;
    import flash.ui.MultitouchInputMode;
    Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
    stage.addEventListener(TouchEvent.TOUCH_BEGIN, touchBegin);
    stage.addEventListener(TouchEvent.TOUCH_MOVE, touchMove);
    stage.addEventListener(TouchEvent.TOUCH_END, touchEnd);
    private function touchBegin(te:TouchEvent):void {
        // your code here
    private function touchMove(te:TouchEvent):void {
        // your code here
    private function touchEnd(te:TouchEvent):void {
        // your code here
    Hope that helps.

  • Can you play/view swf files on adobe air for android?

    Hi, yes; I'm new here, as well as to Adobe Air, and I'm still trying to learn the ropes around here, and I apologize in advance if this has already been asked, or I have placed this question in the wrong forum.
    The thing is, I was wondering if it was possible to play my SWF files via adobe air for android; and if so, how? Thanks in advance either way.

    Can you please give directions where can i clear that cash.
    Anyway i don`t think its the case, because this is first time i hooked phone to internet, and first time i launched Android app store.
    Edit:
    I went to https://market.android.com and there is Adobe air app. But when i try to download it says that my device doesn't support it (Samsung Galaxy GT-I5500) By default it comes with android 2.1 and doesn't support Adobe air, but i upgraded firmware to 2.2.
    Maybe that is the reason it doesn't show me Adobe AIR in app store - based on my phone, not my Android version ?

  • Using Google Play Developer License RSA code with Air for Android App?

    What is the procedure for using Google Play Developer's provided license code (Base64-encoded RSA public key to include in your binary) for an Air for Android app in Flash?
    I see the need to load a p12 file and have gone through the process of creating one for Air for iOS with OpenSSL but the Google provided key is in a different format. To start with it is delivered by copy/paste off a webpage.
    I am using Flash CS5.5. I could switch to CS6 if neccesary.
    Thanks

    Follow this link, see post number 12.
    http://forums.adobe.com/thread/1115438

  • Can I use macbook air for ios app development?

    I would like to know if i can use macbook air for ios app development or macbook pro is only option?

    Just to reinforce what shldr2thewheel says - be very sure what size memory you want if you get a Macbook Air. There is *no* way to change after purchase. My advice is to go for the 4GB option - especially if you want to do app development.
    The internal storage (solid state drive) of the Air can be upgraded if required but it will probably be an expensive option. If you don't think the storage will be enough then maybe using a USB connected drive to hold non-essential files is an option.
    As to deciding between the Air and Pro you are basically making a decision between portability (Air) and expandability/bigger screens (Pro). What is more important to you?
    Mark

  • Maximum file size for Adobe air for Androind and iOS compiled apps

    Hi All
    I am working on a project which has a few videos which I need to bundle into my mobile app for an Ipad app I am creating using Adobe Air for iOS. My question is simple is there a maximum file size limit on apps compiled using Adobe air for iOS? And if so what is it? Any help would be great.
    regards Mike

    Hi.  Im not a 100% sure this is correct.  I am able to make a large .IPA file (200+Mb) and it will go onto my iPad 1, but it does not work - Just quicts after a few secs.  If I run the same IPA on my iPad 2 it works.
    When I take out some of the assets so its a smalelr size then it does run on the iPad.

  • My MacBook Air was stolen and the id changed before I could erase it via "Find iPhone" app - can Apple erase my machine if I provide my serial number?

    My MacBook Air was stolen and the id changed before I could erase it via "Find iPhone" app - can Apple erase my machine if I provide my serial number?

    My MacBook Air was stolen and the id changed before I could erase it via "Find iPhone" app - can Apple erase my machine if I provide my serial number?

  • How can I empty my sandbox on my ipad air for several apps?

    how can I empty my sandbox on my ipad air for several apps?

    I'm not sure what you mean by "sandbox". I presume you're talking about getting extra room on your "hard drive" (it's not a hard drive, but a flash drive, I suppose ... ).
    If so, then just go to Settings --> General --> Usage ... and you have three sections on that page ... "Battery", "Storage", "iCloud" ... look at the second section where it says "Storage" and go to "Manage Storage" ... and you can start deleting apps that you're not using or are too big for your available space.
    Later on (soon), you'll be able to clear off some photos from your flash drive on your iPad and that will help clear off some space, but that's not up and running just yet. It's the "iCloud Photo Storage" service that Apple has announced. It will be coming very soon.

  • Problems with BBC iPlayer Desktop and Adobe Air for Mac

    I would be grateful for anyone who can help me with a problem I have on my Laptop running Mac OS X Lion 10.7.3.I am having difficulty running BBC iPlayer Desktop and I suspect it is caused by Adobe Air.
    Recently I was prompted to update Adobe Air to the latest version (as of February 2012) and after I successfully updated the program, this began to cause problems when I used BBC iPlayer desktop.
    The first problem I noticed was that I was unable to play any downloaded programmes in full screen - only the sound played, not the video.
    Secondly, a few weeks after this problem began, all my TV programmes mysteriously disappeared.
    My final problem is that everytime I launch BBC iPlayer it is unable to download new programmes - when I am connected to the internet, the application still says it is "offline".
    I have tried to resolve the problem by restarting my computer, uninstalling and reinstalling BBC iPlayer, disabling and re-enabling my firewall, connecting to the internet in different locations but this has not resolved the problem.
    I tried to uninstall Adobe Air, but the installation package tells me it is 'corrupt'. So I tried to download and reinstall the application from the adobe website, but the computer already recognises that the app is installed. i.e. - I can't uninstall or reinstall Adobe Air.
    I contacted BBC iPlayer support and they were unable to help - directing me to your website. I have read several other discussion topics posted on this website but not found the solution I am looking for.
    Please can some help me to solve this problem, by helping me uninstall and reinstall Adobe Air for Mac?
    I am not very technical minded - for example - I don't know what log files are or how to find them - so please explain it as simply as possible.
    Thank you in advance for your help!
    Ryan

    Just had the same thing happen AGAIN. Suddenly - a blank iPlayer Desktop which failed to download new programmes. All previous programmes were still in the repository folder. This time the sequence I outlined previously didn't work.
    What eventually got things working this time was to reinstall Adobe Air as part of the BBC iPlayer Desktop installation process - and not separately.
    So:
    a) Move iPlayer to trash.
    b) Find and delete the following folder: Users/Yourname/Library/Preferences/BBCiPlayerDesktop.61DB7A798358575D6A969CCD73DDBBD 723A6DA9D.1
    c) Find and delete the following folder:
    Users/Yourname/Library/Application Support/Adobe/AIR/ELS/BBCiPlayerDesktop.61DB7A798358575D6A969CCD73DDB BD723A6DA9D.1
    d) Find and delete the following folder:
    Users/Yourname/Movies/BBC iPlayer/repository/cache
    e) Find and run: Applications/Utilities/Adobe AIR Uninstaller
    f) Empty the Trash. I found that bits and pieces of BBC iPlayer were still running despite having been quit and dumped in the trash - and so it wouldn't allow me to complete this part. Restarted the computer, then empty the trash.
    g) Find the folder: Users/Yourname/Movies/BBC iPlayer/repository and rename it repository2
    h) Reinstall iPlayer. It will tell you that you have no programmes to view. Quit the programme.
    i) Find and delete the folder: Users/Yourname/Movies/BBC iPlayer/repository
    j) Find the folder: Users/Yourname/Movies/BBC iPlayer/repository2 and rename it to repository.
    k) Relaunch iPlayer
    It would be terribly nice if the BBC or Adobe stopped buggering about with this . . .

  • Adobe Air for Android - caching key event that have "unusual" keycode

    I am developing an application for a platform. The OS of this platform is Android Gingerbread (2.3.4) The platform has some buttons with "unusual" key code: 141, 131 etc.
    Native application that created in ADT can catch and respond to these keyboard events While my Adobe AIR application (created in Flash professional) are Indifferent to them.
    I try both: stage.addEventListener(KeyboardEvent.KEY_DOWN,KeyHandler,false,0,true); NativeApplication.nativeApplication.addEventListener(KeyboardEvent.KEY_DOWN,KeyHandler,fa lse,0,true);
    How can I "catch" this event? Maybe a way to add constant to the keyboard class?
    Thanks

    If you are deploying for iPhone it is on the 'general' settings(First setting page opened).
    Just noticed you are making android app but i still added iphone deployment settings for further future
    But if you are using it for flash/android you have to add code into your fla descriptor with XML language(dont worry it is 1 line of code)
    Watch the video on this page about GPU rendering:
    http://blogs.adobe.com/cantrell/archives/2010/10/gpu-rendering-in-adobe-air-for-android.ht ml
    Your app shouldn't lag after these steps but if you have a project that gets bigger and has lots of code it MIGHT lag so that is when external files should help.

  • Doki, one of the biggest Adobe Air for iOS projects, released yesterday

    I am proud to present one of the biggest Adobe Air for iOS projects, that was released yesterday. Amazingly, the project completed in less that a year. Doki is a unique modern method of learning the basics of a foreign foreign language without the use of grammar and writing.  Through colourful animated scenarios and characters, Doki brings to life a number of languages through real life situations, humour and interactive exercises. Exclusively designed for the iPad 2, New iPad, and iPhone 4S, Doki teaches five different languages: English, French, German, Iberian Spanish and Latin American Spanish. Each language has two levels: Doki and Doki Further.  Both levels have been designed to teach the basics of these languages so that you can communicate with confidence.  In Doki, a beginner’s level, the learner navigates through 14 chapters or ‘places’ in Doki City, listens and repeats the phrases and then solves simple interactive exercises.  Each chapter is divided into lessons (a total of 51) that present key words and phrases in English and the other languages Doki covers. Doki Further, a more advanced beginner’s level, consists of 9 chapters with 28 lessons that take place in Doki City.
    The development of Doki is based entirely on Adobe Air . The result is spectacular. With a development team that consisted of 5 programmers, 2 designers, 3 language specialists, one assistant programmer, plus a team of 4 testers, the gigantic project of 14 apps was completed in less than a year, resulting in very low development costs!
    Please visit http://www.dokispeak.com for further details.

    Pretty cool.

  • Have been trying to download Adobe Air for a website I'm trying to access (Colonial Williamsburg). After the installation was finished, I went back to the website and it still said I didn't have Adobe Air. I tried reinstalling and Adobe said I already hav

    I have been trying to download Adobe Air for a website I'm trying to access (Colonial Williamsburg). After the installation was finished, I went back to the website and it still said I didn't have Adobe Air. I tried reinstalling and Adobe said I already have it on my system (Mac OSX 10.9). I can't find the app. I uninstalled, restarted, etc. and same results.
    Thoughts anyone?

    Lanakivee
    Try this it worked for me Pat Willener gave it to me off the site :
    I have not read all you wrote, so I may have missed some points. As I understand it, you installed FP 10 on IE7, but it won't play any Flash content?
    Try this
    download the FP uninstaller from http://www.adobe.com/go/tn_14157
    close all browser windows, then run the uninstaller
    download the offline ActivX installer for Internet Explorer from http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_ax.exe
    close all browser windows, then run the installer

  • Should I use the same Adobe ID for multiple apps in the same publication?

    I've been sifting through documentation on building apps for the Amazon AppStore and Google Play variants of Android for a few days and came across something I'm not too clear on.
    Here's a clip from the documentation page outlining the publishing process for Android devices:
    You cannot use the same Adobe ID to create multiple viewer apps. Create a different Adobe ID for each app. When signing in to publish folios, use the appropriate Adobe ID.
    The reason I am confused is because I thought renditions were used to send certain content to one set of devices (iPads, for example) and another set of content elsewehre.
    We currently pubish for the iPad and do so at iPad 1 resolution.  Would we add yet another Adobe ID to the mix when creating our Android apps? That sounds like a lot of logging in and out during the production and publishing process.
    Thanks for any insight,
    Steven

    Hey Steven,
    You can certainly use the same adobe Id and make renditions for two different App's ( one for android and IOS and so on )
    The point that you are referring to means that if you have two different App's in the App store with separate content than use different Id's...

  • How to record a time-limited video with Adobe AIR for iOS

    I am trying to record a time-limited video with Adobe AIR for iOS.
    For example, I want to implement the following function. Start a one-minute timer before launching CameraUI to record video. When the timeout event happens after one minute, stop recording video, close the CameraUI view and obtain the video data so far.
      I have several questions related to that.
      1. How to stop recording video from outside the CameraUI view(in this case, from the timeout event handler) and then close the CemeraUI view? As far as I know, to close the CameraUI view, the only way is to press the [Use Video] button or the [Cancel] button from inside the CameraUI view. Is it possible to close it from outside?
      2. Even if the first problem mentioned above is solved, then how can I get the video data so far(in this case, the video data before the timeout). I know that normally we can get a MediaPromise object from MediaEvent parameter of the  complete handler, and read the video data from the MediaPromise object. But obviously in this case, we can not access the MediaPromise object just because the complete handler itself will not be executed since the [Use Video] button is not pressed.
      3. Is it possible to add a stopwatch to show possible remaining recording time when CameraUI view is open? It seems that the CameraUI automatically uses the full screen of iOS device(in my case, iPad) and there is no extra space to show the stopwatch.
      Are there any solutions or workarounds about the three problem above? I really appreciate it if anyone has any idea about this. Thanks in advance.

    You'd have more control by using the Camera object, showing the camera on a video object inside a Sprite, and capturing that. Then you could put whatever graphics alongside it on the stage.. I've used FlashyWrappers in a test to capture the video to the library.  It took some work, but the test worked well...
    Flash/AIR record videos of your apps and games: Rainbow Creatures

Maybe you are looking for