Sound preloading doesn't work in Air for iOS?

I have a set of  sounds preloaded using load() method in Sound class in my game and it works fine when testing on my pc(windows 7). But when I deployed the game to iPad2, it seems like Air is only loading the sound files when play() method is actually called and not when load() method was called. There's a small lag when first playing a sound on my iPad2.
Is this default behavior of Air for iOS? Is there anyway to preload sounds?
I'm using Air 3.4 and Flash CS6 professional and the sound files are not embded but in an included folder.

It seems to me as if pages that partially fill in autofillable fields cause the problem.
Previously on IOS7 and before this was not a problem.
Autofill seems to work for me if no values are filled in by the (initially loading) webpage.
Resetting the ipad did not help on this issue.
Neither did removing the stored pw-information help. IOS asked me to re-save the id and pw but that did not change the situation and the problem still remains unresolved.

Similar Messages

  • NavigateToURL not working with Air for iOS

    Hi,
      I have created a game in flash for iOS (iPad). The game works fine, but I am trying to call a URL on the click of a button.
    There is no response on click.
    Below is the code
    externalcallButton.addEventListener(MouseEvent.CLICK, moregames)
    private function moregames(e:MouseEvent){
         var urlReq = new URLRequest("www.example.com/iphonegames");
         navigateToURL(urlReq);
    Please help me on this...
    Regards
    Santosh Bhagat

    hi sanika thanks for reply
    i can open the URL in browser. I'm not getting any error while using navigateToURL. It is working when i publish it and test it on the desktop. But when i transfer it to ipad it is not working.

  • Embedded fonts not working in Air for ios

    hi
    am building an ActionScript mobile project 4.6 for ios and want to use embedded fonts for my app.
    we are using the swf method for embedding the fonts , after loading the xml and even got the embedded resourses from swf , the output is not showing the exact font used , instread it is displaying one of default ios fonts in place of it...
    here is the code of my embedded fonts and we are using TLF for text output:
    ....inside my loaded swf: -
    package
        import flash.display.Sprite;
    import flashx.textLayout.compose.ISWFContext;
    public class Slide1 extends Sprite implements ISWFContext
            [Embed(source="C:/WINDOWS/FONTS/ariblk.TTF", fontName="Arial Black", embedAsCFF = "true", unicodeRange="U+0041,U+0072,U+0069,U+0061,U+006C,U+0020,U+0062,U+006F,U+0064", mimeType="application/x-font")]
            public function callInContext(fn:Function, thisArg:Object, argsArray:Array, returns:Boolean=true):*
                  if (returns)
                          return fn.apply(thisArg, argsArray);
                  fn.apply(thisArg, argsArray);
    please help asap!
    thanks

    hi
    am building an ActionScript mobile project 4.6 for ios and want to use embedded fonts for my app.
    we are using the swf method for embedding the fonts , after loading the xml and even got the embedded resourses from swf , the output is not showing the exact font used , instread it is displaying one of default ios fonts in place of it...
    here is the code of my embedded fonts and we are using TLF for text output:
    ....inside my loaded swf: -
    package
        import flash.display.Sprite;
    import flashx.textLayout.compose.ISWFContext;
    public class Slide1 extends Sprite implements ISWFContext
            [Embed(source="C:/WINDOWS/FONTS/ariblk.TTF", fontName="Arial Black", embedAsCFF = "true", unicodeRange="U+0041,U+0072,U+0069,U+0061,U+006C,U+0020,U+0062,U+006F,U+0064", mimeType="application/x-font")]
            public function callInContext(fn:Function, thisArg:Object, argsArray:Array, returns:Boolean=true):*
                  if (returns)
                          return fn.apply(thisArg, argsArray);
                  fn.apply(thisArg, argsArray);
    please help asap!
    thanks

  • Netstream.close(); doesn't work on air for android?

    Hi,
    I'm building a video app for android with air and I cant stop netstream from streaming a video.
    When a video is playing the user can choose to move to the next video but the current video still streaming even when i call ns.close();. On the desktop it works.
    Is this a known bug? or am i doing something wrong...
    The code is the standart netstream method, and when i want to load a new video:
    ns.close();
    ns.play("some url");
    I need to solve this issue and the app is finished! please help!

    Further feedback regards this fix.  It certainly opens up video app development and allows for slick demos.
    However, since videos are not freezing up I can now see clearly the buffering that's going on which seems to be another area that needs attention... Any hints/feedback regards this would be appreciated.
    Specifically, I find a fair disconnect in behaviour between video playback on the desktop and on Android.  This may be because of Android design but this should be noted since it might lead another change at Adobe's end.
    The behavior is as follows (note that this includes my own created videos and videos obtained from the internet -- my videos work a little bit better and I know that one thing I usually do is CBR, constant bit rate which may help things) :
    on the desktop===>: 100%, all wireless network video streams buffer flawlessly... roughly speaking, about 20 seconds of video every second, plus if you seek to an unloaded part, the video patiently waits until that part is loaded
    on android===>: all wireless network video streams seem to have their own signature for buffering. Although many of the streams will buffer normal, maybe half buffer normally for 100 to 250 seconds of video data and then stop and wait for the playback to catch up, after which time they buffer slowly. This stop can therefore be 100+ seconds that no buffering is occuring. A few of the videos will even forget to continue buffering ( a netstream.buffer.empty is eventually fired and game over )  The behaviours are essentially repeatable for each video (I have my worst case video) although if you seek forward sometimes it will remember to resume buffering right away.   Another symptom is that unlike the desktop, you cannot seek to an unloaded part, instead you generate a nestream.seek.invalidtime and the video simply resumes (I actually workaround this as I suspect it causes problems for me if I don't).
    There are other discrepencies that I ask which is proper / better ?  ===> on desktop a pause does not interrupt buffering, while on Android a pause stops the buffering....====>   on desktop there seems to be a cache for the videos if you jump around between them while on Android everything is cleared out on the dispose()
    as mentioned above, any hints/feedback would be appreciated. I'm trying to relate this to other outstanding forum and outside forum related issues and still thinking the fail part might be an Android/hardware realtionship but not sure and analyzing.
    thanks.
    Message was edited by: hiteck7 4:53pm Friday

  • AIR for iOS app works perfectly in emulator, not at all on an actual iPad

    I'm new to mobile development, so I'm hoping I am doing some simple wrong, like a wrong checked box or something.
    I have an app that I have written for iPad. It's fully functioning when I run it through the emulator (I have to change it to Flash 10.1 and use Device Emulator because nothing else will accept touch events) but doesn't really work on the iPad. Some of the features work, and some don't. It's like it's just not quite compiling all the code, and I'm very confused.
    My publish settings:
    Player: AIR for iOS
    Script: Actionscript 3.0
    Included .swf, .xml, and all relevant .as class files
    Published using quick publish for device testing
    Are there some AS 3.0 features that won't work in iOS? If so it would be really great to have a list of those somewhere.
    What am I doing wrong? Why won't my app work on an actual device if it tests perfectly in the emulator?

    My original question has not been answered, but I am running across the same problem in a different way.
    I have added to my code, continuing to build the app, (hoping the problem can be solved eventually), and once again, the app works perfectly in Device Central but not on the iPad.
    I have buttons to select different levels of the puzzle. Each time you press a button, the level automatically updates itself on the board. So if you are playing the shape level, the shape of the puzzle piece is on the board. If you are playing the name level, the name of the puzzle piece is on the board. Etc.
    This works perfectly on my computer. However - again - when I transfer it to an iPad, choosing the "shape" level will cause the names to pop up.
    I have double and triple checked the variable names to make sure they match up and are correctly spelled and capitalized. It just doesn't function in iOS.
    Here is the code to switch levels and automatically generate a new random puzzle piece:
    function changeLevel (e:TouchEvent): void {
        trackUSAPiece = ["pieceAL", "pieceAK", "pieceAZ", "pieceAR", "pieceCA", "pieceCO", "pieceCT", "pieceDE", "pieceFL", "pieceGA", "pieceHI", "pieceID", "pieceIL", "pieceIN", "pieceIA", "pieceKS", "pieceKY", "pieceLA", "pieceME", "pieceMD", "pieceMA", "pieceMI", "pieceMN", "pieceMS", "pieceMO", "pieceMT", "pieceNE", "pieceNV", "pieceNH", "pieceNJ", "pieceNM", "pieceNY", "pieceNC", "pieceND", "pieceOH", "pieceOK", "pieceOR", "piecePA", "pieceRI", "pieceSC", "pieceSD", "pieceTN", "pieceTX", "pieceUT", "pieceVT", "pieceVA", "pieceWA", "pieceWV", "pieceWI", "pieceWY"]
        if (e.target == nameLevel) {
            PuzzleGlobals.currentLevel = "Name";
            nameLevel.gotoAndStop("Active");
            abbrevLevel.gotoAndStop("Inactive");
            shapeLevel.gotoAndStop("Inactive");
            for (var j=0; j<(PuzzleGlobals.TOTAL_NUMBER_USA); j++) {
                this[trackUSAPiece[j]].gotoAndStop("wholeName");
        else if (e.target == abbrevLevel) {
            PuzzleGlobals.currentLevel = "Abbrev";
            abbrevLevel.gotoAndStop("Active");
            nameLevel.gotoAndStop("Inactive");
            shapeLevel.gotoAndStop("Inactive");
            for (var k=0; k<(PuzzleGlobals.TOTAL_NUMBER_USA); k++) {
                this[trackUSAPiece[k]].gotoAndStop("abbrev");
        else if (e.target == shapeLevel) {
            PuzzleGlobals.currentLevel = "Shape";
            shapeLevel.gotoAndStop("Active");
            nameLevel.gotoAndStop("Inactive");
            abbrevLevel.gotoAndStop("Inactive");
            for (var l=0; l<(PuzzleGlobals.TOTAL_NUMBER_USA); l++) {
                this[trackUSAPiece[l]].gotoAndStop("shape");
    function addNewPiece (e:TouchEvent): void {
        ri = Math.floor(Math.random()*(1+PuzzleGlobals.TOTAL_NUMBER_USA));
        if (PuzzleGlobals.statesOnBoardUSA == PuzzleGlobals.TOTAL_NUMBER_USA) {
            //play BOOP sound indicating no new pieces left
        else {
            if (usaPiece[ri] != null) {
                bmc.addChild(this[usaPiece[ri]]);
                if (PuzzleGlobals.currentLevel == "Shape") {
                    this[usaPiece[ri]].height = this[usaPuzzle[ri]].height;
                    this[usaPiece[ri]].width = this[usaPuzzle[ri]].width;
                this[usaPiece[ri]].x = e.stageX;
                this[usaPiece[ri]].y = e.stageY;
                usaPiece[ri] = null;
                PuzzleGlobals.statesOnBoardUSA++;
            else {
                addNewPiece(e);
    Here is the code that creates the piece:
            public function GeoPiece(): void {
                if (PuzzleGlobals.currentLevel == "Name") {
                    this.gotoAndStop("wholeName");
                else if (PuzzleGlobals.currentLevel == "Abbrev") {
                    this.gotoAndStop("abbrev");
                else if (PuzzleGlobals.currentLevel == "Shape") {
                    this.gotoAndStop("shape");
                this.addEventListener(TouchEvent.TOUCH_BEGIN, geoPieceBegin);
    Is it possible I have a bad compiler or something? Do I need to reinstall the entire program? I just can't figure out why it would work in one operating system and not in another.
    Thanks
    Amber

  • I can't sign into iCloud because my Apple ID doesn't work there.  For some reason it gave me a .mac email and I don't remember the password.  When it gives me the option to reset my password, it's my Apple ID password which I don't want to do.

    I can't sign into iCloud because my Apple ID doesn't work there.  For some reason it gave me a .mac email and I don't remember the password.  When it gives me the option to reset my password, it's my Apple ID password which I don't want to do.  I have ended up chaning my Apple ID 3 times lately and I still can't get to my cloud management.  What do I do?

    Check if your Data and Time, and Time Zone are set to automatically: OS X Yosemite: Set the date and time on your Mac
    Is this issue also appearing on new user account:
    Isolating an issue by using another user account - Apple Support
    Mac OS X: How to troubleshoot a software issue - Apple Support
    Is this issue also appearing in safe mode: OS X: What is Safe Boot, Safe Mode? - Apple Support

  • IMac 24" iMac  (iMac7,1), Intel Core 2 Duo 2,8 GHz  Ram 4 MB running OS 10.6.8: impossible upgrade to Mac OSX Mavericks. Already created second account, according to apple online support, but still doesn't work. Thanks for help.

    iMac 24" iMac  (iMac7,1), Intel Core 2 Duo 2,8 GHz  Ram 4 MB running OS 10.6.8: impossible upgrade to Mac OSX Mavericks. Already created second account, according to apple online support, but still doesn't work. Thanks for help.

    Your Mac is definitely one of the supported models? http://www.apple.com/uk/osx/specs/
    If so, what happens when you try to download? Is it a case of nothing happens? If so, take a look at the suggestions under 'Stalled Download' in this link:
    http://www.wired.com/gadgetlab/2013/10/mavericks-issues-and-fixes/#slideid-23477 1
    Also, some usrs have found that logging out of the Mac App Store and then back in again and starting over has kick-started the download. It seems that the 5+gb download can take a long time to give any feedback as to what's happening.

  • Why the preloader doesn't work in IE 8 but works in FireFox?

    Why the preloader doesn't work in IE 8 but works in FireFox?
    Please see the attached files.  Thanks in advance.

    Why doesn't the preloader work in IE8?
    What's "virtual sandbox"?

  • Textfield not working in air for android

    Hi,
    I have a weird problem. An input text component that works in air for desktop refuses to work in an air for android application.
    It draws on the screen as it should but i cant input text. Am i missing something fundamental?
    It is kind of hard to log in if i cant enter credentials
    Here is the code:
       idFmt1= new TextFormat("arial",18,0x000000);
       idFmt1.align="left";
       _inputText= new TextField();
       _inputText.defaultTextFormat = idFmt1;
       _inputText.x=150;
       _inputText.height = 35;
       _inputText.width= 150;
       _inputText.type = TextFieldType.INPUT;
       _inputText.background = true;
       _inputText.backgroundColor = 0xa0a0a0;
       _inputText.text = _initText;
       _inputText.tabEnabled = true;
       _inputText.tabIndex = 1;
       _inputText.displayAsPassword = false;
       _inputText.antiAliasType = flash.text.AntiAliasType.ADVANCED;
       _inputText.embedFonts = true;
       _inputText.alwaysShowSelection = true;
       _inputText.mouseEnabled=true;
       addChild(_inputText);

    I can't seem to get anywhere with capturing text input! I set the "type" to TextFieldType.INPUT  but this is still ignored on both the desktop and the device. If I place an input textield on the scene in Flash, that works in so far as it brings up the Android keyboard - but then nothing you type is of any consequence.
    What could I be missing?

  • Air for Ios doesn't compile actionscript

    Hi guys,
    I'm having a big problem... I'm developing a game to be published to web, ios, android. If I export the swf for the web or the apk for android everything is ok but when I try to package the swf using air for ios the swf doesn't contains any actionscript, the compilation is very fast and the swf is smaller, also if I try to debug the fla nothing happen because no code is compiled. This is started in the last two month, before I was able to package also to ios and I was able to create an ipa that I sent to apple store but now I need to modify the app and I can no more compile it. I have browsed the forum and read something about the umcompiled actionscript problem but I didn't load any external swf, I just use urlloader to load an xml and some images. I'm using flash cs5.5. Someone have some suggestion?

    If you are using Flash Professional.. I would just create a new FLA .. copy over your library assets, etc.   Make sure to point to your certificates and provisioning files, etc.. and recompile.
    Were you using an old version of AIR previously and have the new AIR SDK installed now ?
    I have found that compiling the IPA with ADT from the command line is much better than compiling from the IDE and allows you to use the iOS5.1 SDK instead of iOS4.

  • Hi I am using iphone 4, since last few days i am facing problem in touch screen at times it doesn't work at all for 5-10 mins and then it works out itself. Can anyone pls suggest what the problem is and how it can be sorted out?

    Hi I am using iphone 4, since last few days i am facing problem in touch screen at times it doesn’t work at all for 5-10 mins and then it works out itself. Can anyone pls suggest what the problem is and how it can be sorted out?

    Did you recently updated to 7.0.4? Even for me same also issues.

  • AIR for iOS, are all features working? Need to quote a complex project and want to make sure...

    Hi,
    I am quoting for a large RIA to be exported as an iOS app, using features such as consuming webservices in https, etc.
    My question is:
    - Do all standard AIR features work when packaging for iOS? Can I consume data on the internet? store local data? save photos? access the camera? etc.
    - What is notoriously not working?
    Thank you very much
    namaste
    Filippo

    Those things you mentioned should work. The main thing that does not work is you can't load an external swf that has code in it, that's not allowed.

  • AIR for iOS 3.1 - App name no longer working?

    I have named my app "Someapp 123" and mysteriously the app continuously drops the "123" portion of the name. It used to appear just fine.
    Yesterday I noticed AIR3.1 was released and I overlayed that. Has anyone else overlayed AIR3.1? Notice your app name not completely working?
    FWIW it is an iPad-only app. The provision clearly states the name of the app is "Someapp 123". In AIR for IOS settings I have the "App Name" parameter set properly as well.

    My app name is a small word with a number after it, e.g. "Some 123". No ampersands or anything fancy.
    I did not know that it republished the XML if I published from the iOS panel but I even see hitting "OK" in that panel re-writes the XML file (because you need to put a password in for the p12 every time before publishing) and that overwrites it.
    I edited the re-created XML file, removed junk whitespace and changed my app name to a single word "Testapp". I publish with alt+shift+f12 typically which is the same as the file menu. I hit file->Publish anyhow and I can verify yes indeed it did not overwrite my XML file. Unfortunately the app was not named "Testapp", it was still named what I had named the SWF file. I verified the XML was not overwritten and it was not.
    I noticed there's a <name> and also a <filename>. The <filename> does not have SWF applied to it and there is also an attribute <content> which actually points to the SWF. I'm not sure why both <filename> and <content> exists but I went and changed the <filename> to the app title I wanted. So both <name> and <filename> are now "Testapp". I published with file->publish and low and behold, the name of the app is now "Testapp".
    Why would flash choose to use <filename> over <name>?
    Here is a full example of my XML file:
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <application xmlns="http://ns.adobe.com/air/application/3.1">
      <id>com.mycompany.AppID</id>
      <versionNumber>1.4</versionNumber>
      <filename>Testapp</filename>
      <description/>
      <name>Testapp</name>
      <copyright/>
      <initialWindow>
        <content>MyFile.swf</content>
        <systemChrome>standard</systemChrome>
        <transparent>false</transparent>
        <visible>true</visible>
        <fullScreen>true</fullScreen>
        <aspectRatio>landscape</aspectRatio>
        <renderMode>gpu</renderMode>
        <autoOrients>true</autoOrients>
      </initialWindow>
      <icon>
        <image29x29>AppIconsForPublish/29.png</image29x29>
        <image57x57>AppIconsForPublish/57.png</image57x57>
        <image114x114>AppIconsForPublish/114.png</image114x114>
        <image48x48>AppIconsForPublish/48.png</image48x48>
        <image72x72>AppIconsForPublish/72.png</image72x72>
        <image512x512>AppIconsForPublish/t512.png</image512x512></icon>
      <customUpdateUI>false</customUpdateUI>
      <allowBrowserInvocation>false</allowBrowserInvocation>
      <iPhone>
        <InfoAdditions>
          <![CDATA[<key>UIDeviceFamily</key><array><string>2</string></array>]]>
        </InfoAdditions>
        <requestedDisplayResolution>standard</requestedDisplayResolution>
      </iPhone>
    </application>
    Anything in there seem odd? Again I'm using the AIR 3.1 SDK so I'm using that namespace. Anything I put in <filename> is now the app name, however in iTunes it continues to say "Unknown Ge..." which is pretty unprofessional. Although the icon works fine. When syncing I see the value in the <filename> field, as it will say "Syncing Testapp...".

  • Edit application settings AIR for iOS not working

    Hi all,
    I'm trying to create a .ipa so I can test my app on my iPhone but my Flash cs6 will no longer let me edit application settings so I can publish the file.
    The first time I did it, it was working fine. I added my certificate and my Provisioning Profile and published a .ipa file.
    Now, when I click the wrench tool icon or go through the file menu and select AIR for iOS settings, nothing happens. All it does is generate an .xml file for me ("filename"-app.xml).
    What is wrong and how can I fix this?
    I've tried rebooting.
    I have the same problem on Flash cs6 and Flash cs5.5 on two different computers.
    I have an iOS development Certificate.
    I have an iOS development Provisioning Profile.
    Thanks in advance for your help!
    Cheers,
    André

    Here's the link to the bug report in Adobe bugbase:
    Bug#3850040 - Flash CS6 crash
    Everyone PLEASE up Vote this bug ASAP!   (right side panel - under Attachments section)
    It's been 2 weeks since the bug was reported and it's status is still "unverified"...

  • HP updated my BIOS and now the sound system doesn't work on Dv76012Tx.

    HP Care / Support Assistant requested to update my BIOS, which I did.  Computer restarted a couple of times then I found my sound system doesn't work.  My computer is Dv7-6012Tx and it is just a week old.  I now get no sound, and it had been working beautifully.
    Please reset my BIOS back to how it was.

    Had the same problem as of about 30 minutes ago.  New BIOS update, sound doesn't work.  Drivers all read as up-to-date.  What the hell?

Maybe you are looking for