AIR flash application can not load child SWF on publishes on device

I have been struggling with this problem for WEEKS now and can not solve. I have a soft flash AIR (creative cloud, AIR 3.8) that is very simple: there is no that load external SWF movies on the click of a start button. It works FINE in test/PC but when I publish to the device, the external swf will not load.

Here is the code on the main timeline that calls the external swf:

Start button

start_button_TRI_desmatosuchus.addEventListener (MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_02_3, false, 0, true);

Import fl.display.ProLoader;

import flash.events.Event;

var fl_ProLoader_02: ProLoader;

var fl_ToLoad_02:Boolean = true;

function fl_ClickToLoadUnloadSWF_02_3(event:MouseEvent):void

{

If (fl_ToLoad_02)

{

fl_ProLoader_02 = new ProLoader();

fl_ProLoader_02.load (new URLRequest("dinofilms/triassic_desmatosuchus.swf"));

fl_ProLoader_02.contentLoaderInfo.addEventListener (Event.COMPLETE, onComplete_02)

addChild (fl_ProLoader_02);

fl_ProLoader_02.x = 0;

fl_ProLoader_02.y = 144;

}

on the other

{

If (fl_ProLoader_02! = null) {}

removeChild (fl_ProLoader_02);

fl_ProLoader_02.unloadAndStop ();

fl_ProLoader_02 = null;

}

}

fl_ToLoad_02 =! fl_ToLoad_02;

}

function onComplete_02(e:Event):void {}

e.currentTarget.content.addEventListener (Event.ENTER_FRAME, OEF_02);

}

function OEF_02(e:Event):void {}

If {(e.currentTarget.currentFrame is e.currentTarget.totalFrames)

e.currentTarget.stop ();

e.currentTarget.removeEventListener (Event.ENTER_FRAME, OEF_02);

removeChild (fl_ProLoader_02);

fl_ProLoader_02.unloadAndStop ();

fl_ProLoader_02 = null;

}

}

I called about 30 different movies to 30 different images, that's why I use words such as "proLoader_01" so I don't duplicate them. All external SWFs are of course in the files included too.

I would really appreciate the help, I am a reluctant coder!

Post edited by: Fiona Passantino

Yes, this is important when you load SWF actionscript files to contain and you need only actionscript work and are something I alluded to message 9.

It is not relevant to your problem, unless you have poorly explained the problem.  from your description, you do not see the loaded SWF files to load.  If the SWF load really smoothly, but they contain actionscript code that does not work, you must fix your problem description.

****************************************************************************************** *********

Edit: the above is not correct.  you do need to declare a loadercontext when loading an external swf with the latest (3.6 +) SDK of air even if the external swf contain no actionscript.  Otherwise, the load() method (and any code appearing later) fails to run

then, use something like:

loader = new Loader();

var lc:LoaderContext = new LoaderContext (false null, ApplicationDomain.currentDomain),

Loader.Load (new URLRequest("dinofilms/cretaceous_ankylosaurus.swf"), lc);

Tags: Adobe Animate

