Loading a flashwebsite within AIR on IOS

   I had a curious thought about being able to load a window inside of your air app that loads a flash based website on an ios device.  I know you cant view flash websites on safari with ios.
The only thing I have tried so far is to use stagewebview to load a flash site, but it doesn't display the flash content.
So my question would be:  Are there any other options for loading a site WITHIN your air app that would display flash content?

The WebView that StageWebView uses is the same thing that Safari uses, so any restrictions that are true in Safari are also true in StageWebView. Also, you can't load and run code that is it an external swf on iOS. So, overall, there isn't any way to do what you want, other than just doing it on Android.

Similar Messages

  • Loading SWF's in AIR for iOS

    Hi,
    I am working on a project in AIR for iOS.  It's great that we as flash developers are now able to compile our actionscript code for iOS.
    The project i'm working on is divided in different SWF-files.  There is one master SWF file that loads the others when needed.
    Now i can't get loading of a swf file actually working.  The only thing i see is the background of the child being displayed, but then the program freezes and no actionscript code of the child gets exectuted.
    The children swf's are loaded with a simple Loader:
    var loader:Loader = new Loader();
    childLayer.addChild(loader);
    var url:URLRequest = new URLRequest("child.swf");
    loader.load(url);
    When i publish the master swf file i include the children swf files in the package.
    Is it actually possible to use multiple swf's in your iOS projects?
    And what are the limitations for this?
    Thanks.
    greeting,
    Bert

    You can control your external swf from your main.swf in the following method:
    loadswf(clips[0]);
    function loadswf(tmp:String):void{
        passedString=tmp;
        ldr= new Loader();
        ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressListener);
        ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
        ldr.load(new URLRequest(animPath+tmp));
        function progressListener (e:ProgressEvent):void{
            ploader.visible=true;
        function swfLoaded(e:Event):void {
            mcExt = e.target.content as MovieClip;
            ldr.contentLoaderInfo.removeEventListener(Event.COMPLETE, swfLoaded);
            mcExt.addEventListener(Event.ENTER_FRAME,onEnterfn);
            ploader.visible=false;
            addChild(mcExt);
    function onEnterfn(e:Event):void{
        var num:int=mcExt.currentFrame;
        switch(passedString){
            case clips[0]:
                if (num==1) mcExt.play();
                if (num==9) {
                   mcExt.skipmc.addEventListener(MouseEvent.CLICK,skipfn);
                    function skipfn(e:MouseEvent):void{
                        mcExt.stop();
                       mcExt.removeEventListener(Event.ENTER_FRAME,onEnterfn);
                        gotoAndStop("help");
                if (num==mcExt.totalFrames){
                   mcExt.removeEventListener(Event.ENTER_FRAME,onEnterfn);
                    gotoAndStop("help");
                break;

  • [AIR to iOS] Reading 'included' video file with NetStream, possible?

    Hey all,
    During publishing of the app you have a chance to include extra files. I'd like to include a f4v flash video that I'd like to play via the Video class. I'm having a bit of trouble figuring out how to get these two connected.
    I can get a full reference to the file ala the usual and use .url or .nativePath:
    var videoFile:File = File.applicationDirectory.resolvePath("some.f4v");
    When I try to pass that into a NetStream such as:
    var myVideo:Video = new Video();
    addChild(myVideo);
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    myVideo.attachNetStream(ns);
    ns.play(videoFile.url);
    This never works for me. Nor using:
    ns.play(videoFile.nativePath);
    Anyone ever get a class like Loader or NetStream, etc to load included files in AIR for iOS or Android projects? See anything wrong here? Thanks for tips!

    I got this to work (exactly as mentioned above) in Android but on iOS I get issues. I also need to use .url as .nativePath doesn't seem to be friendly.
    The performance is another thing. Trying to play a 800x480 video on a HTC EVO 4G (single 1ghz snapdragon) was a painful 1-2fps mess. I encoded the video in f4v H.264 and also mp4 H.264. They were both 1-2FPS.
    Clearly waiting for StageVideo in AIR3.0 is going to be the fix for this whole mess.
    ns.play("videofile.f4v") ... I don't think that your first 3 lines are needed or appropriate here, are they?
    You're in AIR for Android/iOS so you have the flash.filesystem package you should look at, specifically the File class. It helps AIR load files you package that are located in your applicationDirectory.

  • Uploading AIR for IOS thru Application Loader I get the following error - The package does not contain an Info.plist.

    I'm publishing an .fla in AIR for IOS.
    I'm in CC 2014 so first I need to know which AIR should I publish in?
    newest is AIR 14.0.0.178 for IOS
    IOS deployment type is App Store
    publishes with no error.
    I see the following files included .swf and app.xml
    I convert the .ipa to a zip file
    Upload that thru the Application Loader I get the following error
    The package does not contain an Info.plist.
    Where is the infoplist for this and do I convert the .ipa and the info to a zip file?
    I converted the .ipa to a .zip and the intoplist file is NOT THERE  how do I generate this?
    Any help here?

    Ok this is becoming very very frustrating as I have been at this for hours now. So the only way to explain this is to write what I did step by step as I have to be doing something wrong, just to recap:
    I was publishing from Flash CC 2014 using AIR 14.0 and getting Digital Certificate is not valid message.
    Was instructed to download new AIR 17 , I did this installed into Flash and used to publish.
    I used my previous p12, app ID and distribution certificates all generated properly.
    The file worked ONCE but I got an app ID error ( I understood I used the wrong app ID)
    I changed it to the right app ID and the very next time and after 10 attempts I got the same error  Digital Certificate is not valid
    SO I then downloaded AIR 16.0
    RE DID ALL MY CERTIFICATES AND P12'S
    went to publish and I STILL GET THE SAME MESSAGE   Digital Certificate is not valid

  • Just received a new Ipad Air, but IOS version is older than current IPad...can not load backup...How do I upgrade IOS version?

    Just received a new Ipad Air, but IOS version is older than current IPad...can not load backup...How do I upgrade IOS version?

    In order to upgrade the new Air 2, I had to select "set up as new" from the menu. So, after the IOS upgrade is done, how do I "restore" the data that is backed up on icloud from my old Ipad?  I don't see a menu item for that . . .
    Thanks

  • I can load my Numbers "My Templates" onto my ipad Air running ios 8 using iCloud, but when I try to do the same thing with my iphone 5s also running ios8, I get an error message and they do not load. What to do?

    I am referring to the "My Templates" folder where I have designed my own specific templates. It loaded fine for iPad Air but confusingly, once it is on iCloud it does not seem to be accessible by my iPhone. So I tried the same process which entails finding the com.apple.numbers file and emailing the files; selecting them on iPhone then telling them to be opened by Numbers. Numbers will ask if you want them to be added to Templates. I said yes and after a brief attempt it returns the message that it cannot load the templates, an error occurred, but there is no reference as to what that error might be nor how to fix it.

    To anyone who has viewed this post and is having similar difficulties, the answer came on a different forum: I dragged & dropped the files from Mail to iCloud Drive. Opened them on my MB Air, they were saved in Templates and are now accessible across all my devices.
    Answer came from SGIll: Numbers templateshttps://discussions.apple.com/message/27505880#27505880Numbers templates

  • WEB PAGE'S LOADING INTO AN AIR FOR iOS PROJECT

    Hi!
    I have a complicated problem. I try to find a solution everywhere but I didn’t find anything.
    I’m creating a project Air for iOS with Flash CS5 and Flash CS6. I need to find somebody that know how to upload a web page inside an app.
    I try to explain better. There is yet a task for upload an html link, but it just work in a new browser window. In this way, every time I want to see a web page, the app will be close. Is it possible to import all the web page inside the Air for ios project, and not in an external window?
    I'd like the result is like this:
    Thanks a lot.

    hi....
    i used StageWebView class and i wrote this code:
    var webView:StageWebView = new StageWebView();
    webView.viewPort = new Rectangle( 0, 0, this.stage.stageWidth, this .stage.stageHeight);
    webView.stage = this.stage;
    webView.loadURL( "http://www.adobe.com" );
    The web page opens correctly without using the browser but it opens into all project's frames.
    Is it possible to open the web page only in the frame one (for example) ????
    Thanks a lot!!!!!!!!!!!!!!!!!

  • Photos loaded directly onto ipad air do not show up on PC anywhere when synced using itunes

    Photos loaded directly onto ipad air using Apple camera connection kit, do not show up on PC anywhere when synced using itunes

    They won't show in iTunes (iTunes is only used to copy photos to a device, not copy them off), but you should be able to copy them off either manually via My Computer (the iPad should show as a camera) or via windows camera wizard or windows live photo gallery depending upon your OS version.
    Copying photos : iOS: Import personal photos and videos from iOS devices to your computer

  • IPad Air with iOS 8.02 freezes and blue screen appears. What should be done ? Why is this happening ?

    IPad Air with iOS 8.02 freezes and blue screen appears. What should be done ? Why is this happening ?

    If nothing else works, you might try this one. It has worked for many others ...
    Use iTunes to do a reset to factory default condition. Always be sure to do your backups before fiddling with your iPad. You might do both the iCloud and the iTunes backup, just to be sure!
    Back up and Restore your iOS Device with iCloud or iTunes
    http://support.apple.com/kb/ht1766
    iTunes: About iOS Backups
    http://support.apple.com/kb/ht4946
    Use iTunes to Restore your iOS Device to Factory Settings
    http://support.apple.com/kb/ht1414
    Various issues from many different users have been solved by this. I've lost count on how many have been helped by this, so far. But, it doesn't mean EVERYONE will be helped, but I've seen a whole lot. You can only try and see ...
    iPad 2 and iOS 8.0.2 Problems
    For all iPad 2 owners, this is an important solution for you! These problems result from long-term use, continuous upgrades, corrupted files and various glitches that happen over this long term use. You just need to get your iPad 2 back to FACTORY FRESH CONDITION to start out clean!
    Here's one person's solution which will help a lot of iPad 2 users!
    keithfrommariettaOct 12, 2014 3:25 PM Re: IPAD2 very slow after IOS 8 upgrade
    Re: IPAD2 very slow after IOS 8 upgradein response to pacoKAS
    SOLVED:  IOS 8 Issues on iPad 2:
    I just returned home from a visit to the Genius Bar. Like you and many others, when I upgraded my iPad 2 to IOS 8, it became practically unusable. It was VERY slow, lagged whenever trying to to do anything. Lots of screen freezes and apps spontaneously crashing. I was convinced that the processor on the iPad 2 just couldn't handle the new IOS and I went in to see about restoring to IOS 7.
    Thankfully, I was hooked up with a very sharp guy at the bar. The problem is not with the OS, it is with it being an *upgraded* OS. He used the analogy of when you had an older Windows computer and how over time (and over upgrades), they just tended to get slower and slower because of all of the garbage that was carried forward in the upgrades. At those times (and if you've ever had a Windows computer, you get this), the only thing that would speed it up would be to wipe the machine and do a fresh install of the current OS and then reload your apps, and the viola, everything would be fast again. Well, it turns out that IOS can suffer the same problems.
    THE FIX:  FIRST, be sure you have a current iCloud backup of your device.  Connect your iPad to a computer that has a clean fresh copy of IOS 8 on iTunes (this is best done with a computer other than the one that you sync your device to because you DO NOT want to restore it from a back up just yet). Ideally, if you do this at an Apple store you'll be assured of the right version there and someone to answer any questions you might have along the way. You then hold the power and home button down to hard-reset the device and continue to hold them down until it reboots into recovery mode. You then follow the instructions on the computer to reinstall the OS on the device (which wipes everything from it and then reinstalls a clean copy of it). Once this is done (which only takes about 15 minutes), your device will reboot and ask you to set it up. Answer the questions about language, location, etc. and continue until it asks you to log into your iTunes account. Once you do that, it will ask if you want to either 1) Set it up as a new device, 2) Restore from iCloud, or 3) Restore from iTunes. Choose (2), restore from iCloud. This will ensure that it brings down "clean" copies of all of your apps and preferences rather than the potentially corrupted ones that might reside in your iTunes backup. That's it! It will take a few hours depending on how much data and apps you have, but I am happy to report that my iPad 2 is now running IOS 8 and it's running as fast as it ever did when it was brand new!
    To sum it up, this process 1) Wipes your device and the garbage causing your problems, 2) Loads a clean and bug-free version of IOS 8 to your device, and 3) restores your apps and data so that it looks just like it did before the wipe, with the exception that it works now!  :-)
    Note also that by following this process you don't have to go through the painful and laborious process of reloading all of your apps, data and/or settings. iCloud takes care of all of that for you.

  • How to reduce suttering in Air for iOS GPU mode?

    My game currently runs at 60FPS on iPad 2 and has no problem regarding rendering speed but I'm rather annoyed by constant stuttering which causes the game to stop for 0.1-0.5 sec  once in a while. The stuttering behavior is similar to when garbage collector is ran and I supposed it is casued by GPU memory swapping as my game uses lots of bitmapdata.
    Problem is that my game transits one scene to another scene seamlessly without stopping animations in the game screen by letting old game scene sliding out of the screen and new scene sliding in. So there's no time to preload/precache graphics assets used in the new scene. After transitting different scenes a few times, the game starts stuttering when trying to show new images.
    My game works fine without stuttering on old PCs but on iPad2 it is quite obvious. Could anyone tell me some tips to reduce stuttering when using Air for iOS? In the game, all vector graphics are pre-drawn to bitmapdata(so no vector graphics are shown) and the size of graphic assets each scene has is about 2048*1024 pixels. There are about 10 scenes. On top of that, there are common interface graphic assets which are used in all scenes and the size is about 30x 400*400 pixels.
    I know the game uses quite a lot of graphic resources. Making the game preload the assets before transitting to a new scene will eliminate stutter but I'd still like to see if I can keep the seamless scene transition on iOS.
    I'm currently using Air3.5 + Flash CS6.
    * I mean preloading/precaching by actually displaying( addChild and visible=true)  them on stage and make time for GPU to cache. All the actual graphic data are already loaded.

    Some things that might help:
    I've heard that textures are uploaded as square textures on iOS. I'm not certain that really happens, but if it does then having two 1024x1024 textures would be better than one 2048x1024, because that would end up actually taking 2048x2048.
    Bitmaps are sent to the GPU when they first hit the stage, and it takes a significant amount of time for them to get there. If you are timeline animating a transition to the next scene, stagger the graphics that are going to be appearing next. That is, before you start to move on to the next area have the biggest bitmap of the next are already touching the edge of the stage. It can be invisible, or underneath another graphic, it will still get uploaded. But if you tween in all of the graphics exactly when they are needed, they will take a while to upload.
    Dispose of the bitmaps that are no longer in the scene. I think your stuttering is because you're going into a new area that has a lot of new graphics, and the GPU still has the bitmaps from the current scene and the one before that, and so has to spend time freeing up the memory before taking the new bitmaps. If you had already disposed of them the GPU might not need to clear memory for you.
    There is System.gc(). That will force the system to garbage collect, which you could do at moments that there isn't anything animating.

  • AIR for iOS, Getting HTML5 Video to Autoplay in a StageWebView?

    Hi all,
    The video performance I get from the built in FLV video is pretty poor. I'm considering using a StageWebView to display a HTML5 page with a standard <video> in it.
    The video shows up and (if I enable controls) can be played and it looks great (much better than FLV). The only issue is I cannot find a way to have the video autoplay once the StageWebView is loaded.
    I've set the <video .... autoplay> parameter. I've also tried using JavaScript to send a video.play() (after the window load event is complete and the DOM is ready).
    Has anyone figured this out?
    I can't wait for AIR3.0 so we can just use StageVideo.. But for now I'm using AIR2.7 via Flash CS5.5 publishing for an iPad2 via AIR for iOS.
    Thanks for any tips!

    This was a pretty old post. In the advent of StageVideo it doesn't really matter anymore. StageVideo is GPU and you can autoplay all you like.
    BTW there was an old project I'm unsure if it still exists but it was called StageWebViewBridge (SWVB) that reconnected AS3 and JS. You could call methods in JavaScript right from ActionScript the same way fscommand/externalInterface works. So you could force the video to start playing using that.

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

  • How to make external SWFs garbage collected in Air for iOS?

    My app uses lots of external SWFs( well they are actually included in the app with a folder but they aren't embeded ) and they do not contain any bitmapdata, only vector graphics. The problem I'm having is that they seem to be never garbage collected and System.privateMemory keeps increasing as the app loads more SWFs.
    Since those SWFs only contain vector graphics, I simply nullify all the variables that are holding reference to SWF file and call System.gc().. But it doesn't seem to be working. What would I need to do for the garbage collector to clean the SWFs?
    I'm using Air for iOS 3.5.0.1060 and ActionScript3.0.

    Yes I'm calling System.gc() twice. I tried using loader.unloadAndStop(true) and it seems SWFs are being garbage collected but another problem has surfaced. When repeatedly loading and unloading SWF in a short period, the air garbage collector sometimes fails to work.
    I've tested loading and unloading same SWF 50k times and checked trace.  Occasionally, garbage collector misses to collect garbage like below( swf #45119 is not being garbage collected).
    [UnloadSWF] main.swf/[[DYNAMIC]]/45115
    [UnloadSWF] main.swf/[[DYNAMIC]]/45116
    [UnloadSWF] main.swf/[[DYNAMIC]]/45117
    [UnloadSWF] main.swf/[[DYNAMIC]]/45118
    [UnloadSWF] main.swf/[[DYNAMIC]]/45120
    [UnloadSWF] main.swf/[[DYNAMIC]]/45121

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

  • How to load matlab on macbook air

    how to load matlab on macbook air?

    There are two ways to use Windows on your Mac. The first is to partition the internal drive so that you can use one part for MacOS and the other for Windows, selecting which you want to use when you start up. That's called Boot Camp, and information about how to set it up and use it can be found in the document at http://support.apple.com/kb/HT1461 The disadvantage of this is that you can only run Mac or Windows at any given time, not both.
    The other method is to use what is known as a 'virtual machine', to run Windows as if it were just another application within MacOS, thus allowing you to run both at the same time, and even share documents between them. To do this you'll need appropriate software such as VMware Fusion (http://www.vmware.com/products/fusion/overview.html) or Parallels Desktop (http://www.parallels.com/products/desktop/) Neither of these need the drive to be partitioned, but unlike Boot camp which is free, VMware or Parallels are both commercial software.
    Whichever solution you use, you'll also need a Windows installer and valid product license.

Maybe you are looking for

  • I know, another external monitor question...

    Can someone please point me to a link or suggest some keywords to find a solution for adding an external video monitor? Apparently I'm not using the right ones. FCP manual says to use a "3rd party video interface". I would like to monitor my video on

  • Iphone 5 Battery not under warranty in yr 1?

    Has anyone had their battery tested? Mine is right on the verge of "red" but still in the yellow. I use my phone no more than I had my Iphone, 3, 3s, 4, 4s, yet after about 7 months Apple says it has been used too much. I also have had 2 cables go ba

  • Private properties in Userobject?

    Hello all, We are in the middle of studying a Sharepoint environment. We want to use the user profile page, and later on MySite, for a companies adress book. In the present company adress book users can read their pincode for the printer (Uniflow pri

  • I get message when attempting to access many websites - unrusted connection, please help

    I have been accessing many websites via firefox for many years, but over the past3-4 days I have been receiving the message - untrusted website, with the technical details informing me that www.google.com uses an invalid security certificate because

  • Fallo al editar con lightroom 5

    Hola a todos soy nuevo por aqui y quisiera plantear un problema que tengo con lightroom 5, Al ver las previsualizaciones 1:1 en las fotos se me queda un rato sin realizarlas como 3 o 4 segundos y según voy pasando a otras fotos el tiempo se va aument