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

Tags: Adobe Animate

Similar Questions

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

  • Looking for new information in the discussion "can not load the video file.

    I repeatedly get him "cannot complete request because Photoshop can not download the file" error message.  I have read the information about Quicktime, which dates back to April.  However, I get this while trying to open the video files .mpeg-2, .mxf and .mp4 (Photoshop CC).  All these depend on Quicktime?  Is there another reason for getting this error?  At least the first two of these formats are listed in the manual as being recognized and appropriate for Photoshop CC.

    Hi seiurus,.

    Please check that your using the latest version of Photoshop 2015.5.0.

    Also, please reset the default preferences and check if that helps.

    Reference: Preferences in Photoshop

    Kind regards

    Mohit

  • I can not load the RAW files from my nikon d810

    I have a problem reading my d810 nikon RAW files

    https://forums.Adobe.com/search.jspa?q=D810

  • Windows.Old - Can I load the entire file at once my computer is restored with it's info earlier?

    original title: Windows to restore the old windows.old file

    Hi all. I recently had to reinstall my os after that sp1 problems (thanks a lot to Microsoft) I now have a windows.old folder with all of my old saved stuff. Question is, can I load the entire file at once my computer is restored with it's info earlier? Pls let me know. Thanks in advance

    Hello

    None

    You can not load the whole file

    Windows.Old is not to restore your computer

    You can only recover data from the windows.old folder

    programs need to be reinstalled from the original media

    Read about the windows.old folder

    How to restore your personal files after you perform a custom Windows Vista or Windows 7 installation

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

  • Can I use multiple SWF files in iOS app?

    Hello everyone,


    I need to create an app for iOS from an existing Flash project.

    On the stage of the main flash, several SWFs are loaded dynamically.

    Is it possible to compile, in addition to the main file, all other SWFs too?

    If I load the swf file in the files "target" on the menu 'Setting AIR for IOS', they are copied into the swf, which makes it impossible to use the app on iPad.

    Thank you all

    Yes, you can load any number of SWFs in flash while developing for IOS, but the external swf file must not contain any script. And you can simply add the swf file in the files in a folder.

  • Once I downloaded the new version of Adobe Flash Player 11.3.300.262, I can not play games with my friends on Yahoo Messenger.

    It could be a coincidence, but when I upgraded to the latest version of Adobe Flash Player 11.3.300.262 I can not play games with my friends on Yahoo Messenger. I know that when I've updated for a reason that I had to try 3 times before it took. It shows that it is updated. I wonder if I have to uninstall and reinstall. Also, I never use Internet Explorer 8 but when I went there to check I found a plug check link there and it showed over there that Adobe Flash Player necessary update but it was an older version and not a Foxfire had updated me too. Now I'm really confused if it causes a problem. I've never had to control Internet Explorer for plug-ins before. Have always just updated to Foxfire since that's what I use. Adobe Flash Player seems to play videos OK not really sure if this is the issue or not. My Java plug-ins have been very well and have been updated some time there, so I know it's not that. Any help is appreciated. Thank you!

    Hey again,
    After hours of reading and checking to make sure I had good things enabled, I did, I gave up and uninstalled the latest version of Adobe Flash Player, they gave me and re-installed and later I had my friend get on Messenger and we tried games and it worked this time.
    For some strange reason when I updated it took me 3 tries before it took. So even if he told me that it has been installed, apparently it wasn't really. Just goes to show you that you can not trust what you see.
    What has really scratching my head was I went to Internet Explorer 8, which I never use more and discovered you can now get Mozilla plug in slip out there and when I did showed that same Adobe Flash Player is outdated but it was to a different version. Not knowing if it would help, I installed a new too and he said it was his understanding that it does not. So I guess you can have 1 version installed on the computer 1 despite 2 browsers different different versions. It becomes too complicated for me. Laughing out loud!
    I work with computers all the time at work but not the technical stuff. If it's something simple, I can guess through it to help someone but it's my first personal computer for me and is a former first, so I got experience using different types. We use the desk at work as well. Personally, I like computers laptops for various reasons. And the mention of people many browsers go way over my head.
    Please answer this question though and you answer back.
    DFelice

  • I posted a question can not find the question and or response. Help, please

    I posted a question can not find the question and or response. Help, please

    AFAIK, you can't share a catalog like this.

    The only recommended method is to store your images and catalogue on an external drive, you can alternatively plug in both computers.

    With today the external USB drives, the speed is still correct, and many users are satisfied with this solution.

  • Error: 303: unable to load a resource: can not access the resource file (try loosening Flash security)

    Error: 303: unable to load a resource: can not access the resource file (try loosening the Flash security settings): error #204 in shockshare.com and putlocker.com any help please?

    When I was watching a movie... There was a link, I always watched movie shockashre and putlocker.com but today, I saw this problem and don't kno how to solve

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

  • files and folders: How can I load all my files and folders to my new account of my external hard drive?

    Who can help, I just put a new account on my computer and deleted the old account. I backed up the old files on my external hard drive. I want to know is how can I load all my files and folders to my new account of my external hard drive? I thank you for your time and knowledge have a very nice evening, Shawn

    Because it's a new account (even if with the same name), the restore procedure is unable to put files and folders in the same place, they came (because this place technically no longer - if yes, then the process is done and the transfer is complete). It can create a set of separate files (maybe even under a new user name, if it has been stored in this way).  If so, all you need to do is copy the data as you would copy any other files and folders (not the main files of the user profile themselves but the data in them) on the new files in your user account and who will take care of the transfer. Here is more information about the restore procedure which may help you in the process.

    Here is an article on the restore procedure:http://www.vista4beginners.com/How-to-restore-files to make sure you do this right.  It's a selective restore of a full or selective backup (not a full restore from a full backup) - but since you did a full backup, it matches your process more closely than would a full restore.

    This is a GREAT article on the backup and restore processes in Vista http://technet.microsoft.com/en-us/magazine/2007.09.backup.aspx , but he won't go into detail about the restoration process - considering almost as easy, of course.  But it teaches you a lot about what is possible and how to do it.  It also focuses primarily on the full backup process, but he did mention the full backup and restore process as well.

    Here is an article on the advanced use of restoration (during normal restore does not work):http://www.mayankraichura.com/post/2009/08/06/Avdvanced-Restore-via-Windows-Vista-Backup-and-Restore-Center.aspx.

    Restore files from a backup
    http://Windows.Microsoft.com/en-us/Windows-Vista/restore-files-from-a-backup

    Back up and restore: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-and-restore-frequently-asked-questions

    I also found the following (but don't know if it of true or not):

    1. after the start of "backup and Restore Center."

    2. I chose "Advanced Restore"

    3. I was did not an administrator password... maybe because my account is an administrator account.

    4 choose "files from a backup made on a different computer.

    5. in the dialog box indicating "Select the location of the backup to restore", select "hard drive, CD or DVD...". »

    6. under the drop-down list box, select your drive/partition and continue

    7. If all the backups on your drive, it will show a list of them.

    8. in my case, he showed a backup, but in the backup location, it will show "backup location is not available."

    9. I was frustrated, but then I somehow just select this backup (Yes... even if he said that thebackup location is not available " ")

    10. and you press "next".

    11 guess what... no error!

    12. a window appeared asking me if I wanted to do a full restore, or I want to select specific folders or files.

    13. I selected the folders I wanted to restore and bingo... it their restored smoothly.

    14. so that the next time see a mistake, try to continue with him... ;)

    I don't know if this will help, but it does not provide much information about the process (when it works).

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

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

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

  • The Adobe Desktop installation program will not load the app screen tab, all I see is the loading icon and runs continuously without ever loading. All the other tabs seem to load without any delay, only the app tab does not load. I tried to uninstall and

    The Adobe Desktop installation program will not load the app screen tab, all I see is the loading icon and runs continuously without ever loading. All the other tabs seem to load without any delay, only the app tab does not load. I tried to uninstall and reinstall the software, rebooted a couple of times and tried to activate the download of the Premier Pro via the website, but it still doesn't load in the desktop application.

    This solved the problem for me:

    Use the CC cleaning tool to resolve installation problems. CC, CS3 - CS6

  • Flash player 10.3.181.14 broke my site, multiple loading of SWF files in a table

    I load several SWF files into an array, I have add and remove objects on the stage, it is a carousel.

    All locations of the items are set in xml format. If I only have one loaded in the table it works very well, if I have more so we have) play the swf file, or b) display the swf file.

    Sovereign wealth funds themselves contain code that trigger events in the main container. Causing other elements to play or load.

    Does anyone else have this problem?

    Hi howet,

    EDIT:

    I opened a bug of flash in their system of bug that I was able to reproduce the problem, I found: https://bugs.adobe.com/jira/browse/FP-7071

    There are workaround solutions I found there.

    ORIGINAL MESSAGE:

    I had a similar problem using a load component which I use for several years with no problems. As with you, the question arose when you load multiple SWFs (or even a swf, then a jpg file) on 10.3 and later. It works fine on 10.2 and below again.

    I found a solution that I'm looking for an appropriate response and it is to delay the subsequent charges using a setTimeout hacky.

    For example:

    protected function manageLoaded (p_event: Event): void {}

    setTimeout (loadNext, 1);

    following line breaks the loaded SWF stop.

    loadNext();

    }

    I hope this help you, let me know.

    See you soon,.

    Dan.

    Post edited by: Dan Wilkinson, 06/01/2011 11:37 CEST (GMT + 1)