Similar Questions

  • Flash cs6 3.8 AIR app questions: can not load child SWF files

    Hello - I have a flash for ios application that loads external swf child on a button click; When I use AIR 3.8 I can't load. Everything works fine on the generator to preview, but when I publish the device, none of the child SWFS play; It's very strange! Help, please... I don't really know why it doesn't work.

    Here is the code on the main timeline to load the child swf file:

    Start button

    start_button_TRI_herrerasaurus.addEventListener (MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_04_3, false, 0, true);

    Import fl.display.ProLoader;

    import flash.events.Event;

    var fl_ProLoader_04: ProLoader;

    This variable keeps track of if you want to load or unload the SWF file

    var fl_ToLoad_04:Boolean = true;

    function fl_ClickToLoadUnloadSWF_04_3(event:MouseEvent):void

    {

    If (fl_ToLoad_04)

    {

    fl_ProLoader_04 = new ProLoader();

    fl_ProLoader_04.load (new URLRequest("dinofilms/triassic_herrerasaurus.swf"));

    fl_ProLoader_04.contentLoaderInfo.addEventListener (Event.COMPLETE, onComplete_04)

    addChild (fl_ProLoader_04);

    fl_ProLoader_04.x = 0;

    fl_ProLoader_04.y = 144;

    }

    on the other

    {

    If (fl_ProLoader_04! = null) {}

    removeChild (fl_ProLoader_04);

    fl_ProLoader_04.unloadAndStop ();

    fl_ProLoader_04 = null;

    }

    }

    fl_ToLoad_04 =! fl_ToLoad_04;

    }

    function onComplete_04(e:Event):void {}

    e.currentTarget.content.addEventListener (Event.ENTER_FRAME, OEF_04);

    }

    function OEF_04(e:Event):void {}

    If {(e.currentTarget.currentFrame is e.currentTarget.totalFrames)

    e.currentTarget.stop ();

    e.currentTarget.removeEventListener (Event.ENTER_FRAME, OEF_04);

    removeChild (fl_ProLoader_04);

    fl_ProLoader_04.unloadAndStop ();

    fl_ProLoader_04 = null;

    }

    }

    for air for ios 3.6 +, you need TO report a loadercontext even if there is no actionscript in the loaded swf file:

    var loader: Loader = new Loader();

    var lc:LoaderContext = new LoaderContext (false null, ApplicationDomain.currentDomain),

    Loader.Load (new URLRequest("dinofilms/cretaceous_ankylosaurus.swf"), _lc);

  • Adobe Flash Player does not load

    I changed to internet explore 9 and adobe flash player does not load

    I'm unable to download the latest version of Flash Player, I got the previos and he asked to be updated, then there was a problem, what has happened since Internet Explorer 9 Bing etc., took over.

    Can someone advise please

    Hello

    Flash can get corrupted

    Download and save the uninstaller flash on your desktop or wherever you like from the link below

    then right click on the uninstall program saved flash and run as administrator and uninstall flash player

    http://kb2.Adobe.com/CPS/141/tn_14157.html

    then download the latest version of the reader direct flash from adobe on the link below

    Uncheck the 1 google toolbar before downloading

    http://get.Adobe.com/flashplayer/

    and for more information on this problem if needed:

    below link is Adobe flashplayer support forums:

    http://forums.Adobe.com/community/webplayers/flash_player

    help troubleshooting Adobe flash player

    http://www.Adobe.com/support/flashplayer/

    and here is the link to forum 9 internet explore

    http://answers.Microsoft.com/en-us/IE/Forum/IE9

  • BlackBerry BB Z10 Z10 can not load after the 10.3.1 update

    Hello

    I'm having problem with my phone that can not load after that (updated with 10.3.1). battery When I charge the phone, the LED turns red, and then appears the Blackberry logo and finally the Red battery logo appears telling me that the phone has no power. He keeps repeated several times.

    How to start up the phone?

    Please help me. Thank you.

    I suggest you try the method of automatic loader, very clean and very energetic:

    Beware that it is completely destructive... the device will be 'as new'... None given, no apps, no accounts, etc. Remember you first take a full backup, as well as make full manual documentation of applications, accounts, configurations, etc. Sometimes a restore reintroduced corruption even sought to eliminate, and manual reconfiguration is required.

    You can also use it to return to a BONE earlier if you want... you can install any level of the operating system for which you can find an auto-loader. (Hint... search the site of CB!)

    Good luck and let us know!

  • Receive the error message cannot start the base engine, the application can not continue trying to work with Skype and Intervoip

    Original title: Intervoip and skpye does not work on my computer. When I open the PC screen, cannot start the base engine, the application can not continue. How I have this problem?

    My Intervoip and skpye does not work on my computer. When I opened the PC screens, failed to start the base engine, the application can not continue. How I have this problem?

    Base engine
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-hardware/core-engine/a18d491c-25e2-4473-A03B-1f3161c5131b

    Have you tried right clicking on the shortcut to the program or the .exe and select "Run As Administrator"?  Perform, even if your user name is an administrator.

    Try right click on the actual Setup.exe and choosing the option "Run As Administrator"?  Perform, even if your user name is an administrator.

    Two applications load mode safe mode with setting in network or a clean boot?

    Startup options (including safe mode)
    http://Windows.Microsoft.com/en-us/Windows7/advanced-startup-options-including-safe-mode

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/default.aspx/KB/929135

    If you test with another Windows user, have the same problem?

    Try running ChkDsk to check your drive for errors. Right click on your drive icon / properties / tools / error checking.  First try checking not be (read-only) to see if it reports any problems file or hard drive.  If this is the case, start by checking the two boxes, in no other rerun.

  • I can not load creative cloud on my mac - he gets to a point, then said that there is an error. I have lightroom on my pc. Help!

    I can not load creative cloud on my mac - he gets to a point, then said that there is an error. I have lightroom on my pc. Help!

    Error "Unable to install" received when installing Adobe Creative Cloud desktop application

  • application could not load the database

    I have a RoboHelp 9 project that I left open on my computer at night and microsoft updates ran causing my computer to restart.  When I try to open my project in RoboHelp 9, I get the following error:

    Open a project has been cancelled or the application could not load the database for 'C:\CODE\HELP\HELP. CPD»

    How can I fix the CPD file without restarting?

    Hello

    Just delete the CPD and re - open the project. When RoboHelp sees is missing, it will cook in the oven until a new use and then all should be well.

    See you soon... Rick

  • mail application does not load

    The e-mail application does not load!

    I have iOS 9.2.1 iPad 2

    I deleted and reinstall my mailaccount but still no e-mail program loading

    I've done a re-boot and no luck

    Any suggestions?

    Thank you

    Hi AnitaCas

    It opens then close immediately?
    Try to leave all the apps: Double click on the Home button and the sliding of the application for each open application preview page

    then

    Force reboot: press and hold the sleep/wake and Home buttons and do not let go until the screen darkens and the Apple logo appears (no data is lost)

  • I am trying to upgrade my XP to Windows 7. I bought a licensed copy of Windows 7 with SP1 dvd but it's a udf file and I can not load.

    I am trying to upgrade my XP to Windows 7.  I bought a licensed copy of Windows 7 with SP1 dvd but it's a udf file and I can not load.  What should I do?

    Boot you from the DVD first? Or have you tried to open it in Windows Xp?

  • I can not load a new copy of Windows Live ID Sign-in Assistant (XP)

    I have problems with youtube and they say to reload ie 8, I did.  Now Windows sign-in Assistant does not work and I can not load another copy.  Everything is for Windows 7.

    Help.

    Hello

    The question you have posted is related to Windows Live, and would be better suited in the Windows Live forum. Please visit the link below to find a community that will provide the support you want. http://windowslivehelp.com/

  • SanDisk Fuze has a problem (cannot recognize on computer, can not load)


    If you can not load, it's a fault of connecting cable, connector of the rocket or the USB port on your computer.

  • I can not load a CD rom. I get the error message is that the CD rom is 16-bit and my Vista 64 Bit.__What are solutions to make this readable CD Rom in my system.

    I can not load a CD rom.  I get the error message is that the CD rom is 16 bits and my Vista 64-bit.
    What are the solutions to make this readable CD Rom in my system.

    It seems that if the CD is read correctly, but if I interpret your message right, you have problems to install the software.  And if the facts are that it is a product of 16 - bit and Vista is a 64-bit operating system, you won't be able to install it.  Support for older, 16-bit software was removed from Vista and Windows 7.  You would need to consider using a product such as Microsoft's Virtual PC or VirtualBox from Sun Microsystems virtualization to run - and if it were a game, same virtualization may not work.

    'Herb Ellicott City' has written in the new message: * e-mail address is removed from the privacy... *

    I can not load a CD rom.  I get the error message is that the CD rom is 16 bits and my Vista 64-bit.
    What are the solutions to make this readable CD Rom in my system.

  • Windows 7, freshly installed, can not load the drivers, no usb, no cd player, no internet

    Hey guys,.

    I just installed Windows 7 64 bit on Windows 7 - laptop OS, but did not not any possibility of installing drivers. USB 2.0 does not respond, ethernet cable - no drivers. How can I possibly have to load drivers for the laptop computer?

    I'll try to find a solution, but nothing, only the similar problem was to change in the BIOS USB 3.0 2.0, but I have no idea how do in Insydeh20 bios.

    Hello

    If I understand you correctly, you have installed Windows 7 on your computer, but can not load the drivers that you don't have drivers CD. In addition to this, you can not connect to the internet through an Ethernet cable. In this scenario, we can only do two things to solve the problem.

    1. try to contact your computer manufacturer and ask the driver CD after mentioning your model number. You can also visit one of the shop of the manufacturer of your computer and ask the drivers CD and see if they can help.

    2. you can download the .exe file from the site of the constructor on any of the advertising of work computer and then install it on your computer using CD/DVD/USB.

    Hope I could answer your query. Feel free to post on the forum, if you have concerns more associated with Windows. We will be happy to help you.

    Kind regards

  • Startup error: DLL Load error can not load the resource dll: REPLRES. RLL the specified module could not be found

    Original title:

    ReplSync.dll - error loading DLL cannot load resource dll: REPLRES. RLL the specified module could not be found

    I get this error message whenever I start my computer: replsync.dll - DLL Load error can not load the resource dll: REPLRES. RLL specified module is not found Help please?  Thank you!

    Hello
    You did changes to the computer before the show?
    Method 1:
    Step 1:

    You can try to start in safe mode and check if the problem persists.

    The Advanced Boot Options screen lets you start Windows in advanced troubleshooting mode. You can access the menu by turning on your computer and pressing the F8 key before Windows starts.

    Some options, including the mode safe mode, start Windows in a limited State, where only the essential is started. If a problem doesn't reappear when you start in safe mode, you can eliminate the default settings and basic device drivers and services as a possible cause.

    Advanced startup options
    http://Windows.Microsoft.com/en-us/Windows7/advanced-startup-options-including-safe-mode

    Step 2:

    If the problem does not occur in safe mode, and then try to perform the clean boot and see if the problem still occurs. Clean boot helps eliminate software conflicts. For more information, see the following link:

    http://support.Microsoft.com/kb/929135

    NOTE: When you are finished troubleshooting, make sure that you reset the computer in start mode normal such as suggested in step 7 of the article mentioned above.

    Method 2:

    You can run Windows Defender Offline tool.

    See the following link for more information about the same:

    What is Windows Defender in offline mode?

    http://Windows.Microsoft.com/en-us/Windows/what-is-Windows-Defender-offline

    Windows Defender Offline: Frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows/Windows-Defender-offline-FAQ

    Note:
    data files that are infected must be cleaned only by removing the file completely, which means there is a risk of data loss.

    Method 3:

    Try the SFC (System File Checker) scan on the computer.

    SFC/scannow is a very useful command that you can use in any version of Windows. When the SFC (System File Checker) command is used with the/scannow switch, the tool analyzes all the important files of Windows on your computer and replace if necessary.

    Missing and the corruption of the operating system (like many DLLs) files are probably the main cause of the major problems of Windows. In view of this, plus the fact that the SFC/scannow is completely automatic and very easy to use, the tool should be usually one of your top not troubleshooting.

    Reference:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

    Let us know if it helps!

  • have windows 7 x 64 and hp deskjet 656c can not load the driver he keeps giving me error code 0 x 00000057 down

    have windows 7 x 64 and hp deskjet 656c can not load the driver he keeps giving me error code 0 x 00000057 down

    Hello

    Please contact the Microsoft community. We will be happy to help you with your concern.

    According to the description, you can not install hp deskjet 656c driver you get error code 0x00000057c.

    How do you try to install the driver? Is it through the disc or via the site?

    Method 1: Use a troubleshooting tool to solve the problem:

    Open the hardware and devices Troubleshooter

    http://Windows.Microsoft.com/en-us/Windows7/open-the-hardware-and-devices-Troubleshooter

    Method 2: temporarily Disable the Antivirus and firewall and try to install

    Enable or disable Windows Firewall

    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-Firewall-on-or-off

    Important note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

    Method 3: Try to install in the clean boot

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: After installing windows update, follow step 3 in the link provided to return the computer to a Normal startupmode.

    Please follow these recommended steps, review the additional information provided and post back if you still have the problem. I will be happy to provide you with additional options.

Maybe you are looking for