SWFs not loading in Air 4.0... for iOS

Hi,
I've read some of the posts about the problem of SWFs not loading in iOS.  This seemed to have to do with the SWFs having code.  We removed code from the SWFs and In previous releases, using previous SDKs (I don't remember the last one that worked) we had everything working.  But in the latest version compiled with the latest SDK (4.0...) none of the SWFs load.
of course I'm learning about this late in the game.
One more piece of information.  I did a test with an application that just loads one codeless SWF and have exactly the same result. 
If anyone has any ideas, I would be very grateful.
Best regards,
Chris McLaughlin

Hi,
So code or no code external SWFs require a loader context.
I borrowed this directly from a kglad response:
     var lc:LoaderContext=new LoaderContext(false,ApplicationDomain.currentDomain,null);
When I add the LoaderContext to the loader (at least with my experimental app) the SWF loads.
Also from kglad's example: yourloader.load(yourexternalswf.swf,lc);
Thanks kglad.

Similar Messages

  • 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

  • Can I delete extensions that do not load or am I looking for trouble

    After running EtreCheck I noticed that many extensions do not load.  So my question is: Can I delete extensions that do not load or am I looking for trouble?
    Here is the EtreCheck report:
    Problem description:
    slow with Yosemite
    EtreCheck version: 2.1.8 (121)
    Report generated February 19, 2015 at 12:11:22 PM EST
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        Mac Pro (Late 2013) (Technical Specifications)
        Mac Pro - model: MacPro6,1
        1 3 GHz 8-Core Intel Xeon E5 CPU: 8-core
        32 GB RAM Upgradeable
            DIMM1
                8 GB DDR3 ECC 1866 MHz ok
            DIMM2
                8 GB DDR3 ECC 1866 MHz ok
            DIMM3
                8 GB DDR3 ECC 1866 MHz ok
            DIMM4
                8 GB DDR3 ECC 1866 MHz ok
        Bluetooth: Good - Handoff/Airdrop2 supported
        Wireless:  en2: 802.11 a/b/g/n/ac
    Video Information: ℹ️
        AMD FirePro D500 - VRAM: 3072 MB
        AMD FirePro D500 - VRAM: 3072 MB
            Thunderbolt Display 2048 x 1152
            Thunderbolt Display 2048 x 1152
    System Software: ℹ️
        OS X 10.10.2 (14C109) - Time since boot: 2:10:13
    Disk Information: ℹ️
        APPLE SSD SM1024F disk0 : (1 TB)
            EFI (disk0s1) <not mounted> : 210 MB
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
            Macintosh HD (disk1) / : 999.32 GB (760.04 GB free)
                Core Storage: disk0s2 999.70 GB Online
    USB Information: ℹ️
        Apple Inc. BRCM20702 Hub
            Apple Inc. Bluetooth USB Host Controller
        American Power Conversion Smart-UPS 3000 XL FW:691.18.D USB FW:7.3
        Prolific Technology Inc. USB-SATA Bridge
        Apple Inc. Display Audio
        Apple Inc. FaceTime HD Camera (Display)
        Apple Inc. Apple Thunderbolt Display
        Apple, Inc. Keyboard Hub
            Apple Inc. Apple Keyboard
        Apple Inc. FaceTime HD Camera (Display)
        Apple Inc. Apple Thunderbolt Display
        Apple Inc. Display Audio
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus_2
            Apple Inc. Thunderbolt Display
        Apple Inc. thunderbolt_bus_1
        Apple Inc. thunderbolt_bus_0
            Promise Technology, Inc. Pegasus2-R
                Drobo 5D
            Apple Inc. Thunderbolt Display
    Configuration files: ℹ️
        /etc/hosts - Count: 1
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Applications/MacX Video Converter Pro.app
        [not loaded]    com.macxdvd.driver.goodSysAudioCapture (1 - SDK 10.10) [Click for support]
            /Library/Extensions
        [loaded]    com.TrustedData.driver.VendorSpecificType00 (1.7.0 - SDK 10.7) [Click for support]
        [not loaded]    com.blackmagic-design.desktopvideo.iokit.driver (10.3.4 - SDK 10.9) [Click for support]
        [not loaded]    com.blackmagic-design.desktopvideo.iokit.framebufferdriver (10.3.4 - SDK 10.9) [Click for support]
        [not loaded]    com.blackmagic-design.desktopvideo.multibridge.iokit.driver (10.3.4 - SDK 10.9) [Click for support]
        [not loaded]    com.blackmagic-design.driver.BlackmagicIO (10.3.4 - SDK 10.9) [Click for support]
        [not loaded]    com.blackmagic-design.driver.BlackmagicUsbIO (10.3.4 - SDK 10.9) [Click for support]
        [loaded]    com.drobo.SCSI.ThunderBolt (1.1 [70504] - SDK 10.8) [Click for support]
        [loaded]    com.promise.driver.stex (5.2.10 - SDK 10.9) [Click for support]
            /Library/Extensions/DeckLink_Driver.kext/Contents/PlugIns
        [not loaded]    com.blackmagic-design.desktopvideo.firmware (10.3.4 - SDK 10.9) [Click for support]
            /System/Library/Extensions
        [loaded]    com.Cycling74.driver.Soundflower (1.5.3 - SDK 10.6) [Click for support]
        [not loaded]    com.FTDI.driver.FTDIUSBSerialDriver (2.2.14) [Click for support]
        [not loaded]    com.Maxtor.driver.PowSecDriver (4.2.7) [Click for support]
        [not loaded]    com.SiliconImage.driver.Si3124u (2.0.3) [Click for support]
        [not loaded]    com.Susteen.driver.PL2303 (1.2.0) [Click for support]
        [loaded]    com.airgrab.driver.AirGrabFirewallModule (3.0) [Click for support]
        [not loaded]    com.aliph.driver.jstub (1.1.2 - SDK 10.7) [Click for support]
        [not loaded]    com.alwaysthinking.thinkinghomeUSB (1.1.7) [Click for support]
        [loaded]    com.attotech.driver.ATTOiSCSI (3.4.1b1 - SDK 10.6) [Click for support]
        [not loaded]    com.cy.iokit.Morpheus (1.4) [Click for support]
        [not loaded]    com.detto.iokit.M2MantiClassic (2.1) [Click for support]
        [not loaded]    com.devguru.driver.SamsungComposite (1.4.26 - SDK 10.6) [Click for support]
        [loaded]    com.globaldelight.driver.BoomDevice (1.1 - SDK 10.1) [Click for support]
        [not loaded]    com.hzsystems.driver.CDSDAudioCaptureSupport (1.5) [Click for support]
        [loaded]    com.hzsystems.terminus.driver (4) [Click for support]
        [not loaded]    com.perceptiveautomation.indigo_overrides.kext (1.0.0d1) [Click for support]
        [not loaded]    com.prolific.driver.PL2303 (1.2.1) [Click for support]
        [not loaded]    com.rim.driver.BlackBerryUSBDriverInt (0.0.33) [Click for support]
        [not loaded]    com.rim.driver.BlackBerryUSBDriverVSP (0.0.33) [Click for support]
        [not loaded]    com.roxio.BluRaySupport (1.1.6) [Click for support]
        [not loaded]    com.shed.PowerLinc.kext (1.0.0) [Click for support]
        [not loaded]    com.shed.PowerLincCU.kext (1.0.0) [Click for support]
        [not loaded]    com.shed.cm15.kext (1.0.0) [Click for support]
        [not loaded]    com.smithmicro.nke.NetBlockade (4.0) [Click for support]
        [not loaded]    com.wdc.driver.IOFireWireWDHID (1.1.2) [Click for support]
            /System/Library/Extensions/IOFireWireMxBt.kext
        [not loaded]    com.maxtor.iokit.IOFireWireMxBt (3.0.0) [Click for support]
            /System/Library/Extensions/ssuddrv.kext/Contents/PlugIns
        [not loaded]    com.devguru.driver.SamsungACMControl (1.4.26 - SDK 10.6) [Click for support]
        [not loaded]    com.devguru.driver.SamsungACMData (1.4.26 - SDK 10.6) [Click for support]
        [not loaded]    com.devguru.driver.SamsungMTP (1.4.26 - SDK 10.5) [Click for support]
        [not loaded]    com.devguru.driver.SamsungSerial (1.4.26 - SDK 10.6) [Click for support]
            /Users/[redacted]/Library/PreferencePanes/Contents/PlugIns/TechTool Pro 7.app
        [not loaded]    com.micromat.driver.spdKernel (1 - SDK 10.8) [Click for support]
        [not loaded]    com.micromat.driver.spdKernel-10-8 (1 - SDK 10.8) [Click for support]
            /Users/[redacted]/Library/Services/ToastIt.service/Contents/MacOS
        [not loaded]    com.roxio.TDIXController (2.0) [Click for support]
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.CS5ServiceManager.plist [Click for support]
        [running]    com.blackmagic-design.DesktopVideoFirmwareUpdater.plist [Click for support]
        [running]    com.micromat.TechToolProAgent.plist [Click for support]
        [loaded]    com.oracle.java.Java-Updater.plist [Click for support]
        [not loaded]    com.teamviewer.teamviewer.plist [Click for support]
        [not loaded]    com.teamviewer.teamviewer_desktop.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.adobe.SwitchBoard.plist [Click for support]
        [running]    com.attotech.iscsid.plist [Click for support]
        [running]    com.backblaze.bzserv.plist [Click for support]
        [loaded]    com.blackmagic-design.desktopvideo.XPCService.plist [Click for support]
        [running]    com.blackmagic-design.DesktopVideoHelper.plist [Click for support]
        [running]    com.blackmagic-design.streaming.BMDStreamingServer.plist [Click for support]
        [running]    com.datarobotics.ddservice64d.plist [Click for support]
        [running]    com.datarobotics.ddserviced.plist [Click for support]
        [running]    com.micromat.TechToolProDaemon.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [loaded]    com.oracle.java.Helper-Tool.plist [Click for support]
        [loaded]    com.oracle.java.JavaUpdateHelper.plist [Click for support]
        [running]    com.starfield.backupservice.plist [Click for support]
        [loaded]    com.teamviewer.Helper.plist [Click for support]
        [not loaded]    com.teamviewer.teamviewer_service.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [running]    com.backblaze.bzbmenu.plist [Click for support]
        [loaded]    com.bittorrent.uTorrent.plist [Click for support]
    User Login Items: ℹ️
        Cookie    Application  (/Applications/Cookie.app)
        Network Speed Monitor    Application  (/Applications/Network Speed Monitor.app)
        CleanAgent    Application  (/Applications/Clean.app/Contents/Resources/CleanAgent.app)
        SpeechSynthesisServer    Application  (/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks /SpeechSynthesis.framework/Versions/A/SpeechSynthesisServer.app)
        ClamXav Sentry    Application  (/Applications/ClamXav.app/Contents/Resources/ClamXav Sentry.app)
    Internet Plug-ins: ℹ️
        AdobePDFViewerNPAPI: Version: 11.0.10 - SDK 10.6 [Click for support]
        Flash Player: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        AdobePDFViewer: Version: 11.0.10 - SDK 10.6 [Click for support]
        LogMeInSafari32: Version: 1.0.1001 - SDK 10.7 [Click for support]
        Scorch: Version: Unknown - SDK 10.2 [Click for support]
        AdobeExManDetect: Version: AdobeExManDetect 1.1.0.0 - SDK 10.7 [Click for support]
        iPhotoPhotocast: Version: 7.0 - SDK 10.8
        DirectorShockwave: Version: 11.0.3r472 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        GarminGpsControl: Version: 4.2.0.0 - SDK 10.8 [Click for support]
        AmazonMP3DownloaderPlugin: Version: AmazonMP3DownloaderPlugin 1.0.17 - SDK 10.4 [Click for support]
        CANONiMAGEGATEWAYDL: Version: 3.1.0.2 [Click for support]
        DivXBrowserPlugin: Version: 2.2 [Click for support]
        Musicnotes: Version: 1.19.0 [Click for support]
        LogMeIn: Version: 1.0.1001 - SDK 10.7 [Click for support]
        OVSHelper: Version: 1.1 [Click for support]
        Google Earth Web Plug-in: Version: 6.1 [Click for support]
        AmazonMP3DownloaderPlugin101750: Version: AmazonMP3DownloaderPlugin 1.0.17 - SDK 10.4 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        Flip4Mac WMV Plugin: Version: 2.3.4.1 [Click for support]
        SharePointBrowserPlugin: Version: 14.4.7 - SDK 10.6 [Click for support]
        Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Click for support]
        JavaAppletPlugin: Version: Java 8 Update 31 Check version
        OfficeLiveBrowserPlugin: Version: 12.2.8 [Click for support]
    User internet Plug-ins: ℹ️
        WbeTools64_14: Version: 1.0.23.53 © 2013 - SDK 10.6 [Click for support]
        WebEx: Version: 1.0 [Click for support]
        WebEx64: Version: 1.0 - SDK 10.5 [Click for support]
        Folx3Plugin: Version: 4.0 - SDK 10.6 [Click for support]
        fileEditTool64_15: Version: 1.0.35.65 © 2013 - SDK 10.6 [Click for support]
    Safari Extensions: ℹ️
        Open in Internet Explorer
        SaveFrom.net helper
    3rd Party Preference Panes: ℹ️
        Akamai NetSession Preferences  [Click for support]
        APC PowerChute Personal Edition  [Click for support]
        Backblaze Backup  [Click for support]
        Blackmagic Desktop Video  [Click for support]
        Flash Player  [Click for support]
        Java  [Click for support]
        TechTool Protection  [Click for support]
    Time Machine: ℹ️
        Skip System Files: NO
        Mobile backups: OFF
        Auto backup: YES
        Volumes being backed up:
            Macintosh HD: Disk size: 999.32 GB Disk used: 239.28 GB
        Destinations:
            Time Machine-Drobo [Local]
            Total size: 17.59 TB
            Total number of backups: 77
            Oldest backup: 2014-07-18 01:39:12 +0000
            Last backup: 2015-02-19 16:04:28 +0000
            Size of backup disk: Excellent
                Backup size 17.59 TB > (Disk size 999.32 GB X 3)
    Top Processes by CPU: ℹ️
            11%    WindowServer
             6%    Safari
             5%    Mail
             2%    firefox
             1%    bzfilelist
    Top Processes by Memory: ℹ️
        790 MB    firefox
        378 MB    mds_stores
        344 MB    clamd
        309 MB    Safari
        241 MB    Mail
    Virtual Memory Information: ℹ️
        21.17 GB    Free RAM
        6.67 GB    Active RAM
        4.12 GB    Inactive RAM
        2.38 GB    Wired RAM
        6.47 GB    Page-ins
        0 B    Page-outs
    Diagnostics Information: ℹ️
        Feb 19, 2015, 10:00:50 AM    Self test - passed
        Feb 18, 2015, 03:49:35 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/AgileTransCmd_2015-02-18-15493 5_[redacted].crash
        Feb 18, 2015, 03:44:30 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/AgileTransCmd_2015-02-18-15443 0_[redacted].crash
        Feb 16, 2015, 12:12:51 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/mdworker_2015-02-16-121251_[re dacted].crash

    Starting your Mac in "Safe Mode" (see below) will load only Apple-provided kernel extensions. Observing its perfomance in that mode will be instructive.
    The problems you describe are likely to have been caused by garbage software of which "TechTool Pro" is only one example. That system has been altered from its factory configuration through the installation of several third party system modifications, any one of which can cause poor performance. Interaction between two or more is another possibility. Running a torrent client is another way of inviting malware intrusion.
    Safe Mode or "Safe Boot" is a troubleshooting mode that bypasses all third party system extensions and loads only required system components. Read about it: Starting up in Safe Mode
    You must disable FileVault before you can start your Mac in Safe Mode.
    Starting your Mac in Safe Mode will take longer than usual, graphics will not render smoothly, audio is disabled on some Macs, and some programs (iTunes for example) may not work at all.
    Merely starting your Mac in Safe Mode is not intended to resolve the problem, it's to observe its performance without certain additional components.
    To end Safe Mode restart your Mac normally. Shutdown will take longer as well.

  • HT5567 Appstore not loading on my new ipad for last 2 days. Any hep out there?

    Appstore not loading on my new ipad for last 2 days. Any hep out there?

    http://www.apple.com/support/itunes/contact/

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

  • 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

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

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

  • Gallery tree swf not loading

    I am using the gallery_tree.fla provided in the Samples for
    Flash 8 Pro to build a small photo gallery, substituting the name
    of my xml file in this line of code in the action script:
    treeDP_xml.load("bbq_gallery_07.xml"); .
    I used the gallery_tree.xml, substituting my image filenames
    in the nodes. I placed the images, the .xml and the .swf in the
    same folder. The .swf will play if I open it on my local machine in
    a browser, but on the web server, it just continues to show the
    loader but no images or tree.
    My .xml and Actionscript is attached. Suggestions as to my
    problem?

    Seems odd it will only run once. Usually if a cache problem
    you get the same
    results even when you update the movie or server scripts.
    If it is
    http:// it is not local even if from the browser
    cache.
    Verify the html is validated.
    Check to see if this applies to all swfs. Create a simple
    hello world swf
    that connects to a JSP script that returns a simple value to
    Flash. If that
    seems to work, then the problem is in the JSP or
    Actionscripting coding.
    Check you can load the JSP script repeatedly using a direct
    call to it on
    the browser line using
    http://.
    Lon Hosford
    www.lonhosford.com
    Flash, Actionscript and Flash Media Server examples:
    http://flashexamples.hosfordusa.com
    May many happy bits flow your way!
    "srikanth_s_india" <[email protected]> wrote
    in message
    news:e6obld$lfb$[email protected]..
    > Thanks for the article link.
    >
    > I can't provide the URL as it is within our application
    which requires
    > logging
    > in. However, one more interesting thing about it is that
    it always works
    > for
    > the first time (in the browser/machine) but not from the
    next time.
    >
    > My doubt is whether it is because of the caching? When
    it loads for the
    > first
    > time, the HTML and SWF files load from our server and
    hence are allowed to
    > communicate with our JSP. However, when it loads the
    subsequent times, it
    > probably loads from the cache and hence considered as a
    local file and not
    > allowed to communicate with our JSP file which is on the
    Internet.
    >
    > Can anybody tell me how to enable a local SWF file to
    load SWF files from
    > the
    > Internet & access URLs from the Internet in Flash 8
    pluggin?
    >

  • Adobe AIR dist. Runtime not loading MyApp.air

    Hi
    I've got the License Agreement & have been sent the link to download the Air distribution files.
    My project is a CD ...
    OSX portion works ok ... Run Air dist app, installs Air if ness... then installs MyApp.air .
    WIN side of things, no luck .
    I've got .airinstall.cfg pointing to MyApp.air in a test folder with the Air Runtime distribution file .  Double click runtime & it says either "Adobe Air already installed" & then quits, MyApp.air not loaded ... or ... Installs Air runtime & then quits, MyApp.air not loaded (depending on if Air installed/not) .
    Theoretically all you need is 3 files in a directory : AdobeAIRInstaller.exe, .airinstall.cfg, MyApp.air & it should work, is this correct?
    Tried the side-car method (not sure what end difference is) & get message :
    "This application cannot be installed because this installer has been mis-configured. Please contact the application author for assistance."
    When double-click MyApp.air it works/installs fine .
    Am I missing something ?

    Turns out I hadn't been using an up-to-date installer ... dur

  • SWF not loading on website---Help please...

    Hi everyone,
    I'm not really new to Flash; I know how to get around persay. Though this task has me almost in tears. I'm trying to put a video playlist on my website. It has 3 videos. The playlist requires a few files in which I put in a folder named "video testing". Heres what I did:
    I created a video playlist in Adobe Flash CS4 with some Actionscript.  I published it in html and flash(swf). Afterwards, I saved the playlist as “MyVideoPlaylist”.  I put all of these files in a folder named “video testing”. This folder contains:   “MyVideoPlaylist.swf”   “MyVideoPlaylist.fla”   “playlist.xml”   “video”  “thumbs”. The video folder contains all the videos for the playlist and the thumbs folder contains the thumbnail images for the playlist. I opened up Filezilla and uploaded all files in that folder to the “flash” folder within the root directory. Since I’m using wordpress I browsed to the page that I wanted to put the flash in and placed the following code in the html section:
    <object width="425" height="344"><param name="movie" value="http://www.burnnoticefanatic.com/flash/MyVideoPlayer.swf"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.burnnoticefanatic.com/flash/MyVideoPlayer.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
    After pasting the code, I viewed the page and saw that the video was not loaded, just a blank white background. Though, when right-clicked, you see the flash options. When I type in the full URL to the swf, the playlist loads correctly. You can see it here: http://www.burnnoticefanatic.com/flash/MyVideoPlaylist.swf
    When its embedded with the code above, it doesn’t work.  
    To see what I mean can be found on the page:  http://www.burnnoticefanatic.com/video-gallery

    What does "http://www.burnnoticefanatic.com/promo.swf" have to do with the file you have been talking about? 
    As far as you saying "it could be that the swf file needs the videos and thumbs to play it correctly"... I assumed you were attempting to use them.
    It's hard to solve this if the right players aren't in the game.  The code you are using in the web page is old-style code.  I would expect that if you publish an html file using Flash and use that code for embedding your file it will solve some potential problems, though those may not have been encountered yet.

  • Very Slow running dashboards/swf not loading

    I have built a number of dashboards and sent them round to colleagues in my company (either embedded in powerpoint or as swf to open in IE). We have no probelms viewing these dashboards internally but when we send them out to clients they cannot view them.
    It seems like the swf files are just not loading, or are incredibley slow (so slow that the client has given up on them) has anyone else encountered problems like this? Could there be some security issues; when the files pass onto another network the swf is halted?
    Hope someone can help!

    There is known issue with  xcelsius 2008 when exported to PPT..
    Check this and do the work around mentioned.. it will work,but very slow.
    I don't know its a problem with xcelsius  or with my laptop?
    http://diamond.businessobjects.com/node/19008

  • Urgent! external swf not loading with swfobject!

    hello there,
    I have a swf that loads another one into it through an empty
    movieclip - When i embed it with swfobject it doesnt appear.
    My guess is that i would have to mention the external swf in
    the flashvars ... Done that with no success.
    Does anyone have an idea of what could be causing me this
    trouble?
    thanks

    Generally the problem will be that the path of all externally
    loaded content is relative to the html page, NOT the swf location.
    If everything is in the same folder then that isn't it.
    Otherwise nice dice is correct, we will need to see your code
    to go further.

  • SWF not loading

    Hello there. I was trying to mess around with flash and I was hoping I would use TweenMax to scale up a rectangle (instantiated as rect) on mouse over, and then once it is scaled up I wanted to load an swf file to its center (the swf is called CircularPreloader.swf which is a fake preloader, just for messing around porpuse). Well, I tried but it didn't work cuz I kept getting this error: TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at scaleUp_fla::MainTimeline/frame1()
    Here's the code:
    import gs.*;
    import gs.easing.*;
    rect.addEventListener(MouseEvent.MOUSE_OVER, scaleUp);
    rect.addEventListener(MouseEvent.MOUSE_OUT, scaleDown);
    var myTween:TweenMax
    function scaleUp(e:MouseEvent):void
         myTween = new TweenMax(rect, 0.4, {scaleX:4, scaleY:4});
    function scaleDown(e:MouseEvent):void
         TweenMax.to(rect, 0.2, {width: 240.9, height: 94});
    myTween.addEventListener(Event.COMPLETE, addPreloader);
    function addPreloader(e:Event):void
         var mc:MovieClip = new MovieClip();
         mc.x = rect.width / 2;
         mc.y = rect.height / 2;
         addChild(mc);
         var loader:Loader = new Loader();
         var req:URLRequest = new URLRequest("Circular Preloader.swf");
         loader.load(req);
         loader.contentLoaderInfo.addEventListener(Event.COMPLETE, addF);
         function addF(e:Event):void
              mc.addChild(loader);
    Any help would be appreciated.

    Tried it again and this is the error I got:
    ArgumentError: Error #1063: Argument count mismatch on scaleUp_fla::MainTimeline/addPreloader(). Expected 1, got 0.
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at gs::TweenLite/complete()
    at gs::TweenMax/complete()
    at gs::TweenMax/render()
    at gs::TweenLite$/updateAll()
    and here's the code I used:
    import gs.*;
    import gs.easing.*;
    rect.addEventListener(MouseEvent.MOUSE_OVER, scaleUp);
    rect.addEventListener(MouseEvent.MOUSE_OUT, scaleDown);
    function scaleUp(e:MouseEvent):void
         TweenMax.to(rect, 0.4, {scaleX:4, scaleY:4, onComplete:addPreloader});
    function scaleDown(e:MouseEvent):void
         TweenMax.to(rect, 0.2, {width: 240.9, height: 94});
    function addPreloader(e:Event):void
         var mc:MovieClip = new MovieClip();
         mc.x = rect.width / 2;
         mc.y = rect.height / 2;
         addChild(mc);
         var loader:Loader = new Loader();
         var req:URLRequest = new URLRequest("Circular Preloader.swf");
         loader.load(req);
         loader.contentLoaderInfo.addEventListener(Event.COMPLETE, addF);
         function addF(e:Event):void
              mc.addChild(loader);
    What do you think is missing?

  • SWF not Loaded 100% using SWFLoader !!!!!!!

    HI all,
    Iam working in Flex Project, i got hung up with a issue with SWFLoader, I have main application and a sub application developed in FLEX 3, the sub application contains the flex pages of DashBoard screen, the SWF of sub application is loaded in main application using SWFLoader. if the browser is opened full , the SWF is loaded 100% , if the browser is opened 75% the swf is not loaded fully. when the browser is maximized the SWF is not displayed full screen. the issue is THE SWF IS GETTING LOADED ACCORDING TO THE BROWSER SIZE, WHEN BROWSER IS MAXIMIZED THE SWF IS DISPLAYED SAME WHEN BROWSER WAS 75% AND NOT EXPANDED .if anybody come across this issue, pls post reply , thanks.
    The swf of subApplication is loaded in the main with the code:
    <mx:Canvas id="dashCanvas" creationPolicy="all" cachePolicy="on"width="100%" backgroundColor="#FFFFFF" horizontalScrollPolicy="off" verticalScrollPolicy="off" >
    <mx:SWFLoader id="dashBoard" trustContent="true" width="100%" height="100%" scaleContent="true" autoLoad="true" source="@Embed(source='../../../../assets/appl/dashboard/dashboard.swf')" />
    </mx:Canvas>
    The width and height of thr subApplication and the Main Application are set as 100%.
    when the width and height of the subApplication is set as :
    width=Capabilities.screenResolutionX;
    height = Capabilities.screenResolutionY;
    the SWF loads fully and correctly when the browser is opened 100% but when the browser is 75% open, the SWF gets loaded according to the browser.
    Thanks & Regards
    Gowrishankar R

    Setting width/height will turn off % sizing and might affect resizing as you have now fixed its width/height.
    See if the resizeHandler gets called on the Application.  You may also need height=100% on the Canvas
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

Maybe you are looking for