Maybe you are looking for

  • Auto detection of the guarantee can not find Satellite P55W-C5200

    I bought a new Toshiba Satellite P55W-C5200 Poland and checked the status of internet security and produces automatic detection and did not find my product. Serial number of the box and the laptop are the same, but in the warranty card, it's differen

  • Installation of Windows XP Home edition on my new laptop

    Hello Have had a new laptop for four days with Vista home premium OS. I do not like. It is not compatible with most of my software, AutoCAD, Video Studio, etc, ask questions all the time I don't want to do what I want to do this.I have a windows XP d

  • upgrade processor dx2450

    Hi, I have a dx2450 which has a m2n68 mobo - with a 4450B processor that I want to spend, can someone help me with who's the best, I heard it was the Phenom 9600, but also read that someone had put a 9750, but before I buy it I know for deffinet, tha

  • 600-1055: replacement fan

    I have a HP Touchsmart 600-1055 NY539AA need to replace fans.  Where can I find these?  I looked online and can find a lot of fans, but none that appear to be a direct replacement.  Someone at - it a good source?  Thanks in advance!

  • Screen LCD HP w1907 and placement of external hard drive.

    I was wondering if my new set-up is safe. I mounted my monitor on a wall bracket and I have a drive external hard iOmega 1 TB on a half inch behind it. Is this safe, or will I have to move the hard disk so as not to affect the performance of each dev