Help! How to load several SWF files by using the following code?

In stock for 1 frame:

( var myrequest:URLRequest =new URLRequest ()'A.swf'();
( var myloader:Loader =new Loader()();
myLoader. load () myrequest ();

img1. addEventListener () MouseEvent. ( CLICK, button click();

( function button click ()event: MouseEvent ():void{ }
Stadium. addChild () myloader ();
}

img1.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_5);

function fl_ClickToGoToAndStopAtFrame_5(event:MouseEvent):void

{

gotoAndStop (13).

}

In action to frame 13: (img2 is another button)

img2.addEventListener (MouseEvent.CLICK, unloadFunction);

function unloadFunction(event:Event):void {}

stage.removeChild (myloader);

}

you want to load another swf (for example, B.swf) when you are in frame 13 and img2 is clicked?  If so, and you do not want A.swf continue to play, use:

In action to frame 13: (img2 is another button)

img2.addEventListener (MouseEvent.CLICK, loadF2);

function loadF2(event:Event):void {}

myLoader.Load (new URLRequest ("B.swf"));

}

Tags: Adobe Animate

Similar Questions

  • How to load external swf file and unload the swf file parent?

    I have a question. Let's say I have file1.swf, file2.swf and file3.swf, how can I link this 3 files together.

    Let's assume that file1.swf is the main content file, but as I load file2.swf, I want the file1.swf get replaced by file2.swf. How could unload file1.swf at that time, so that my file2.swf will become the main content file?

    and even once, when my current post file2.swf and I want it get replaced by file3.swf tinkle of a button. so that i can unload the file2.swf and let them file3.swf become the main content file...
    Anyone have ideas on this?
    Thank you..

    If you're publishing to fp 10 + use:

    var loader: Loader = new Loader();

    var urlR:URLRequest = new URLRequest();

    addChild (loader);

    Btn1.addEventListener (MouseEvent.Click, f);

    btn2.addEventListener (MouseEvent.Click, f);

    function f(e:Event):void {}

    {if (Loader.Content)}

    loader.unloadAndStop ();

    }

    {if(e.currentTarget==btn1)}

    urlR.url = "file2.swf";

    } else {}

    urlR.url = "file3.swf";

    }

    Loader.Load (urlR);

    }

    p.s. Please check the useful/correct, if there is.

  • How to load several SWF my main flash file?

    I use the following code

    In stock for 1 frame:

    ( var myrequest:URLRequest =new URLRequest ()'A.swf'();
    ( var myloader:Loader =new Loader()();
    myLoader. load () myrequest ();

    img1. addEventListener () MouseEvent. ( CLICK, button click();

    ( function button click ()event: MouseEvent ():void{ }
    Stadium. addChild () myloader ();
    }

    img1.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_5);

    function fl_ClickToGoToAndStopAtFrame_5(event:MouseEvent):void

    {

    gotoAndStop (13).

    }

    In action to frame 13: (img2 is another button)

    img2.addEventListener (MouseEvent.CLICK, unloadFunction);

    function unloadFunction(event:Event):void {}

    stage.removeChild (myloader);

    }

    This code works perfectly fine. My only problem is how to make several swf loaded. When I tried to copy and paste the same code for the another swf, but the following errors appear. I'm sure theres a way to have several sovereign wealth funds (btw the multiple SWFS will be bound to different frames).

    Scene 1, Layer 'PAGES!', frame 2, line 7 1021: duplicate function definition.

    Scene 1, Layer 'PAGES!', frame 2, line 2 1151: there is a conflict with the myloader definition in the internal namespace.

    Scene 1, Layer 'PAGES!', frame 2, line 1 1151: there is a conflict with myrequest definition in the internal namespace.

    Can anyone help me please with this. Thank you

    I have to get a new keyboard one day... it ignores things...  That sentence was supposed to have read "You can not set the same variable name or function more than once in a file" If you don't know not what that means, read it a few times because it's as simple as possible.

    In regards to the other code, try and see what you get... No need to wait for me to try something yourself and see.

  • With the help of a ClassLoader to load several SWF files?

    Hello community,

    Pulling my hair out on this one. I want to use a single charger (from the class Loader) to, in order, load a SWF to a single movieclip on the stage. I have a charger that I want to load external files: 'peel0.swf', 'peel1.swf',..., 'peel9.swf' in 10 corresponding clips (that already exist on my scene): 'peel0_mc', 'peel1_mc',..., 'peel9_mc '.

    The problem with my code is that it does not load, but the last peel. Everything seems to be cranking away as you like, until I have look at the contents of my peeling - only the 'peel9_mc' Gets the external file "peel9.swf" in charge. When I slow down things with 'Simulate download' I see the 0-8 "peelX_mc" loaded with the correct SWF but when the 'loop' moves to the next line, it disappears from the mc. It's as if the *.addChild method does not stick.

    Any input would be greatly appreciated,

    -john

    VarioPegged!

    Yes! It worked like a charm. I do * love * this community.

    I sincerely appreciate your time and efforts to help me.

    Kind regards

    -john

  • How to load external swf files into the AIR

    I try this code its working at the computer, but when I publish this .apk or .ipa file, my external swf file does not open

    (I included my external file as well)

    places_btn.addEventListener (MouseEvent.MOUSE_DOWN, newvid);

    function newvid(event:MouseEvent) {}

    trace ("you clicked me");

    var loadit = new Loader();

    addChild (loadit);

    loadit. Load (new URLRequest ("scene02.swf"));

    }

    01.jpg

    Add this in your newid function:

    You forgot to put the beginning of your original function:

    var loadit = new Loader();

    addChild (loadit);

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

    loadit. Load (new URLRequest ("scene02.swf"), _lc);

  • How to load several books in planning using FDM ERPI?

    Hello

    I use FDM and ERPI 11.1.2 to load data from Oracle GL R12 to Hyperion Planning 11.1.2.

    In Oracle GL, I have several books: one for each accounting entities.

    In ERPI:
    -an import format is associated with a single entity accouting
    -a location is associated with an import format, then with a reporting entity
    -a rule of data loading is associated with a place, then with a reporting entity

    In FDM, when configuring the ERPI adapter, you must enter the data load rule name that you want to use.

    So: How to load data from several reporting entities (= books) in planning through FDM/ERPI?

    Thank you in advance for your help!

    Fanny

    Fanny,

    You have no need to fill the data rule option - load adapter. By the documentation, you can also fill the places metadata integration Option n ° 1 with load rule name. This lets you use an adapter in the application of FDM; but the pull of several great books.

    Of course, each book would be a separate location of the FDM.

    Thank you

  • Download Helper - how to download and save files .wmv WITHOUT the video being downloaded reading on screen?

    Windows 7 Pro
    Latest Version of Firefox
    Latest Version of Download Helper
    Windows Media Player and VLC are installed

    When I download a video file (.wmv, usually) the video starts to play on the screen of the monitor prior to my being able to use Download Helper to download the video and save it on the hard drive. This generally translates the video stopping and playing and stopping the process of download because of the speed of download available. There is never any problem with the final download hard disk.

    Today I installed the latest version of Firefox and Download Helper on another computer.
    Windows 7
    Latest Version of Firefox
    Latest Version of Download Helper
    Windows Media Player (not) is installed

    Downloaded the same .wmv file you downloaded above and the video started to play on the screen of the monitor. Download Helper has allowed me to download the file on the disk hard WITHOUT constantly tuned to the video start/stop/start/stop etc.

    Which option (in which program) would allow playback of the video to be turned on and off all by downloading the .wmv file?

    Thank you.

    Once the download has started, you can go to another web page. The
    Download must be a separate function.

  • Automation of several Flash file by using the XML file 'mailing list '.

    I created a Flash interactive multi-fichiers 'demo' for a client. It is very well as a Web site (although he doesn't use it as a Web site) in the way it is stated that there is an index page which can then direct you to product categories, which you can click to see. Each 'page' contains the product (or product category) information, photos, diagrams, etc. There is nothing of Flash animation.

    My client also wants to be able to put in place so that the demo runs automatically in a configurable XML file. My ActionScript skills are fairly limited, but I was able to by using ActionScript 3 to load and read XML file. A loop using 'for', I am able to read the XML file and returns the path of each Flash file and the time that each file must be displayed (my client asked that he able to configure the duration of each page as well).

    I created a charger for each video clip and a timer for the duration. Unfortunately, the thing that throws me off is that when I try to load the clip (as the last element in the loop for), it reads the entire XML file, returns all the clips and the durations (I use trace to see this) before loading the clip. Thus, the single loaded clip is the last reading of the XML file.

    As I said, I'm not very good at ActionScript, so everything I managed to combine was internet tutorials.

    This is my code:

    var xmlLoader:URLLoader = new URLLoader();

    xmlLoader.addEventListener (Event.COMPLETE, xmlLoaded);

    var mcLoader:Loader = new Loader();
    mcLoader.contentLoaderInfo.addEventListener (Event.INIT, playClip);

    var mcCurrent:MovieClip = new MovieClip();
    stage.addChild (mcCurrent);

    var xml;

    function playClip(e:Event):void
    {
    trace("Function:playClip");
    stage.removeChild (mcCurrent);
    mcCurrent = MovieClip (mcLoader.content);
    mcLoader.unload ();
    stage.addChild (mcCurrent);
    }

    function xmlLoaded(e:Event):void
    {
    trace ("function: xmlLoaded");
    XML = new XML (e.target.data);

    var cl:XMLList = xml.clip;
    for (var i: uint = 0; i < cl.length (); i ++)
    {
    trace ("Begin"for"loop");
    trace ("variable" i "is" + i);

    clipPath var = cl[i].@path;
    var delay = cl[i].@duration;

    trace ("Clip path is" + clipPath);
    trace ("Display for" + delay);

    mcLoader.load (new URLRequest (clipPath));
    }
    }

    xmlLoader.load (new URLRequest ("filerunlist.xml"));


    I removed the timer event because, like all the rest was repeated until whatever it is obtained, so I wanted to figure out out to get the charger clip (mcLoader) to load the clip for each file, before I realized where put in the time to make sure each element is displayed for the appropriate duration. I suspect that the timer event must occur in the function "playClip", but that it would take advice on that as well.

    Thanks to anyone who can help me understand this.

    You need to do in the service of parsing xml is just to store all data in a table.  You will use while an array element after another through some timer control you set up, access each file in the order that they are stored in the table.  You do not load in this function, all data storage, and when finished, the last line of this function outside the loop, fires at any function you have who begins to treat the first element of the array.

    For example, to store the data objects in the array...

    var clipData:Array = new Array();   store your data xml here

    var clipToShow:uint = 0;                   use later in the function showClip

    function xmlLoaded(e:Event):void
    {
    trace ("function: xmlLoaded");
    XML = new XML (e.target.data);
       
    var cl:XMLList = xml.clip;
    for (var i: uint = 0; i
    {
    clipArray.push ({clipPath: cl[i].@path, delay: cl[i].@duration});

    }

    showClip();
    }

    function showClip() {}

    Regardless of the process of loading .clipPath clipArray [clipToShow]

    and using clipArray [clipToShow] .delay to start some timer is involved

    the timer handler function calls this function when it is run

    clipToShow += 1;   increment the counter for the next clip online

    }

    If you are not comfortable/familiar with the approach of the object, then you could also store the clip and delay data in two separate tables.

  • How a Windows error reports tire disorder - specifically the following code which resulted in a Blue Screen of Death?

    The blue screen of death occurred during online communication using a Logitech VID communications program. The following error report translated by:
    -Fault bucket 0x7E_lvrs. ReadWriteThread + 243, type 0
    Event name: BlueScreen
    Answer: no
    Cabin ID: 0

    Signature of the problem:
    P1:
    P2:
    P3:
    P4:
    P5:
    P6:
    P7:
    P8:
    P9:
    P10:

    Attached files:
    C:\Windows\Minidump\Mini013110-01.dmp
    C:\Users\Douglas\AppData\Local\Temp\WER-78015-0.SysData.XML
    C:\Users\Douglas\AppData\Local\Temp\WER7CDD.tmp.version.txt

    These files are available here:
    C:\ProgramData\Microsoft\Windows\WER\ReportArchive\Report0eeec72b
    Online from the best part of twenty minutes before it occurred. The two users of the
    program had the same result. (Blue screen of death) The two of us are running Windows Vista Ultimate Edition on motherboards model Intel D850EMVR with the latest bios update, Intel Pentium IV 3.06 Ghz, 533FSB CPUs, 2 GB of 168 pin memory of Samsung PC800 ECC, ATI AIW 9600XT 256 MB AGP video cards, Sound Blaster Audigy 2ZS with discs Live sound cards, ASB3940 Advansys SCSI adapters , Nakamichi5 disk SCSI MJ - 5.16 drives, Iomega SCSI ZIP 100 drives, and Lite on model SHM-165H6S DVD/CD rewritable EIDE drives. The two systems using model Logitech 9000 Pro webcam. (The two systems are essentially clones) Communication between Memphis, TN and Windsor, ON, CAN.

    Hello

    This error is usually a driver problem and display adapter (video) driver is the most suspicious if she
    may be others. Antivirus/antispyware/security programs, equipment (heat) and major software problems
    can also cause the error. When you get to the section of the driver to use the Troubleshoot utility my generic
    methods in the next message and then return to the if necessary troubleshooting tool.

    Have you recently added hardware or drivers updated? Don't forget to look in Control Panel - Windows
    Updates to see if all drivers have been updated it. Other donor opportunities include the antivirus/anti-
    spyware/security programs.

    When you get to the pilot and sections of the memory of the troubleshooter check the following message to
    update drivers and memory test and then return to the troubleshooter if necessary.

    BCCode: 7F 0x0000007E

    Cause

    SYSTEM_THREAD_EXCEPTION_NOT_HANDLED bug control is a very common bug control. To interpret it, you must identify which exception has been generated.

    Common exception codes are:

    • 0xc0000005: STATUS_ACCESS_VIOLATION indicates a memory access violation has occurred.

    For a complete list of exception codes, see the Ntstatus.h file located in the directory Inc. of the Microsoft Windows Driver Kit (WDK).

    Solve the problem

    If you do not have to debug this problem, you must use certain basic troubleshooting techniques.

    • Make sure you have enough disk space.
    • If a driver is identified in the bug check message, disable the driver or check with the manufacturer for driver updates.
    • Try changing video cards.
    • Check with your hardware vendor for updates to the BIOS.
    • Disable the BIOS memory options such as implementing caching or shading.

    If you plan to debug this problem, you may find it difficult to get a stack trace. Parameter 2 (the address of the exception) should identify the driver or function that caused the problem.

    If exception code 0 x 80000003 occurs, a hard-coded breakpoint or assertion was hit, but the system was launched with the /nodebug. switch. This problem should occur infrequently. If it occurs repeatedly, make sure that a kernel debugger is connected and the system is booted with the Switch/DEBUG .

    In case of exception code 0 x 80000002, the trap frame provides additional information.

    If you do not know the specific cause of the exception, consider the following questions:

    • Hardware incompatibility. Ensure that any new hardware that is installed is listed in the list of the products tested Microsoft Windows market.
    • Service driver or defective peripheral system. A chauffeur service or defective peripheral system could be responsible for this error. The hardware problems, such as BIOS incompatibilities, conflicts of memory and IRQ conflicts can also generate this error.

    If a driver is listed by name in the bug check message, disable or remove that driver. Disable or remove drivers or services that have been recently added. If the error occurs during the startup sequence and the system partition is formatted with the NTFS file system, you may be able to use Safe Mode to rename or to delete the faulty driver. If the driver is used as part of the start-up procedure of the system Safe Mode, you must start the computer by using the Recovery Console to access the file.

    If the problem is associated with Win32k.sys, the source of the error may be a third-party remote control program. If this software is installed, you can remove the service by starting the computer by using the recovery and then Console by removing the offending system service file.

    Check the system log in Event Viewer for additional error messages that might help identify the device or driver responsible for control of bug 0x7E.

    You can also disable memory cache BIOS may try to resolve the error. You must also run the diagnostics of material, especially the scanner memory, which provides the manufacturer of the system. For more information about these procedures, see the manual of your computer.

    The error that generates this message may occur after the first reboot during Windows Setup, or after installation is complete. A possible cause of the error is lack of disk space for installation and the system BIOS incompatibilities. For any problems during the installation of Windows that are associated with lack of disk space, reduce the number of files on the hard disk drive target. Search and delete temporary files that you do not have to have, files hidden Internet, application backup files and files saved .chk , which contain fragments of files on disk scans. You can also use an another hard disk drive with more free space for the installation. You can solve the problems of BIOS by upgrading the version of the system BIOS.

    -------------------------------------------------------------------------

    Look in the Event Viewer to see if something is reported on those.
    http://www.computerperformance.co.UK/Vista/vista_event_viewer.htm

    MyEventViewer - free - a simple alternative in the standard Windows Event Viewer.
    TIP - Options - Advanced filter allows you to see a period of time instead of the entire file.

    http://www.NirSoft.NET/utils/my_event_viewer.html

    Here are a few ways to possibly fix the blue screen issue. If you could give the info from the blue screen that would be
    Help. Such as ITC and 4 others entered at the bottom left. And any other information such as STOP error
    codes and info like IRQL_NOT_LESS_OR_EQUAL or PAGE_FAULT_IN_NONPAGED_AREA and similar messages.

    As examples:

    BCCode: 116
    BCP1: 87BC9510
    BCP2: 8C013D80
    BCP3: 00000000
    BCP4: 00000002

    or in this format:

    Stop: 0 x 00000000 (oxoooooooo oxoooooooo oxoooooooo oxooooooooo)
    Tcpip.sys - address blocking 0 x 0 00000000 000000000 DateStamp 0 x 000000000

    It is an excellent tool for displaying the blue screen error information

    BlueScreenView scans all your minidump files created during "blue screen of death," collisions
    Displays information on all the "crash" of a table - free
    http://www.NirSoft.NET/utils/blue_screen_view.html

    BlueScreens many are caused by old or damaged drivers, video drivers in particular, but there are other causes.

    You can follow these steps in the Safe Mode if necessary or the command prompt Vista DVD or Options of recovery if your
    system installed by the manufacturer.

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    You can try a system restore to a point before the problem started when one exists.

    How to make a Vista system restore
    http://www.Vistax64.com/tutorials/76905-System-Restore-how.html

    -------------------------------------------------------------------------

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    The log can give you the answer if there is a corrupted driver. (Says not all possible driver problems).

    Also run CheckDisk, so we cannot exclude as much as possible of the corruption.
    How to run the check disk at startup in Vista

    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    -------------------------------------------------------------------------

    Often drivers up-to-date will help, usually video, sound, network card (NIC), WiFi, 3rd party keyboard and
    smile, as well as of other major device drivers.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    -------------------------------------------------------------------------

    How to fix BlueScreen (STOP) errors that cause Windows Vista to shut down or restart unexpectedly
    http://support.Microsoft.com/kb/958233

    Troubleshooting, STOP error blue screen Vista
    http://www.chicagotech.NET/Vista/vistabluescreen.htm

    Understanding and decoding BSOD (blue screen of death) Messages
    http://www.Taranfx.com/blog/?p=692

    Windows - troubleshooting blue screen errors
    http://KB.wisc.edu/page.php?id=7033

    -------------------------------------------------------------------------

    In some cases, it may be necessary.

    The Options or Vista recovery disk Startup Repair

    How to do a startup repair
    http://www.Vistax64.com/tutorials/91467-startup-repair.html

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • external loading of several swf files

    I am trying to load several swf files in my flash project. I have it where it will charge but when I write the code for others it still load them. Here is my code

    Stop();

    Btn1.addEventListener (MouseEvent.Click, f);

    var loader_mc: Loader = new Loader();

    var urlRequest: URLRequest = new URLRequest("swf/graphics.swf");

    function f (e: Event) {}

    loader_mc. Load (urlRequest);

    addChild (loader_mc);

    }

    logos.addEventListener (MouseEvent.CLICK, g);

    var myloader_mc: Loader = new Loader();

    var myurlRequest: URLRequest = new URLRequest("swf/logos.swf");

    function g (e: Event) {}

    loader_mc. Load (urlRequest);

    addChild (loader_mc);

    }

    brochures.addEventListener (MouseEvent.CLICK, h);

    var myotherloader_mc: Loader = new Loader();

    ("var myotherurlRequest: URLRequest = new URLRequest("swf/BROCHURES/brochures.swf ");

    h function (e: Event) {}

    loader_mc. Load (urlRequest);

    addChild (loader_mc);

    }

    the logos.swf and brochures.swf code always loads the graphics.swf. How can I fix?

    While you seem to be creating new loaders, you do not use them.  The functions use the same lines of loading...

    loader_mc. Load (urlRequest);

    addChild (loader_mc);

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

  • Please please help - I can't open swf files

    I downloaded Adobe Flash Player and Adobe Shockwave Player to play some swf files that I downloaded.  These files still say that Windows cannot open them well and I don't know why.  I tried to uninstall reinstall etc, but the computer doesn't seem to know that the Flash Player is.

    Thanks to all those who will help me solve this problem!

    Hello

    are you clicking on the swf or html file?

    If you want to run the SWF on its own then you will need the Flash Player standalone (you can get it here: http://kb2.adobe.com/cps/142/tn_14266.html).

    If you want to run in the browser, and then drag the swf file (or use the file/open command) in a browser window.

  • Help please! Problems with loading external swf files

    I'm scared, I'm new to both Adobe Flash and Actionscript 3.0.

    I'm trying to create a simple site using a couple of different external sovereigns loaded into a main swf file.

    For the moment, in the timeline panel, I have the following code in frame 1 of the layer actions:

    import flash.events.MouseEvent;

    Stop();

    navbutt.addEventListener (MouseEvent.CLICK, shownavbg);
    function shownavbg (myEvent:MouseEvent): void {}
    gotoAndPlay (10);
    }
    home_btn.addEventListener (MouseEvent.CLICK, showhome);
    function showhome (myEvent:MouseEvent): void {}
    gotoAndPlay (66);
    }
    aboutme_btn.addEventListener (MouseEvent.CLICK, showaboutme);
    function showaboutme (myEvent:MouseEvent): void {}
    gotoAndPlay (49);
    }
    gallery_btn.addEventListener (MouseEvent.CLICK, showgallery);
    function showgallery (myEvent:MouseEvent): void {}
    gotoAndPlay (76);
    }

    var bgLoader:Loader = new Loader();
    stage.addChild (bgLoader);
    ("var url: URLRequest = new URLRequest("Background/sitebackground/Main.swf ");
    bgLoader.load (url);
    stage.setChildIndex (bgLoader, 0);

    Then, in the framework of 76, I have the following code:

    removeChildAt (0);
    bgLoader.unload ();

    In section 77:

    var galleryLoader:Loader = new Loader();
    stage.addChild (galleryLoader);
    var galleryurl:URLRequest = new URLRequest("test/ZenGalleryDemo.swf");
    galleryLoader.load (url);
    stage.setChildIndex (galleryLoader, 0);

    Stop();

    The idea is that, when the file is loaded, the 'sitebackground/Main.swf"flash loads on the stage. Then I want to delete this flash and load a different one when I click on the gallery_btn. So, when I click on the gallery_btn, he plays frame 76, theoretically unloading the Main.swf and the loading of the ZenGalleryDemo.swf in its place.

    For the moment, the Main.swf loads perfectly and works great. But when I click on the button to the Gallery, he jumps to the frame 76 and plays the Main.swf. It does not load the file ZenGalleryDemo.swf...

    If anyone has any ideas, I would be really grateful!

    Thanks in advance

    It's just a glance and reading, but the problem may lie between these two lines... look closely...

    var galleryurl:URLRequest = new URLRequest("test/ZenGalleryDemo.swf");
    galleryLoader.load (url);

  • join several swf files into a swf file

    Hello everyone

    I've been dealing with this problem for too long and decided to ask for help - how can I gather 15 swf files placed in a folder in a SWF one?

    I tried all kindes of the merger of programs like "Join (Merge, handset) several SWF Files Into One Software" and "WinMerge" without success and I tried to convert swf to flv (cause I found other software merging for flv files), but once again...

    I have CS5, so if I have to open Flash to do this I will, Although I try to avoid it, and even in this case I'll need complete instructions.

    All I need is this simple thing, so I'll thank very much any help

    Thank you & good day

    Keren

    To stay a bit brief, cannot join several swf files in a folder and have still things work if the files involve actionscript.  You need to have the fla files, and then you can copy the timelines of each fla in movieclips into one main file.  What you need to do if you don't have the source fla files is to dynamically load the separate runtime files.

  • How to add 1 swf file to another file swf which are image sequences?

    Hi all

    I have two sovereign wealth funds, when clicking on the swf first goes to the second file and clicking on a button in the second file goes back to the first file.

    The first swf file is the sequence in which only certain key images have the transparent button when you click on go to the second file of images.

    So far, I'm able to do.


    But when we click the keyframes, how do I disable the background swf? (i.e., during of the loading swf second, top first load right? what can be done to disable the first swf?)

    As I tried to give visible to false.

    But no help.


    Any help in this would be very much appreciated and very helpful.


    Thanks in advance.

    1. always add an EVENT.COMPLETE.listener loading of sth.

    This variable will be used more later to trigger the behavior of your loadedSWf

    var mc:MovieClip;

    myLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, loaded);

    function loaded(e:Event):void {}

    trace ("Loaded");

    addChild (myLoader);

    MC = MovieClip (myLoader.content);

    You can now use the alias mc anywhere in your main swf file to make the invisible whole loadedSwf or trigger a function in the swf file

    for example: mc.hideMe () would trigger a function inside your loadedSWF hideMe

    }

    myLoader.load (new URLRequest ("Interactive_Walkthrough.swf"));

