Flash app air to IOS. Sound problem

HI, I have done an app for IOS in flash. This flash content a video. The video work`s correctly in the simulator. I in the iphone the video work´s but the sound not.  Please i need resolve this as soon as possible. Thank you in advace

You are making a top-level item that is over the Flash display list when you make a StageWebView. This means you cannot even draw a "button" on top of the StageWebView to cause it to close.
You need to adjust the size of the video being played so it's smaller than the entire Stage size. For example, make it 40 pixels vertically smaller than your stage (the recommended button size minimum). Then put a button at the top of the stage to trigger the closing of the StageWebView.
e.g. Note: this is not a complete code example, but this should give you the right idea
// retain a reference outside this function
var webView:StageWebView;
function fl_ClickToGoToWebPage(event:MouseEvent):void
  // use this reference
  webView = new StageWebView();
  webView.stage = this.stage;
  // 40 pixels shorter than vertical height, also down 40 pixels
  webView.viewPort = new Rectangle(0, 40, stage.stageWidth, (stage.stageHeight - 40));
  var fPath:String = new File(new File("app:/kk.mp4").nativePath).url;
  webView.loadURL( fPath );
  // have some button on the stage at a y position of 0 so it can be
  // seen over the StageWebView. Say the instance name is 'closeVideo_btn':
  closeVideo_btn.addEventListener(MouseEvent.CLICK, function(e):void {
  // close StageWebView
  webView.stage = null;
  webView.viewPort = null;
  webView.dispose();
  webView = null;
  // get rid of this button, etc..
  }, false, 0, true);
So that code is expecting "you" to put a button on the screen when you play the video with the instance name "closeVideo_btn". When the StageWebView is drawn the button has an event listener added. The buttons script that runs when the user touches it (MouseEvent.CLICK) is to close the StageWebView. You'd then need to get rid of the close button as well.
Do note I made a reference to the webView outside the function. This is so closeVideo_btn's function has access to it when it runs. If I didn't do that then it wouldn't exist after the function ran. I'm assuming this is frame scripts.

Similar Messages

  • Present and future of Flash with AIR on iOS

    I'm having a hard time finding clear information on the situation about deploying Flash with air runtine on iOS. While it seems clear that the plugin flash for iOS is ended I didn't find any infos about Adobe AIR. Is it still possible to distribute apps for iOS through the iTunes Store. Arte the apps using Air still running on iOS.
    Thank
    Marc

    While it seems clear that the plugin flash for iOS is ended
    There was never any Flash plugin for iOS. Apple has always been very forward about iOS simply does not support Flash. It ended for Android.
    Adobe AIR apps compile down into native code (ARM for iOS). You're not actually running "Flash" or "AIR" at that point. This method of deploying apps is very convenient because the same code used to produce an AIR for iOS app can be largely re-used on the Android side, reducing overall costs involved in developing for both platforms.
    I think it's pretty safe to say this method of app creation isn't going away anytime soon.
    Lastly yes there are plenty of AIR for iOS apps on the market (I have some myself) and they all work fine as long as you do as an Xcode or Java developer would when a new OS comes out. You test for compatibility and update as necessary to keep your app functioning properly. The vast majority of fixes needed come from OS changes, not issues with Adobe AIR. Stability is very good.

  • Flash CS6 AIR for iOS 接続されたiOSデバイスにアプリケーションをインストールできない

    Flash Professional CS6 AIR for iOSにて、iPhoneアプリを制作~公開している者ですが、
    アップデート作業時、急にデバイステスト(接続されたiOSデバイスにアプリケーションをインストール)が出来なくなり、
    困っています。
    開発環境は以下の通りです。
    ・Flash Professional CS6
    ・Windows 7(32bit)
    ・AIR SDK:3.5.0.880 for iOS
    設定等は特に変えていないのですが、
    検証機のiPhone 5(iOS6.1.2)、iPhone 4(6.0.1)へクイックパブリッシュでインストールしようとすると、
    "Installation Error: ApplicationVerificationFailed
    デバイスエラー: デバイスに十分な容量があるか確認してください"
    というエラーが出ます。
    もちろんデバイス側には十分な容量がありますし、
    エラーの英文と和文も内容的に食い違っているように見えます。
    いろいろ調べて、以下の項目を試してみましたが、
    状況は変わりません。
    ・証明書(開発用)を再発行して読み込み
    ・プロビジョニングファイル(開発用)を再発行して読み込み
    ・Flash Professional CS6のアップデート
    ・AIR SDKを3.6.0.5990 for iOSにアップデート
    ・アプリケーションIDの変更
    これは何が原因でしょうか。

    "環境ファイル削除+Flash CS6自体の再インストール→通常アップデート"にて、解決しました。

  • AIR 3 ios sound issues

    hey all
    i am using the AIR 3 sdk overlayed Flash Pro 5.5 and i am having 2 sound issues:
    first of all, my iPhone 3g's physical mute/silent button does not affect my app, and it should
    secondly, the app records sound from the microphone when the user presses a button,
    but on playback (with another button) you can hear that the sound is missing half a second or so from the beginning
    this does not happen when testing on the desktop
    any ideas?
    thanx, Saar

    AIR-3 have disabled it. Now you have to use a Native Extension to see if mute or not, and thus able to control it sounds like they sound and what not. I am using a Native Extension own and works perfectly.

  • Flash Builder 4.7 iOS packaging problem

    I get the following error message when compiling my app with air 3.4 with Standard packaging or release build. Interestingly when using fast packaging I don't get any problems.
    Error occurred while packaging the application:
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
               at adobe.abc.GlobalOptimizer$InputAbc.readCode(GlobalOptimizer.java:1134 )
               at adobe.abc.GlobalOptimizer$InputAbc.readBody(GlobalOptimizer.java:682)
               at adobe.abc.GlobalOptimizer$InputAbc.readBodies(GlobalOptimizer.java:40 3)
               at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:331)
               at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler .java:533)
               at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:80) Compilation failed while executing : ADT
    I don't have a clue on where to start looking... Tried using an app.xml file from another project that does compile, but still get the same message.
    Any help appreciated!
    /David

    Hi David ,
    I am able to reproduce the issue with project you shared.Thanks for reporting. I have looged a bug to track it.
    Bug ID : http://bugs.adobe.com/jira/browse/FB-33461
    Mean while you can try this workaround:
    1. In the Package settings wizard,click on the the Customize launch button as shown in screenshot.
    2.Click on the Edit Parameter Button.
    3.Choose 'FILE_TO_PACKAGE?' as the name attribute. '?' here means the number which corresponds your swf.
    4.Give bin-debug swf location as the value to the attribute.Choose ok and continue.
    Note:
    This workaround only for testing purpose.
    Let me know if you require more information.
    Thanks,
    Sanjay

  • AIR for IOS, ApplicationDomain problem: Error #2007: Parameter Possible symbol clash in multiple swf

    I am exporting a game for IOS in Flash CS6.
    I have isolated classes, except a framework for static utilities that do not clash, but I still get this message when exporting for IOS.
    AIR for desktop, even with ApplicationDomain.currentDomain works and does not give any error. Same on android.
    When I export the same exact project for IOS, it triggers that error randomly in different parts.
    All related with a call to a method on superclass, the instantiation of an internal class, or of a Vector typed to a custom internal class.
    TypeError: Error #2007: Parameter Possible symbol clash in multiple swfs, abcenv must be non-null.
    The line that triggers the error:
    return new RouletteChoserItemDev(num, data);
    Any help is appreciated.
    UPDATE
    I have changed the code into:
    var item:RouletteChoserItemDev;
    var MyClass:Class = RouletteChoserItemDev;
    item = new MyClass(num, data);
    Now I get this funny error:
    Error #1034: Type Coercion failed: cannot convert device.plugins.rouletteLobby::RouletteChoserItemDev@6284bc9 to .
    Yes, cannot convert to ".", a dot!

    *FOUND A SOLUTION*
    The way ApplicationDomain.sameDomain works on Android and Desktop, and on IOS, IS DIFFERENT!!!
    I probably have to file this under AIR bugs.
    Anyway:
    - In loaded SWFs, classes which are not already stored in parent SWF CANNOT be instantiated.
    I.E.
    var c:MyClass = new MyClass(); // Will not work
    var c = new MyClass(); // Will not work
    var c:MyClass = getDefinitionByName("fullpackage.MyClass"); // Will not work
    var c = getDefinitionByName("fullpackage.MyClass"); // WORKS!!!!!
    var c:DisplayItem = getDefinitionByName("fullpackage.MyClass"); // WORKS!!!!!
    So, it seems that classes stored in local loaded SWF will not be accessible directly. Even though tracing it trace(MyClass) works well, the class cannot be used in code in any place. Variables cannot be typed, and class can only be instantiated with getDefinitionByName();
    All this, is true ONLY on IOS, same exact project and settings, will not trigger any error in AIR for Desktop or for Android.
    But since obviously we use the same codebase for all devices, this IOS *feature* has to guide the way we code, even though we break a few important OOP best practices.
    Hope I spared someone else the 3 days including an entire weekend I had to invest to find this out.

  • Flash CS6: AIR for iOS Video on iPhone4 vs. iPhone5?

    Hello,
    In my Flash CS6-based iPhone app, I'm trying to play an MP4 video using the iPhone's native player, showing all the controls.
    Problem: I'm using an HTML5 file to play the MP4 in a WebStageView window (see graphic).  On the iPhone 4, you just tap the screen once, and the video starts playing (this works correctly).  On the iPhone 5, you must tap the screen 3 times!  (HTML code below)
    <!DOCTYPE html>
    <html>
    <body topmargin="0" leftmargin="0">
    <video src="31_intro.mp4" controls width="1024" height="768">
    </video>
    </body>
    </html>
    Does anyone have any answers as to why the iPhone 4 requires one tap to play the video, but the iPhone 5 requires 3 taps to play the video?  Thank you.

    Just bumping this thead.  If anyone from Adobe can reply, I'd greatly appreciate it.  Thank you.

  • Simple Tut AS3 Video in Flash for Air for IOS

    Hi i´m really new programming in AS3, and now i have a task of doing a simple IOS (and andoid later) app that plays a Video, I can't find any simple tutorial to do this. All talk big words about flex and classes. I'm struggling in this and external as and classes tend to make the things harder. Can one point me our a good tut or how to make the script for just call a video to stage (from file or library) and can be played in my app preferable with the default control of video. Thanks

    1.  add the flv to a subdirectory of the directory containing your flash fla and published files.
    2.  add an flvplayback component to your stage and assign its source to be the flv (use a relative path).
    3.  add the flv subdirectory to the list of included files (in the iOS publish settings).

  • IOS Sound problem

    When application not active (minimized), then all sound not playing. For example, application notificate about new message, and user must see it.
    Please, help

    Hi,
    This is not possible with AIR 2.7. Playing audio in background will be supported in the next major release of AIR.
    Regards,
    Sanika

  • Flash Pro CS5.5 and Flash 11/Air 3

    Hey guys. First time posting here.
    I recently read up on some news about Flash player 11 / Air 3 update coming soon and that Adobe is bringing full hardware-accelerated 3D graphics to both Flash and Air. Which sounds awesome . Buuut.. Here's the thing. Will these features be updated into CS5.5? as well as be available for CS6 (I'm just assuming it's coinciding with the release, I may be wrong). I've only just hopped on the CS bandwagon and bought my student liscence for CS5.5 and I really hope I don't regret not waiting for CS6 to buy instead.
    For all who have been using Flash Pro for a while now, how has it been for previous software updates? Did Air become available to those who had earlier versions of Flash Pro when they released a new version?
    Let me know
    Thanks

    Yes its available to those people who have previous versions. Just to change or update the folders (tweeking) for new AIR releases.

  • Flash CC Air iOS: Problems with loading text from an external xml located on a server.

    So I have this code allowing me to load text from an xml located on a server. Everything works fine on the Air for Android. The app even works in the ios emulator, but once I export my app to my ios device with ios 7, I don't see any text. The app is developed with Air sdk 3.9. What could be the reason? Do I need any special permissions like on Android? Does ios even allow to load xml from an external server?
    Any clues?

    It was my bad. I linked to a php file to avoid any connection lags, which was absolutely fine on the android, but didn't seem to work on the ios 7. So all I did is change the php extension to xml and it worked without any problems.

  • Sound problems with apps after updating to IOS 5.1 with Ipad 2

    Hi there,
    I am having a sound problem since the update to ios 5.1. I have an Ipad 2 and all my games don't play sound anymore. I tried to redownload the games as well as restarting the Ipad, but nothing worked for me. Does anyone of you have the same problem?
    best, addario22

    Try backing up and doing a full restore and see if that helps.

  • 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

  • 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.

  • Is there a way to publish a high-res .ipa from Flash CS5.5 with AIR for iOS?

    Hello,
    I've developed an app for iOS in Flash specifically for iPad 3's. My client uses SOTI MobiControl as it's mobile device management solution. If I publish out of Flash using AIR SDK 3.1 or newer the app is created and looks high-res on the iPad3. When they try to add the app to SOTI for in-house distribution it errors with the error claiming that "CFBundleDisplayName" has been left blank.
    After having looked into it I've been able to find out that when publishing with versions of the AIR SDK older than 3.0, the info.plist file within the app package includes a CFBundleDisplayName. In versions newer than 3.0 there is no CFBundleDisplayName in the info.plist.
    Is there a way to publish for iOS from Flash utilizing an older version of the AIR SDK and having true high-res graphics that will look proper on an iPad3?
    Thanks in advance for any help.
    Phil

    It's not AIR that's lacking the key in the plist, it must be Flash Pro, although it's just running adt itself. I use AIR 3.4 and I compile via adt command line (because Flash Builder 4.6 still has not been updated to handle warnings from ANEs during compile, grr). I have CFBundleDisplayName in my plist file. Have you tried compiling on the command line?
    Here's an Adobe page with a bunch of examples compiling with ADT on the command line:
    http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d128cdca935b-8000.html
    Being unaware of what in-house distribution system that actually is, I have noted that some people had previous issues submitting apps Flash compiles. Their solution was to rename the AppName.ipa to AppName.zip, extract the Payload folder, copy the AppName.app inside there out, then rename that AppName.app to AppName.ipa. Then it was accepted. Not sure if that old issue still exists.

Maybe you are looking for

  • Upload nightmare DW CS4

    The files in the last folder I have updated are uploaded to root overwriting identical named files in root (fx index.html). I have tested on several servers. I select the folder I want to upload, including the files in root, and drag them over to rem

  • Infotype 1002 (LMS Course Description): Is there any report?

    Hi Experts We want to print all description for our courses in a report. Is there any report in SAP which takes the description data from infotype 1002. I know the tables hrp1002 and hrt1002 as well as the view hrv1002a. But I can't find any report w

  • Photostream Slideshow Ordering

    Hello all, I've done a search and haven't been able to find an answer to the issue I'm seeing. We have created an icloud photostream of pictures of our newborn baby. We would like to view them in chronological order in a slideshow (or screensaver) on

  • Key Constraints in the Index Tables

    Hey, I am a starter in the Database Application Development. I have created few indexes on columns of different tables, and I wanted to look into the ALL_INDEXES and the USER_INDEXES to find the indexes that I created. I noticed that there are some p

  • When browsing my pointer won't work at the top of page

    when browsing my pointer works fine on most of the page I'm browsing but when I try to use my pointer at top of the page it won't work i.e try to log off