Import file to flash Pano2VR air 3.2 for iOS ?

Good evening.
Actionscript 3.0
import flash.display.*;
import flash.net.URLRequest;
import flash.events.Event;
var loader:Loader = new Loader();
var url:String = "panorama.swf";
var urlReq:URLRequest = new URLRequest(url);
var vr:MovieClip; // panorama movieclip
// This is done after the swf is loaded.
function finished_loading (e:Event) {
function initHandler(event:Event):void {
trace("initHandler: " + event);
vr = MovieClip(loader.content); // cast 'DisplayObject' to 'MovieClip'
//     vr.isFlash10=false; // Disable Flash 10 rendering if the container is Flash 9
function initPanorama(e:Event) {
// check if the panorama object is available and initialize it
if ((vr!=null) && (vr.pano!=null)) {
removeEventListener( Event.ENTER_FRAME , initPanorama);
vr.x=50;
vr.y=50;
vr.pano.setWindowSize(400,300);
// call initPanorama every frame
addEventListener( Event.ENTER_FRAME , initPanorama);
// Tell the loader to call 'finished_loading' after the swf is loaded.
loader.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, finished_loading);
// Tell the loader to call 'initHandler' after the swf is initialized.
loader.contentLoaderInfo.addEventListener(Event.INIT, initHandler);
loader.load(urlReq);
addChild(loader); // add your swf directly to the stage
Flash Player works perfectly, but unfortunately for air IOS version, generates this error:
Error #3226: Cannot import a SWF file when LoaderContext.allowCodeImport is false.
                   at flash.display::Loader/_loadBytes()
                   at flash.display::Loader/loadBytes()
                   at PanoPlayer/initPanoCube()
Which solution to power mport file Pano2VR?
I appreciate all the help possible.
Thankful.

Nevermind. Unchecked Omit Trace Comments.

Similar Messages

  • Flash Pro CS6にて「AIR 3.4 for iOS」で.ランタイム共有ライブラリの警告が出てしまう.

    「Flash CS6」を、Windows 7(32bit)で利用しています。
    現在、iOS用のAIRアプリを作成を試みておりますが、パブリッシュの際に下記の警告が出力ウィンドウに表示されます。
    警告 : ランタイム共有ライブラリ (RSL) としてリンクされているライブラリがありません。原因となるパブリッシュ設定 : AIR 3.4 for iOS
    設定は「AIR for iOS(3.4)」で、3.2としても同様の警告が現れます。
    ipaファイルは正常?に作成されますので、それを登録済みのiPhoneやiPadにインストールし、起動することができます。
    しかし、プログラムに記述したNativeExtension(NetworkInfoなど)の機能が動きません。。。
    CS6上の「制御」→「ムービープレビュー」→「AIR Debug Launcher(モバイル)を使用」で動かすと、上記のNativeExtensionの機能が動いています。
    上記のライブラリがリンクされていないことが原因かと思いますが、Flash CS6上でどのような設定を行えば、警告が出なくなるのでしょうか?
    一応、実機でのインストールや起動も出来ますので、プロビジョニングファイルやp12ファイルは正しく設定できていると思いますが。
    開発環境は以下の通りです。
    ・Flash Professional CS6
    ・Windows 7(32bit)
    ・AIR SDK:3.4 for iOS
    ネット上を探してみましたが、手がかりがなく、困っております。
    どなたかご存知の方がいらっしゃいましたら、よろしくお願いします。

    Native Extensionsに関して参考になりそうなページがあったのでお知らせします。
    こちらの説明をみて設定を確認してみてください。
    ネイティブ拡張(ANE)の使い方 for Flash Professional CS6
    http://www.adobe.com/jp/devnet/flash/articles/flashpro_ios_ane.html
    Using native extensions in Adobe Flash Professional CS6
    http://www.adobe.com/devnet/air/articles/using-ane-in-flash.html

  • SetTimout doesn't work properly in AIR 2.7 for IOS

    Hello,
    I notice the setTimout() method does not work properly in AIR 2.7 for IOS.
    Closure function isn't execute with the proper delay...
    See bellow (Timeout.execute is a workaround -> http://www.displayobject.fr/2011/06/16/a-timeout-class-to-replace-settimeout-in-air-2-7-fo r-ios/)
    Jonas

    Thanks for bringing this issue to light.
    We are looking into it.

  • StageScaleMode.EXACT_FIT not supported in air 2.7 for ios?

    stage.scaleMode = StageScaleMode.EXACT_FIT;
    Does not work correctly air 2.7 for ios. It is all messed up.
    This is what my program looks like in air 2.6 for ios:
    http://literacysoft.com/uploads/2.6.PNG
    This is what it looks like when compiled with air 2.7:
    http://literacysoft.com/uploads/2.7.PNG
    Is there anything I can do to fix this?
    -Scott

    I think you are hitting the GPU fullscreen bug in AIR 2.7(http://forums.adobe.com/message/3747867). It suspect it is not related to the scale mode that you are setting. To confirm, you could set the renderMode to cpu in your application xml. You should not be able to reproduce the bug.
    -Sanika

  • Importing Files just flashes grey screen

    I have Aperture 2.1.2, Mac OS X 10.5.5. Today I tried to import some new photos, and when I attempt to import files all I get is a grey screen that pops up over and over. I can't get this screen to stop unless I close Aperture. The program does not lock up, and I can continue to move around and do many other functions, but the grey window just pops up over and over, and I cannot import.
    Any ideas?
    Thanks.
    Danita

    UGH!!!! IM HAVING THE SAME ISSUE!!!!!!!!!!

  • How to get Flash to use AIR 2.7 for iOS?

    How do I force Flash Pro to use AIR 2.7 for an iOS-project?
    When choosing Publish settings you can only choose AIR for iOS without any version numbers. But when you choose only AIR there is a version number. According to an informative video http://tv.adobe.com/watch/flash-platform-in-action/adobe-air-27-faster-app-performance-on- ios/ it seems like 2.7 could be the solution to my problems. Obviously the 2.7 version is for iOS too and not for "AIR only".
    I have installed 2.7 but in the xml-file that follows with the ipa-file that has been created it says AIR 2.6. But when I try to download 2.7 (again) I get the information that I already have AIR installed... I guess "he/she" means 2.7 because I can see it in a dll-file (according to instructions on a web page on www.adobe.com (can't find it right now)).
    So why am I not getting the ipa-file created with AIR 2.7? What can I do to make it happen?
    Best regards,
    Åsa

    Thanks a lot, this is helpful.
    My interpretation of this document is that the version of AIR used comes from what version of Flash Pro you are using. Correct? And you are not supposed to upgrade AIR without upgrading Flash Pro according to Adobe?
    Best regards,
    Åsa

  • Java.lang.NullPointerException is thrown when packaging Adobe AIR 3 application for iOS

    I just update my AIR project for iOS from Adobe AIR 2.6 to Adobe AIR 3.1 (that comes with Flash Builder 4.6), than I always got an exception when packaging my application:
    Error occurred while packaging the application:
        Exception in thread "main" java.lang.NullPointerException
            at adobe.abc.Nsset.match(Nsset.java:263)
            at adobe.abc.Name.match(Name.java:555)
            at adobe.abc.Symtab.getEntry(Symtab.java:37)
            at adobe.abc.Symtab.get(Symtab.java:55)
            at adobe.abc.Type.setNeedsArgumentsUpInheritanceHierarchy(Type.java:343)
            at adobe.abc.Type.setNeedsArgumentsUptoRoot(Type.java:269)
            at adobe.abc.GlobalOptimizer$InputAbc.resolveType(GlobalOptimizer.java:558)
            at adobe.abc.GlobalOptimizer$InputAbc.resolveType(GlobalOptimizer.java:448)
            at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:327)
            at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler.java:472)
            at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:82)
        Compilation failed while executing : ADT
    What is the cause of this error, so I can avoid it in my project before AIR team fix this?
    Thank you.

    Hi Everyone,
    I'm getting basically the same error. Are there any rules or guidelines that we are suppose follow when writing an app for iOS? Is there a way to know exactly where it is crashing? My apps are not MXML, only actionscript. Also I made sure I have no errors not even warnings in my SWF file, but still no go! 
    Getting the same error.
    Exception in thread "main" java.lang.NullPointerException
            at adobe.abc.GlobalOptimizer.sccp_eval(GlobalOptimizer.java:6944)
            at adobe.abc.GlobalOptimizer.sccp_analyze(GlobalOptimizer.java:5909)
            at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4628)
            at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3514)
            at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:2215)
            at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:526)
            at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:336)
            at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler
    .java:472)
            at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:82)
    Compilation failed while executing : ADT
    regards,
    Keith

  • Adobe AIR 3.4 for iOS - Compiler stalls/hangs & never creates ipa

         So, I've run into a bit of a roadblock. I'm currently trying to package an iOS app that contains an ANE (iAd), SWC (tweener), and external AS file using Flash CS6. I've successfully packaged this app for Android as well as Blackberry, but iOS seems to be giving me a run for my money.
         I've linked to the necessary external files as I did with Android. Same exact process that I've done at least 20 times with existing apps (with the exception of the SWC and External AS file). When I preview the swf, the swf compiles and plays perfectly fine. As it should. When I go to publish any type of ipa file, it initializes, creates the temp files/folders and then hangs. It never completely compiles the ipa file. I let it attempt to compile through several attempts, the longest being 30mins, before cancelling. I was wondering if anybody else is coming across this issue. Google searches didnt help much.
    I've tried this with AIR 3.2, 3.3 and 3.4, none worked.
    The compiled file size on Android is 1.6mb, so the external files aren't ridiculously huge.
    I tried moving all external files into the root of the flash file, didnt help.
    I attempted a command line package - same thing. Started compiling and then seemed to freeze
         My last successful ipa compiled was 8/22. I'm not sure what the heck happened between now and then, or what the issue could be. No errors or warnings appear at any point throughout every test/attempt I've done. Running out of options. I appreciate any guidance/help that could be provided.

    Ok, after much testing... I've pinpointed a potential problem. My external AS file is a dictonary word list of about 172k words written into an array. I had no problem compiling for Android or Blackberry, but the iOS packager doesn't seem to like it.
    I originally had it loading from an external text file and creating the array at runtime, but I didn't like the way it functioned/processed. Much faster with a pre-made & sorted external AS file --
    Once I removed the as file and created a very small array in place of it, Flash compiled the ipa fine.
    With that said... is there any type of work around that doesnt involve loading and processing an external text file at runtime?
    Or any other ideas I can attempt to make this thing work?

  • Flash CS6 does not publish for iOS with ANE included

    Hi,
    I'm creating a game to run on iOS devices and one of the game requirement is for the device to vibrate on some action.
    I added the Vibration.ane file (http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/vibration.html) into the library path in Flash CS6 and also added the extension ID to the XML file. However when I publish the Flash file to check on device, I only keep seeing the "Publishing" loader bar. I've even waited for over 15 mins for it to complete. I get no error, nor does the PC hang, but I can't seem to publish my .app file for device testing.
    Also I assume we can't test Vibration functionality with the Simulator that opens during desktop testing. I get the error "The content cannot be loaded because there was a problem loading an extension: Error: Requested extension com.adobe.Vibration is not supported for Windows-x86."
    Would appreciate help.
    Thanks,
    Mariam

    IPA is ok at the CS6 flash' standard 3.2 export, just tried the new AIR 3.3 also - no problems. I just included the Gyro ANE file, not the SWC
    However, because the adl still does not want to preview this thing, development/testing the Gyro stuff is difficult...
    I discovered the accelerometer is something different however. Adobe's little remote control thingy on which you can simulate phone position and multitouch emulates the accelerometer, not the Gyro. The Gyro extension taps in to a piece of hardware which really displays the position of the device, not the movement it's been receiving.
    Maybe obvious but I thought I'd post this little find, after a day of testing and exporting, syncing, ... this was a tiresome experience...
    After all this I can advise to sync the .ipa's with xcode though, instead of iTunes. This works MUCH faster (if you're on mac). Just run xcode, pull up the 'organizer window', select your device and go to the subbranch ' applications'. There you can add the .ipa by clicking on the '+' button

  • 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();

  • AIR 3.0 for iOS. My app doesn't go to sleep/iddle mode. Please help

    Hello everyone
    I have created application in Flash Professional CS5.5 for iOS(iPad) and using AIR3.0, and currently I am at stage of finish and submit to Apple app store.
    I noticed that my application is not going to sleep/iddle mode when I run it, then I added:
    NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.NORMAL;
    but it doesn't work and  it is still not going to sleep mode even I set Settings > Auto-Lock > 2 Minutes from iPad.
    I have created another testing application with SystemIdleMode.NORMAL and it is working Ok and device is going to sleep/iddle mode.
    Please help me what to do or advice what prevents system to go iddle mode. Thanks

    No, I inluded
    import flash.desktop.NativeApplication;
    import flash.desktop.SystemIdleMode;
    and I added
    NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.NORMAL; 
    only after I've seen it is not going to iddle mode.

  • AIR 3 Extensions for iOS

    Well not so much to go on for iOS part...
    I got now a .ane file and everything should work well but Flash Builder notifies me that the .ane file is not signed....
    So i googled  how to sign the extension but there is absolutely nothing...
    Anyone have any kind of idea or know where to point me ?

    One more thing tho,
    i dont get any errors but it complains about something, im running following commands:
    /Applications/Adobe\ Flash\ Builder\ 4.5/sdks/4.5.2/bin/adt -sign -storetype pkcs12 -keystore /Users/danne/Dropbox/Mobiles/iOS/FlashCert.p12 -storepass #pass# -target ane PopoverExtension.ane PopoverExtension_s.ane
    And the result is:
    Unable to build a valid certificate chain for the signer.
    Any idea why adt gives me that ?

  • 64bit AIR Native Extension for iOS

    Hello,
    I created a native extension to support ARM64 for iOS. The problem is I get the following error when packaging an ad-hoc build:
    "Error: libgameCenter.a are required to have universal iOS libraries. Please contact the ANE developer(s) to get the same."
    As I understand I need both armv7 and arm64 libraries. So I build for both of them using "xcodebuild" and then merge with "lipo -create" command.
    However I think there is a step I'm missing. Please advice. Thank you.
    AIR SDK: 16.0 beta
    Xcode: 6.1.1

    Well the change you need to do is inside your Xcode project, under Build Settings -> Architectures , make sure that you have selected "Standard Architectures (armv7, arm64)". One last thing to ensure that Valid Architectures should also contain arm64 entry along with other armv7 entries.

  • Can't import files to Flash? (Mac)

    (This is my first forum article anywhere so keep that in mind)
    I'm trying to make a Flash animation in Flash CC 2014, but all my files that should be importable are unselectable and the ones that shouldn't are. And they probably don't even work! Plus there are no up-to-date articles on the internet so I can't figure this out that way. What should I do? I need to be able to do this soon. Please help!

    you can't edit the video in flash.  you should check adobe's premiere pro if you want to edit videos.
    one the other hand, to a limited extent  (eg, you want to add objects/text over or adjacent to your video), you can make it appear that videos are edited in flash by either
    a. import the flv/f4v to a flash pro timeline and add objects in layers above (or adjacent to) the video.  (upside: no actionscript needed.  downside: loss of video fidelity with importing)
    b. use cuepoints added to the video (can be done in ame and in flash pro) and use actionscript to trigger the additional of objects above or adjacent to your video.  (upside and downside the opposite of above)

  • Air 3.9 for iOS - Increased file size of the executable?

    Hi,
    I've just exported a new release of my app with the new Air 3.9 SDK.
    I've discovered that the file size of the .ipa is increased of 9MB (before it was 30, now it's 39...)
    Looking into the Payload, I've found that the exutable itself is increased from 7 MB to 30 MB...
    Is that possibile? Or am I doing something wrong?
    I'm on FLEX SDK,
    This is the adt command line (part of it):
    adt
        -package
        -target
        ipa-app-store
        -hideAneLibSymbols
        yes
        -storetype
        pkcs12
    This is the compiler arguments:
    -target-player=11.9
    +configname=airmobile
    -library-path+="{flexSDK}/frameworks/locale/en_US"
    -default-size=550,400
    -locale=en_US,fr_FR,it_IT -source-path=locale/{locale}
    -swf-version=22 -allow-source-path-overlap=true
    -optimize=true
    Thanks
    Andrea

    I would like to add that, packaging in -XVerbose mode, I found that some frameworks have been added to the package like MapKit. I'm using some ANEs, but none of them uses a MapKit framework.
    Anyone know which are the frameworks actually being embedded inside the iOS packaging?
    Thanks
    A.

Maybe you are looking for