Unable to load PanoPlayer VR swf in Air

attempting to load a VR swf made by PanoPlayer into an AIR app results in:
SecurityError: Error #3226: Cannot import a SWF file when LoaderContext.allowCodeImport is false.
          at flash.display::Loader/_loadBytes()
          at flash.display::Loader/loadBytes()
          at PanoPlayer/initPanoViewer()
Note: the following code works fine in a Flex app for the web ...
Code:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                                     xmlns:mx="library://ns.adobe.com/flex/mx"
                                                     creationComplete="windowedapplication1_creationCompleteHandler(event)">
  <fx:Script>
                    <![CDATA[
                              import mx.events.FlexEvent;
                              import mx.core.UIComponent;
                              protected function windowedapplication1_creationCompleteHandler(event:FlexEvent):void
                                        var urlLoad:URLLoader = new URLLoader(new URLRequest("VR.swf"));
                                        urlLoad.addEventListener(Event.COMPLETE, loadComplete);
                                        urlLoad.dataFormat = URLLoaderDataFormat.BINARY;
               protected function loadComplete(event:Event):void
                                        var loadContext:LoaderContext = new LoaderContext();
                                        loadContext.allowCodeImport = true;
                   theSWF.loaderContext = loadContext;
                                        theSWF.source = event.currentTarget.data;
                    ]]>
  </fx:Script>
          <s:SWFLoader id="theSWF" x="100" y="50"/>
</s:WindowedApplication>

should anyone else have this problem ... it turns out I needed to upgrade PanoPlayer