Maybe you are looking for

  • Who need information on the NVIDIA GeForce GO 7600 A100-906

    Hello. I have a few questions about the graphics accelerator NVIDIA GeForce GO 7600 in Satellite A100-906 model. It has 256 MB of memory. Do tou know if this card has 128 or 64 Bit Memorybus? And I'm also curious about the memory clock, you know the

  • screen brightness control does not

    I use HP Elitebook 8530w, I uninstalled HP software and now I can't control the brightness of the screen with the fn key, how can I reinstall the software, how do I know what software is needed?

  • Help create a VLAN for domestic use.

    I use Cisco SG300 and SG200 series switch. I put my home network as attach photo. I want to configure VLANS with these condition 1. all ports can connect to the internet via ADSL router. 2.VLAN10 (home alarm and IP camera) can access residential, acc

  • Reg SSO with discoverer

    Hi allMy environment,EBS: R12.1.3Database: 11.1.0.7Discoverer: 10.1.2As discoverer is integrated with EBS. We need to also configure SSO for discoverer?If possible, share the document for a better understanding.Please give tickets to go further. Also

  • HP Pavilion dv6: my knees is compatible with Windows 10

    Product name: HP Pavilion dv6 Notebook Serial number: CNF1014QCR Product number: LK364PA #ACJ Model: HP Pavilion dv6-3208tx I'm using Windows 7 ultimte. a few years back when win8 came, I installed it but it did not result and came to know that it wa