Load an external SWF since an external SWF

Hello

I'm kinda caught between a rock and a hard spot on a flash site project. Here's the situation:

I created a parent movie (that load all external SWF inside) that has built-in navigation menu. However, my client wants to place me some more inside the external swf links that lead to other pages (external SWF) on the site. Is this possible? I was hoping there is a way to tell a button in an external SWF to make the parent film from an external SWF.

ANY help is appreciated. Thank you.

Another question: it does not use the _parent script?

Elijah

If you want, for example, a button in welcome.swf to load a SWF into support, then welcome.swf will be unloaded. is that what you want? If so, in welcome.swf you can use:

Tags: Adobe Animate

Similar Questions

  • load an external swf on a mc that is on the screen

    This seems like a basic question, but if I have a swf file in the same directory as the fla and wants her to be on a mc, is there an easy way? so I make a movieclip on the screen and you want it to load. someone at - it a small example?

    Use the loader class to load an external swf.

    var loader: Loader = new Loader();

    Loader.Load (new URLRequest ("yourexternalswf.swf"));

    addChild (loader);  Adds the charger to the current timeline

    If you want to add the loader to a movieclip, the method addChild to this movieclip, for example:

    yourmovieclip.addChild (loader);

  • Load an external SWF file without overwriting my container SWF (AS2) file

    Hello world

    I want to load an external SWF with AS2, but file without overwriting my container file. How can I achieve this? What is the correct code?

    Here is the code I use :

    loadMovieNum ("external.swf", 0);

    countdown = function() {}

    trace ("OK");

    }

    countdownIt = setInterval (countdown, 1000);


    It works well, but as I said, it overwrites my container SWF file. If I load into level 1, my container file works but not the one I try to load... .



    Can someone help me with this, please?

    Try to use the loadMovie method... meaning container.loadMovie.  See below for an explanation: Load external in another SWF SWF

    If the loaded file does not work when you load it, it is probably because you have references to _root in there who do not find the expected _root.  You must set the file loaded _lockroot property to be true.

  • How to load my external Gallery.swf in Page 6. It loads the first page (HomePage_mc)?

    Hello

    The following code loads my external file "Gallery.swf" on HomePage_mc (which is Page 1). But I want to load it on Gallery_mc (which is Page-6). How can I do?

    Here is the code:

    [code] ButtonsPanel_mc. Gallery.addEventListener (MouseEvent.CLICK, GalleryClick);

    function GalleryClick(e:Event):void {}

    If (currentClip! = Gallery_mc) {}

    currentClip.visible = false;

    Gallery_mc. Visible = true;

    currentClip = Gallery_mc ;}

    var Xpos:Number = 110;

    var Ypos:Number = 180;

    var swf:MovieClip;

    var loader: Loader = new Loader();

    var defaultSWF:URLRequest = new URLRequest("swfs/Gallery.swf");

    Loader.Load (defaultSWF);

    Loader.x = Xpos;

    Loader.y = Ypos;

    addChild (loader); }

    [/ code]

    PS: There was a problem with a hug. Now it is fixed, but when I go to the homepage or any other page after clicking on the button of the Gallery, the Galley.swf, but continued to play on top of all these pages. How to fix?

    Thank you.

    To have the Gallery load on Gallery_mc, you would use...

    Gallery_mc. AddChild (Loader) instead of addChild (loader).  Which bind to this movieclip.

  • Problem with loading an external swf of in an external swf...

    OK, everything was going well on a Web site project, I worked, until yesterday. I will try to explain the whole scenario first, and I'll put the code here too so anyone can try to understand what the problem is. Here is a breakdown of the site:

    1) there a MAIN SWF file that plays an intro and then stops on the last image with the Navigation buttons 'hand'.

    2) in the root folder where the MAIN SWF resides, there is another folder called "sovereign wealth funds", which contains six main external navigation pages, but also another folder called "galleries" which contains additional external SWFs for six pages in the gallery.

    3) on one of the layers of the MAIN SWF, there is a clip called 'mySWFLoadingClip' that the buttons of Navigation of the 'hand' loading and unload pages external to swf. It all works perfectly. The beginning of the problem to the next step. This is the code I used for the buttons of navigation on the MAIN SWF scenario:

    var Xpos:Number = 0.0;
    var Ypos:Number = 0.0;
    var swf:MovieClip;
    var loader: Loader = new Loader();

    var defaultSWF:URLRequest = new URLRequest("swfs/home_page_swf.swf");

    Loader.Load (defaultSWF);
    Loader.x = Xpos;
    Loader.y = Ypos;
    this.mySWFLoadingClip.addChild (loader);
    ////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////

    Function universal BTNS
    function btnClick(event:MouseEvent):void {}

    this.mySWFLoadingClip.removeChild (loader);
    var newSWFRequest:URLRequest = new URLRequest ("SWFs /" + event.target.name + ".swf");
    Loader.Load (newSWFRequest);
    Loader.x = Xpos;
    Loader.y = Ypos;
    this.mySWFLoadingClip.addChild (loader);
    }
    Listeners of BTN
    home_page_swf.addEventListener (MouseEvent.CLICK, btnClick);
    portfolio_page_swf.addEventListener (MouseEvent.CLICK, btnClick);
    services_page_swf.addEventListener (MouseEvent.CLICK, btnClick);
    about_page_swf.addEventListener (MouseEvent.CLICK, btnClick);
    team_page_swf.addEventListener (MouseEvent.CLICK, btnClick);
    contact_page_swf.addEventListener (MouseEvent.CLICK, btnClick);


    4) one of the external navigation SWF pages is called "portfolio_page_swf" and gets loaded into the moveclip of 'mySWFLoadingClip' on the MAIN SWF. This is where the problem begins. The "portfolio_page_swf" has six buttons facing an additional external swf in the file galleries. Now when I open the file "portfolio_page_swf" to test if the buttons work, they work perfect. When I click the buttons, the external swf gallery files appear as they should. But the problem is that when I open the "MAIN SWF" file to test the site, I can click on the main Navigation buttons and they work. I click the portfolio button on the time line of Hand SWF and place of 'portfolio_page_swf' on the stage as it should, but when I click the buttons located in the 'portfolio_page_swf' galleries are not displayed. The page "portfolio_page_swf" buttons work only if I open the file 'portfolio_page_swf' directly. The following code is used in the "portfolio_page_swf":

    var Xpos:Number = 0.0;
    var Ypos:Number = 0.0;
    var swf:MovieClip;
    var loader: Loader = new Loader();

    var defaultSWF:URLRequest = new URLRequest("galleries/gallery_print_swf.swf");

    Loader.Load (defaultSWF);
    Loader.x = Xpos;
    Loader.y = Ypos;
    this.mySWFLoadingClipGALLERY.addChild (loader);
    ////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////

    Function universal BTNS
    function btnClick(event:MouseEvent):void {}

    this.mySWFLoadingClipGALLERY.removeChild (loader);
    var newSWFRequest:URLRequest = new URLRequest ("galleries /" + event.target.name + ".swf");
    Loader.Load (newSWFRequest);
    Loader.x = Xpos;
    Loader.y = Ypos;
    this.mySWFLoadingClipGALLERY.addChild (loader);
    }
    Listeners of BTN
    gallery_print_swf.addEventListener (MouseEvent.CLICK, btnClick);
    gallery_packaging_swf.addEventListener (MouseEvent.CLICK, btnClick);
    gallery_web_swf.addEventListener (MouseEvent.CLICK, btnClick);
    gallery_video_swf.addEventListener (MouseEvent.CLICK, btnClick);
    gallery_others_swf.addEventListener (MouseEvent.CLICK, btnClick);
    gallery_logos_swf.addEventListener (MouseEvent.CLICK, btnClick);

    If anyone can help understand me this I would really appreciate. This is a very important project and the deadline is coming up very soon. Please help me understand how to load an external SWF on the main timeline and then charge an additional external swf within the first external swf. I'm puzzled.

    If I'm following the structure you describe, it's probably a problem of targeting.  If you load a swf into another swf I think the scenario is the same that if you load a swf in a web page...  The charging base is the document down the chain, which is your main swf if you test Flash (otherwise it would be so stable web page in a web page).  So when your portfolio is responsible in the hand, it's like living in the folder of the hand, so your swf portfolio should probably include sovereign wealth funds in targeting... as in...

    var defaultSWF:URLRequest = new URLRequest("swfs/galleries/gallery_print_swf.swf");

  • Load an external swf as a different size?

    Hello - it seems that it would be quite easy, but I couldn't understand the research in the Flash help documentation.

    I am using Flash CS3 and AS2.0.  I use the loadMovie function to load an external swf into an empty movieclip.  The problem is that the external swf file is bigger that the image I am load, so I would load it with specific width/height settings (essentially to load it in and resize it down).

    What would be the command loadMovie to do it with?

    Thank you!!!

    You will have to wait for the movie to load before you can change its size.  To know that the film is loaded, you want to override the method MovieClipLoader.loadClip, loadMovie.  The loadClip method supports having a similar earpiece so that you can know when the file is loaded and ready to use.  If you are looking for the MovieClipLoader.addListener method in the help documentation, there is an example that should help you through most of it.  He uses an onLoadInit event listener which is what you want to use because you have to wait as the SWF to be loaded and ready for use before trying to influence it.

  • loading an external swf that loads an object from url

    I am trying to load an external swf which in turn automatically load an object. I want the external swf will only be loaded once the object is loaded in it. for now, it loads the external SWF first, then the external swf file loads the object specified in a URL...

    exactly.  you will need a preloader that checks if your external swf finished loading its dependent objects.

  • load an external xml in an external .swf responsible

    Hello...

    I have a problem of hail (more than 100 hours of thinkwork so far!), that I can't solve:

    I want to load an external swf loaded with a dynamically loaded xml (load from my file config.xml) wire.

    < bgColor = "000000" bgHover menuItem = "Fred" fontColor = "cccccc" fontHover = "ffffff" >
    Home < title > < /title >
    < btntitle > <! [CDATA [home]] > < / btntitle >
    external SWF < linktype > < / linktype >
    ./content/SWF/home.swf < url1 > < / url1 > < - loads the external swf in the main swf - >
    ./content/XML/home.XML < url2 > < / url2 > < loads the external xml file thet is necessary in the external swf loaded in the line of top - >

    < / menuItem >

    How can I get the external xml in the external swf file as a variable for the ActionScript in the loaded swf external (so I just put the path to the script in my external swf...).

    Can someone help me out here because I'm really stuck for now...

    Thanks in advance!

    Welcome William

    the path to the xml file is relative to the html file that includes your main swf.  No matter where the swf file loaded (except for the path that you will use in your loadMovie() method etc.).

  • Need help to load an external SWF

    I'm not very proficient in Flash, so any help will be greatly appreciated. I am trying to load an external SWF with the following code:

    T1_Bttn_BloodCar.onRelease = function() {}

    (" t1_images_mc.loadMovie("images/T1_Gallery/BloodCar_SWF/T1_BloodCar.swf ");

    t1_images_mc._alpha = 0;

    It loads the SWF file, but it is not playing correctly when I test it. Here's how the loaded movie is supposed to look like:

    http://www.theroboteye.com/T1_BloodCar.html

    But instead, he plays without the transitions, like this:

    http://www.theroboteye.com/TRE2009b.html

    I tried to figure this out for a few days and have tried to add "this ._lockroot = true;" to the SWF I am trying to load, but I can't play properly. Can someone tell me what I am doing wrong? Thanks in advance.

    Try using MovieClipLoader (loadClip method) class rather than the loadMovie method.  In this way, you can have a listener who expects the movie to be loaded and then pull it in-game, by assigning actions and properties after the fact.

  • Load second external swf after the first is done?

    Hello

    I have a main movie with an empty mc to take of my swf external 2. I load the first swf file, things are fine. When it ends, I would like to load the swf file in the same vacuum mc 2nd. does anyone have a solution or direct me to a good tutorial?

    Thanks in advance.

    Pharaoh

    Here is the information that you were looking for as I put comments to help disect it. I programmed it so you can have as many movies as you want... just add them to the table and all the rest will do the job
    Replace your code with this code

  • How can I load an external SWF into a clip that is inside another video clip?

    Hello.

    I create my first flash (actionscript 3.0) Web site, but I'm stuck with a visual effect, I want to create.
    I have a window on my website called contentWindow. Whenever you click on a button, this window is supposed to leave the scene, loading the requested content and back on the scene.
    The sliding window is a clip with 83 frames, 21 to enter the stadium, 21 to leave the scene once again, 20 for anything (it's just to simulate the load time) and 21 to the back on the scene.

    Now, my goal is, when the user clicks a navigation button, the window leaves the scene, loading an external SWF with the content and then returned to the scene.

    I have the clip of 'window' with an instance name of "contentWindow". Inside there is an another film clip with an instance name of "contentLoader. The content that the user has requested must appear inside the 'contentLoader.

    Now, when the contentWindow leaves the scene, I get this error message:

    Quote:
    TypeError: Error #1009: cannot access a property or method of a null object reference.
    at rwd_fla::MainTimeline/trigger()
  • 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);

  • Content of page load during playback SWF?

    If I have a home page HTML that has an embedded SWF consisting of a preloader (for himself) at the beginning of his timeline, then a second 5 keep (no new hardware Flash) and then have a number of images on the page in an HTML < div style = "display: none;" visibility: hidden; ' >, all together with sizes from 1 x 1:

    (1) these images will load while the SWF file is playing (when it gets to the hold)?

    (2) not the SWF gets priority with the download, or images and SWF receive the same priority of download?

    (3) how would I preload a second SWF that is used in the inner page (on the start page)?  I incorporate as usual, but use the CSS display: none and set the size 1 x 1, as I do with images?

    (4) is there a better way to preload the SWF where the main SWF (splash) loops in fact then it downloads the second swf file?  Would I load this second SWF into the splash SWF on a different document map?  What commands ActionScript should I use for this?  loadMovieNum()?  Would I place the SWF second coming off the stage, or set its visibility to hidden?

    I thought I would preload some of the graphics of the internal HTML page that the visitor is brought to after the Flash page initial interface/common.  Even without a preloader that would loop until everything is loaded, I thought I might have just the start page hold a bit and give the hidden pictures < div > a chance to load in the background.  Of course, using this method does not guarantee that all imags load, since it is unattended, but would give them at least a bit of a head start.

    Comments/suggestions?

    Yes, it written in AS3 would be much easier to maintain and certainly more structured.

    To download an external image from a screen flash is very simple:

    Please check this page d() http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/net/URLLoader.html#loa help and Yes you would know how much is responsible for the image that

    http://www.Adobe.com/LiveDocs/Flash/9.0/ActionScriptLangRefV3/Flash/NET/URLLoader.html#Byt esLoaded

    There are a lot of tutorials on the net that allows you to load an image:

    http://www.Kirupa.com/developer/FlashCS3/loading_image_as3_pg1.htm

    the above is one of them.

    In addition, you can use the Loader class to load a swf, images etc.

    Please check this http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/display/Loader.html

    And Yes, you can load a swf file and not show it on the screen. The SWF would only go after affecting the content of the SWF download to a movieclip and add this on the stage using movieclip.addChild (loadedswfdata).

    Here's a simple tutorial to load a swf file: http://www.iheartactionscript.com/loading-an-external-swf-in-as3/

    Hope this helps

    Knockaert

  • Loading the local swf files in Dir Application (ios)

    Hi guys,.

    I want to load additional local swf files for my ios Release version but I'm a bit confused because of changes in the API again.

    As far as I know at the moment (3.7 Air or newer), it is permitted to load local swf files containing actionscript compiled from local file and a remote host that is predefined as well.

    My assumption, based on this article:

    http://blogs.Adobe.com/airodynamics/2013/03/08/external-hosting-of-secondary-SWFs-for-air-apps on ios.

    I created the text file to include all my names swf local and created the next node in the application.xml file:

    < iPhone >

    .

    < externalSwfs > assets/SampleSWFInfoFile.txt < / externalSwfs >

    .

    < / iPhone >

    When I compile the release build (ipa) using the adt command line, it converts all my local SWF files in naked sovereign wealth funds which is perfect, but even if I include all SWFs in the compiler command, it takes only the SampleSWFInfoFile.txt file in the current folder in the ipa, but not swf files.

    I guess, he thinks I have will load these files from an external host, but I want to include them in the application itself.

    I tried to copy files swf stripped in the externalStrippedSwfs folder and comment on the assets/SampleSWFInfoFile.txt < externalSwfs > < / externalSwfs > node application.xml and he and this way, he puts the SWFs in the ipa, but when I try to install and launch the application, it hangs and when I test it using Flash Builder he displays a compilation error message

    «VerifyError: Error #1042: not an ABC file.»

    Anyone of you guys know the solution to this problem?

    Thank you in advance for your help!

    You are the publication in AOT mode as long as you use one of these:

    The AIR Developer Tool ADT a target that allows you to package applications or for the mode of the AOT or interpreter. Targets for packaging in AOT mode are ipa-app-store, ipa-ad-hoc, ipa-test and debugging of the ipa.

    Flash CS6 Pro and Flash Builder automate this process well enough so it's invisible, but the SWF file loads and runs the code very well for me when directly published.

    If I take it on the command line, I can use this to compile successfully (test iPad application):

    ADT-package - target the ipa-ad-hoc - stores pkcs12 - keystore my.p12 - implementation service-profile my.mobileprovision NameOfApp.ipa NameOfApp - app.xml iTunesArtwork SWF/SWF/GenerateText.swf swfs.txt AppIconsForPublish iTunesArtwork@2x NameOfApp.swf

    I include at a minimum the generic icons in there, but I did a "SWF" folder and placed "swfs.txt" and "GenerateText.swf" there. The SWF file uses code to generate random text and change every second using a timer. I load using the same code as you do with the context ApplicationDomain.currentDomain. I see appear the SWF file and text begin to change randomly.

    As I compile there is a generated file called 'externalStrippedSwfs' with the stripped in that SWF.

    One thing to note is that I provide no SWF/swfs.txt in my settings of the iPhone. If I do that it does not. I provide the path to the text file containing the SWF I want be stripped to adt itself as well as funds sovereign I want stripped and he takes care of the rest.

  • loading an external movie clip

    Hi team,

    Last time I tried to load an external clip I could do it like this

    on (release) {}

    unloadMovieNum (1);

    loadMovieNum("whatever.swf",1);

    }

    So now I want to achieve exactly the same in AS3

    I looked at the examples on the web but do me all kinds of errors, and basically don't know what I'm doing.  I also want to know how to navigate to files .swf in a file structure, as I have to build a structure of fscommand old school for a cd-rom file.

    Any help is greatly appreciated.

    See you soon,.

    Void

    Hey it worked guys!

    var myLoader:Loader = new Loader();                     Create a new instance of the Loader class

    var url: URLRequest = new URLRequest ("whatever.swf"); in this case, the two sovereigns are in the same folder

    myLoader.load (url);                                     load the SWF file

    addChild (myLoader);                                     Add this instance to the display list, adding to the stage at 0,0

    But now I need to know... How I've unloaded it?

    See you soon

    void

Maybe you are looking for

  • In my iTunes, I click on ITUNES STORE, the store open in iTunes.

    I have a Windows 7 OS where I run my iTunes. It is up to date (itunes and OS) and worked fine, but suddenly two days ago, when I click on the SHOP, the pages are suddenly more grand, so great that I can't the sidebars. And the fonts are larger when I

  • HP Mini laptop Bios Reset

    My HP Mini is saying "password check failed fatal error... System stopped.  code CNU8470S1N please help!

  • EliteBook 8460p: HP EliteBook p 8460 - last ProtectTools version where is it?

    Hello Does anyone have the link to download the latest version of the tools of protection for Elitebook 8460p? Thank you!

  • Text "Toolbar_log" file

    Defragment my hard disk, this file shows as being 27 GB and cannot be defragmented.  ISN kanoakavirus necessary file or can it be deleted without problem?

  • Conversion of DAQ_Op

    Hello In my application for data acquisition (6013) I, read the data using DAQ_Op() Currently I've reimplemented with DAQmx. I created a channel analog voltage and read data using DAQmxReadAnalogF6. But I don't get the same data as in DAQ_Op (in the