Similar Messages

  • Loading and download SWFs for AIR apps on iOS from server

    Dear
    I develop app for ios using adobe air i need to loading and download swf in my server to my local device
    i make it loading from server and play but i need to download it locally in device to play offline
    Please Help
    Thank You

    If I undestand correct, the unload() is unsuported yet, so it just hangs in the memory
    In the tests I did, when I put two loads for the same swf, the app freezes, so I don´t know what you can do there.
    For the "code", you just need to put the LoaderContext on the loads, something like this:
    Frame 1:
    var myLoader:Loader;
    var loaderContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
    if(myLoader == null){myLoader = new Loader(); addChild(myLoader); }
    else {myLoader.unload();}
    Frame 2:
    myLoader.unload();
    myLoader.load(new URLRequest("file1.swf"),loaderContext);
    Frame 3:
    myLoader.unload();
    myLoader.load(new URLRequest("file2.swf"),loaderContext);
    Frame 4:
    myLoader.unload();
    myLoader.load(new URLRequest("file3.swf"),loaderContext);
    Regards,
    Rogério Gonzalez

  • Unable to load WSDL after moving to Air 2.6

    I have an AIR app that works fine in 2.5, but fails after moving to FB 4.5 & SDK 4.5.1 & Air 2.6!
    It fails to load a WSDL file if the host address is in a separate network.
    My box is in 10.0.1.202, and the following wsdls load fine:
    - http://localhost:8080/wsdl
    - http://10.0.1.202:8080/wsdl
    - http://10.0.1.8:8080/wsdl (another box)
    But any other address out of the 10.0.1 subnet fails to load, I get a Client.Error.RequestTimeout fault.
    If I try http://192.168.10.100/wsdl (a box on a VPN network I have access to) it fails. Mind you that before issuing a loadWSDL(), the same app does a URLLoad from http://192.168.10.20 and that work fine (it call that address to look for updates).
    So the addresses are all valid and do return a valid wsdl.
    The 2.5 version, built with FB 4 & sdk 4.1 works flawlessly. So this must be something with either FB 4.5 or Air 2.6.
    Maybe something related to security. I have no clue as to what might be causing this.
    Oh, in time, I have generic crossdomain.xml in all sites (those are test sites).
    Thanks for any pointers.
    cheers,
    julio

    Hi Julio,
    Could you log this as a bug over at bugbase.adobe.com?  Also, have you tried this on AIR 2.7?
    Thanks,
    Chris

  • Unable to load Facebook app to iPad Air

    I installed app onto iPad Air however , it fails to log in , it just sits at load with timer on

    Also try reset iPad
    Hold the Sleep/Wake and Home button down together until you see the Apple Logo.
    Note: Data will not be affected.

  • Unable to load external swf which has runtime sharing with another swf.

    Hi,
    I am getting issues on loading external swf say "importer.swf" file into another swf file say "loader.swf" for second time like
    ReferenceError: Error #1065: Variable testSymbol is not defined. VerifyError: Error #1014: Class testClass could not be found.
    at global$init()
    In the external swf "importer.swf", i am trying to import the symbol "testSymbol" from another swf file say "exporter.swf", which exports through runtime sharing option for the symbols.
    I am having some buttons in loader.swf file and on each button click i am loading different swf files into the loader.swf after unloading the previous one.
    I am able to load and unload different swf files but unable to load the importer.swf file which is sharing symbols from external swf and that too for the second time i.e., when i click the button twice.
    When trying to debug with flash debugger, all the other swf files are being unloaded before loading of another swf but the swf which is sharing symbols/classes with another swf is not getting unloaded.
    Output when i am trying to load two files example and importer files into loader.swf file on two different button clicks. On first button click example.swf is loaded. On second button click , example.swf is unloaded and importer.swf is loaded which is successful. On first button click again importer.swf is unloaded and example.swf is loaded. On second button click again, example.swf is unloaded and importer.swf is loaded, here i am getting issues shown above.
    Attemping to launch and connect to Player using URL D:\runtime issue\loader.swf
    [SWF] D:\runtime issue\ loader.swf - 8181 bytes after decompression
    [SWF] D:\runtime issue\example.swf - 441708 bytes after decompression
    [UnloadSWF] D:\runtime issue\example.swf
    [SWF] D:\runtime issue\importer.swf - 1920 bytes after decompression
    [SWF] D:\runtime issue\importer.swf - 441708 bytes after decompression
    [SWF] D:\runtime issue\ example.swf - 441708 bytes after decompression
    [UnloadSWF] D:\runtime issue\ example.swf
    [SWF] D:\runtime issue\importer.swf - 1920 bytes after decompression
    ReferenceError: Error #1065: Variable xxxxxx is not defined.
    Debug session terminated.
    Code i am using
    b1.addEventListener(MouseEvent.CLICK, b1Clicked);
    b2.addEventListener(MouseEvent.CLICK, b2Clicked);
    var ldr:Loader;
    function b2Clicked(e:MouseEvent)
        if(ldr != null)
            ldr.unloadAndStop(true);
        ldr = new Loader();
        ldr.load(new URLRequest("importer.swf"));
        addChild(ldr);
    function b1Clicked(e:MouseEvent)
        if(ldr != null)
            ldr.unloadAndStop(true);
        ldr = new Loader();
        ldr.load(new URLRequest("example.swf"));
        addChild(ldr);
    If i try to open the swf using IE, i am not getting any issues at all. But i need to open this loader.swf in a air application. Also when i use loaderContext for the loader instance i am able to get rid of this issue but i cant use it in my application.
    So, please help me in resolving this issue.
    Thanks

    I got my answer. I had to append the photo url to the 'movie' value of the javascript embed method. Like this:
    <script language="JavaScript" type="text/javascript">
       AC_FL_RunContent(
          'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
          'width', '550',
          'height', '400',
          'src', 'lesson2',
          'quality', 'high',
          'pluginspage', 'http://www.adobe.com/go/getflashplayer',
          'align', 'middle',
          'play', 'true',
          'loop', 'true',
          'scale', 'showall',
          'wmode', 'window',
          'devicefont', 'false',
          'id', 'lesson2',
          'bgcolor', '#ffffff',
          'name', 'lesson2',
          'menu', 'true',
          'allowFullScreen', 'false',
          'allowScriptAccess','always',
          'movie', 'lesson2?photo=http://www.flash-mx.com/images/image1.jpg',
          'salign', ''
          ); //end AC code
    </script>
    Thanks,
    srb.

  • Unable to load style(SWF is not a loadable module)

    While devoloping an App voor iOS we decided to use several StyleSheets.
    We are implementing the loading of Stylesheets as:
    event_dispatcher:IEventDispatcher = this.styleManager.loadStyleDeclarations2("assests/styles/default.swf");
     event_dispatcher.addEventListener(StyleEvent.COMPLETE, OnStyleLoaded);
    event_dispatcher.addEventListener(StyleEvent.ERROR, OnStyleError);
    running the app on the desktop simulators work fine.
    packaging the app with package method fast, and running the app on an iphone4 works fine.
    packaging the app with package method standaard, and running the app on an iphone4 gives an error:
    Unable to load style(SWF is not a loadable module): assets/styles/default.swf.
    Is there something im missing? Why does it work when packaging as Fast, and not as Standard?

    Hi,
            The source file is .swf ie(.css is converted to .swf).
             Main swf is running from local.
             Style module is from server.
    I set security domain. But it throws security sanbox violation.
    What should i do. Even some time if a use the local url means it thorws the same error Unable to load style(SWF is not a loadable module).
    thanks,
    Jayagopal.

  • Using Dreamweaver to create AIR app from HTML site, FLV loaded by placed SWF not loading

    Hello.
    I'm using Dreamweaver to create an HTML-based site that has pages with FLV-based videos that are loaded using a SWF file. The SWF file is just the player / skin. When I preview or publish to AIR, the videos do not show up. I'm sure others have asked how to accomplish this but I'm having difficulty finding the solution to this issue. Can someone share with them their solution please?
    Thank you!
    Robert

    Steveejay, I was having the same problem. It turns out that
    mine didn't like the fact that I was using the "POST" method in my
    loadMovie() call. I changed them to "GET", and it works fine in the
    web page now. Just doesn't work when previewing in Flash.

  • Error: Unable to load style(SWF is not a loadable module)

    Hi,
            While i am trying to load theme dynamically from server, i am getting an error like this
         Error: Unable to load style(SWF is not a loadable module)
    Can anybody help me.
    regards,
    Jayagopal.

    Hi,
            The source file is .swf ie(.css is converted to .swf).
             Main swf is running from local.
             Style module is from server.
    I set security domain. But it throws security sanbox violation.
    What should i do. Even some time if a use the local url means it thorws the same error Unable to load style(SWF is not a loadable module).
    thanks,
    Jayagopal.

  • AIR 3.7 Problem Loading Multiple Similar SWFs On iOS

    I'm running into an issue with loading multiple SWFs using AIR 3.7 on iOS. The exact same code works fine on Android.
    The issue is that if I include 2 specific SWFs then neither of them will load correctly. When I include just one of the SWFs it works great. I've also tried including a second SWF which is pretty much empty and that also works. Additionally, I've been able to load a MovieClip out of the first SWF IF addChild() was first used on myswf1 and that works even when the main SWF did not. Lastly if I include 2 of the exact same SWFs (with different filenames) that also works.
    So my question is what is it about the two SWFs that causes it not to work? They are effectively the same except each has custom assets and custom class naming.
    Both of them subclass off one main class like this:
    class myswf1 extends mymain
    class mymain extends MovieClip
    class myswf2 extends mymain
    class mymain extends MovieClip
    So both SWFs contain mymain seperately from each other. Could that be the issue? Like when it compiles all the code into the package SWF the
    two mymain root classes clash?
    In the past it seems like that should still work it just uses the first loaded class and that is it.
    The errors that I get seem to happen on lines like this:
    selectableHudOptions.bonustime.mouseEnabled = false;
    Where selectableHudOptions.bonustime is basically null. However, when I just have 1 SWF this line works fine.  If I loop through selectableHudOptions's children it is blank when I am loading the two SWFs but it shows all of the children when just loading the one SWF.
    Another theory I have about it is that it seems like addChild() has to be used on the objects and frames have to go by before the children are visible. Like addChild() is being delayed somehow because of the multiple SWFs. Or addChild() is behaving asyncronously and my code is running syncronously.
    I think Nimisha from Adobe has worked on these multiple SWF issues before.

    Yes, duplicate symbol conflict looks like the cause of your issue.
    This is a known issue in AOT mode. For now, could you please try renaming mymain to something else when using it in the second swf?
    Or you may place mymain into separate swc, and link one of your swfs with "merged into code" option, while the other one "externally", so that only one of the swfs has mymain defined and there is no clash.
    Please do let us know if either of the solutions work for you.

  • 301 unable to load plugin"controls" url'flowplayer.controls-32.13.swf What is this and how to reapair this?

    301 unable to load plugin"controls" url'flowplayer.controls-32.13.swf What is this and how to reapair this?
    I have no idea what to do.

    Probably because "latin-9" doesn't exist?
    # nano /usr/share/X11/xkb/symbols/fr
    xkb_symbols "latin9" {
    include "latin"
    include "nbsp(level3)"
    name[Group1]="French (legacy, alternative)";
    key <TLDE> { [ oe, OE, leftdoublequotemark, rightdoublequotemark ] };
    key <AE01> { [ ampersand, 1, dead_acute, periodcentered ] };
    key <AE02> { [ eacute, 2, asciitilde, Eacute ] };
    Try it without the dash (without the "-").
    And don't forget to mark it as solved (by editing the first post).

  • How Air 3.7 load pure graphic swfs freely without using AOT mode

    Hi Nimisha1,
    I made an ios app which loaded pure graphics swfs from remote server. I cannot use AOT mode because the new pure graphics swfs increasing every day.   AIR 3.5 works very well, but I wonder how to make it work in the same way in AIR 3.7?
    thanks in advance,
    Jackie

    Loading a swf from remote server in Air 3.7 must be in AOT mode?
    I think i should first make some terms clear to you:
    AOT mode here applies to the target ipa-app-store which is supposed to published at Apple App Store.(And offcourse for testing purposes there are ipa-ad-hoc, ipa-test and ipa-debug and these all create IPA in AOT mode).
    Till AIR 3.5 on iOS - It was not possible to load child SWFs(containing ABC code) neither locally or remotely. But yes pure assets SWFs can be loaded remotely and locally as well.
    In AIR 3.6 on iOS- Loading of child SWFs(containing ABC code) locally was made possible. More info@  http://blogs.adobe.com/airodynamics/2012/11/09/packaging-and-loading-multiple-swfs-in-air- apps-on-ios/
    And behavior for loading pure asset SWFs remain unchanged.
    In AIR 3.7 on iOS-
    Loading of child SWFs(containing ABC code) remotely was made possible. More info @ http://blogs.adobe.com/airodynamics/2013/03/08/external-hosting-of-secondary-swfs-for-air- apps-on-ios/
    And behavior for loading pure asset SWFs remain unchanged.
    But in the following screenshot I can see that publishing in AIR 3.7 is getting failed and this must be happening because some of your child SWFs must be containing ABC code and that is not getting compiled properly.
    Can you please narrow down which SWF(s) is creating this problem?

  • App in Air unable to load to IOS certificate problems

    Hey Guys,
    We have built and App using Air (i am not the tech bod so excuse if i make mistakes).
    We are pretty sure the flash side is good, in fact 99% sure as we had it checked, but, everytime we try to upload we get this error
    The bundle 'com.zootcard.zootcard" at bundle path 'zoot.app' is not signed using and Apple submission certificate.
    The icon issues we had before are resolved, we have only this problem and it has been rolling on and killing us for over a week.
    Any help or advice would be super appreciated.
    It is converted using the P12 extension from Flash to Apple Connect
    Save us, you are our only hope!!!
    Many thanks!!!

    Hello there, scott_arrow.
    The following Knowledge Base article offers up some great information for your particular message:
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert
    http://support.apple.com/kb/TS2690
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Unable to load some swf's

    I am unable to load some swf's (find the link). Any Help!
    Loader Link
    http://www.mediafire.com/?fbfei0qulcisxqa
    Swf Link
    http://www.weebly.com/uploads/6/6/7/0/6670875/kingoftherocks.swf

    People generally will not download files so it is to your benefit to include all information in your posting.
    What code are you using to load the swf's?  Does it work for some and not others?  Are you getting any error messages?  What is the folder structure relative to the files that you are trying to load and the files that try to load them and any html page involved?

  • Loading external swf into Air App

    Hi All,
    I'm building an Adobe Air App for desktop and am having problems loading an external swf. Every time i try to load i get:
    SecurityError: Error #2070: Security sandbox violation........ cannot access Stage owned by app....blah blah
    The file that is being loaded is in a local directory, but as i understand its in a different 'sandbox' which is a security risk.
    Is there any way around this?!
    Any help would be much appreciated
    Many Thanks
    Matt

    that's why i added those comments about the swf's domain.  for locally loaded swfs, use:
    SFMltd wrote:
    Hi Kglad, Thanks for the Example.
    if i run my class with securityDomain = SecurityDomain.currentDomain; then it throws this error: SecurityError: Error #2142: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property.
    The swf file im trying to load is stored locally so i guess this error makes sense. However if i comment out that line i get the same "cannot access Stage owned by app" error?
    See below for class:
    package  {
      import flash.display.MovieClip;
      import flash.filesystem.File;
      import flash.events.Event;
      import flash.net.FileReference;
      import flash.events.MouseEvent;
      import flash.display.Loader;
      import flash.net.URLRequest;
      import flash.system.LoaderContext;
      import flash.system.ApplicationDomain;
      import flash.system.SecurityDomain;
      public class assetPreview extends MovieClip {
      private var loader:Loader;
      private var mainSWF:MovieClip = new MovieClip();
      public function assetPreview() {
      addEventListener(Event.ADDED_TO_STAGE, initialise);
      public function initialise(e:Event):void
      removeEventListener(Event.ADDED_TO_STAGE, initialise);
      var allowSWF:LoaderContext = new LoaderContext(false,ApplicationDomain.currentDomain);
    // allowSWF.securityDomain = SecurityDomain.currentDomain;
      loader = new Loader();
      loader.load( new URLRequest(settingsXML.pathToSWF),allowSWF);
      loader.contentLoaderInfo.addEventListener(Event.COMPLETE, viewPreview);
      public function viewPreview(e:Event):void
      addChild(mainSWF);
      mainSWF.addChild(loader);

  • Loading multiple swfs using air 3.6 for ios

    Adobe, can you please provide us with the code to load multiple swf files for ios. Please provide examples. The code below loads multiple swfs, but the swfs stall, so this does not seem to be a solution.
    Code description: A flash file made up of 4 frames with forward and back buttons that navigate from frame to frame. The code loads three different swf files in frames 2, 3 and 4.
    Frame 1:
    var myLoader:Loader;
    var loaderContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
    if(myLoader == null){myLoader = new Loader(); addChild(myLoader); }
    else {myLoader.unload();}
    Frame 2:
    myLoader.unload();
    myLoader.load(new URLRequest("file1.swf"),loaderContext);
    Frame 3:
    myLoader.unload();
    myLoader.load(new URLRequest("file2.swf"),loaderContext);
    Frame 4:
    myLoader.unload();
    myLoader.load(new URLRequest("file3.swf"),loaderContext);

    I've just tried loading, unloading and then loading again same SWF with 2 library objects linked for AS3 export. It worked both on simulator and on device in debug mode. When I look inside swf it does contain AS3 code.
    So is my swf a pure asset SWF? Or Intellij Idea 12 that I'm using does stripping automatically?
    And then I've read your comment at http://forums.adobe.com/message/5217325#5217325 and run 'swfdump' utility on my .swf file. Looks like there's no ABC2 code, that's why app was able to load, unload and load again the same swf.
    public dynamic class net.games.bg extends flash.display.MovieClip
      native public function bg():*;
      native public var one:flash.display.MovieClip;
      native public var three:flash.display.MovieClip;
      native public var two:flash.display.MovieClip;
    public dynamic class net.games.z1 extends flash.display.MovieClip
      native public function z1():*;
    I can access objects as instances through root  or as objects through getDefinition.
    private var aLoader : Loader;
    private function init():void
                load1();
            private function load1():void
                aLoader   = new Loader();
                var url:URLRequest = new URLRequest("levels/expirementlevel1.swf");
                var loaderContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
                aLoader.load(url, loaderContext); // load the SWF file
                aLoader.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, handleSWFLoadComplete1, false, 0, true);
            private function handleSWFLoadComplete1(e:flash.events.Event):void {
                var levelObjectsMC:flash.display.MovieClip = e.target.loader.content;
                for (var i:uint = 0; i < levelObjectsMC.numChildren; i++){
                    trace ('\t|\t ' +i+'.\t name:' + levelObjectsMC.getChildAt(i).name + '\t type:' + typeof (levelObjectsMC.getChildAt(i))+ '\t' + levelObjectsMC.getChildAt(i).x);
                var LibraryClass:Class = e.target.applicationDomain.getDefinition("net.games.z1") as Class;
                var myLibraryObject:flash.display.MovieClip = new LibraryClass as flash.display.MovieClip;
                trace(' load 1 ' + myLibraryObject);
                aLoader.unload();
                load2();
                //addChild(levelObjectsMC);
            private function load2():void
                aLoader   = new Loader();
                var url:URLRequest = new URLRequest("levels/expirementlevel1.swf");
                var loaderContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
                aLoader.load(url, loaderContext); // load the SWF file
                aLoader.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, handleSWFLoadComplete2, false, 0, true);
            private function handleSWFLoadComplete2(e:flash.events.Event):void {
                var levelObjectsMC:flash.display.MovieClip = e.target.loader.content;
                for (var i:uint = 0; i < levelObjectsMC.numChildren; i++){
                    trace ('\t|\t ' +i+'.\t name:' + levelObjectsMC.getChildAt(i).name + '\t type:' + typeof (levelObjectsMC.getChildAt(i))+ '\t' + levelObjectsMC.getChildAt(i).x);
                var LibraryClass:Class = e.target.applicationDomain.getDefinition("net.games.z1") as Class;
                var myLibraryObject:flash.display.MovieClip = new LibraryClass as flash.display.MovieClip;
                trace('load 2 x ' + myLibraryObject.x);
                aLoader.unload();

Maybe you are looking for