How to speak with mcs external swf to the main fla file

Hello

I have a main fla file that loads an external swf into a holder mc, let's call it "swfloaderholder", when you click a menu item.

Inside the external swf fla, I have a mc holder, call it, 'jpgloaderholder' that loads different JPEG files.

Is there a way to "talk" to the "jpgloaderholder" since the main FLA to breast?

Thank you

R

I can go below, and it will be probably more useful to you if you show the code that you use for the charger.

You must wait until the file is loaded before you try...

MovieClip (yourLoader.content) .gotoAndStop (someFrame);

Tags: Adobe Animate

Similar Questions

  • Switching between external .swfs in the main

    Hello I have a project where I'm loading external .swfs in my main stage.  However at the end of my external .swfs I want to return to the first image of my main .swf.  I used this code MovieClip (root) .gotoAndPlay ("start"); but I get this error

    ArgumentError: Error #2109: frame the beginning label not found in scene 1 scene.

    and I understand why I get the error because the start of frame label is not in this file external flash, it is in the a main. However, I don't know the correct AS3 so that it works correctly. If anyone has any ideas, it would be greatly appreciated. I tried looking for a bit of code, but he could not find sorry!

    Thanks in advance,

    Aaron

    If you use the code on a timeline of movieclip (and this movieclip is on the main timeline of the external swf file), use:

    MovieClip (this.parent.parent.parent) .gotoAndPlay ("start");

    PS you can save this fla, and publish a swf from this fla file, but you can not 'test' this fla as a stand-alone.  you will test after loading in another swf.

  • change the original size of external swf in the main sequence

    I have an external swf that loads into my main movie using loadMovie. The original .swf that is loading is greater than what I would like to appear in the main movie. Is it possible to say the clip that externally is charged in, to reduce the size of the loaded .swf?

    any input?

    Yes, you can set the _xscale and _yscale of clip that you load. If you know the percentage you can just hardcode it... If you don't need to wait until the external swf file is fully charged and then check its _width and _height and discover how much will have to resize it you.

    I advise to use the MovieClipLoader class instead of loadMovie. It has nice events who will tell you when the file is loaded.

  • Delete / external swf or the files in the flash file main to unload and load a new swf file and memory garbage collection.

    I can't delete / unload the example swf files external when the carousel.swf (portfolio) appears and press the button about the content overlaps the carousel (portfolio). How can I delete / unload an external swf file in the main flash file and load a SWF, so that at the same time remove garbage collection memory operation?

    This is the error messages I receive: "TypeError: Error #2007: child parameter must be non null.»

    at flash.display::DisplayObjectContainer/removeChild()

    " to index_fla::MainTimeline/Down3().

    Import nl.demonsters.debugger.MonsterDebugger;

    var d: MonsterDebugger = new MonsterDebugger (this);

    stage.scaleMode = StageScaleMode.NO_SCALE;

    internship. Align = StageAlign.TOP_LEFT;

    stage.addEventListener (Event.RESIZE, resizeHandler);

    is the charger for the portfolio page swf

    var loader: Loader;

    var loader2:Loader;

    var loader3:Loader;

    var loader1:Loader;

    resize the content

    function resizeHandler(event:Event):void {}

    resizes the portfolio page to Center

    Loader.x = (stage.stageWidth - loader.width) *. 5;

    Loader.y = (stage.stageHeight - loader.height) *. 5;

    resizes on page to Center

    loader3.x = (stage.stageWidth - 482) *.5 - 260;

    loader3.y = (stage.stageHeight - 492) *.5 - 140;

    * loader2.x = (stage.stageWidth - 658.65) *. 5;

    loader2.y = (stage.stageHeight - 551.45) *. 5; * /

    }

    addEventListener (Event.ENTER_FRAME, onEnterFrame, false, 0, true);

    function onEnterFrame(ev:Event):void {}

    var requesterb:URLRequest = new URLRequest ("carouselLoader.swf");

    Charger = null;

    loader = new Loader();

    Loader.Name = "carousel1.

    Adds gallery.swf in the scene at the beginning of the film

    loader.contentLoaderInfo.addEventListener (IOErrorEvent.IO_ERROR, ioError);

    function ioError(event:IOErrorEvent):void {}

    trace (Event);

    }

    try {}

    Loader.Load (requesterb);

    } catch (SecurityError: error) {}

    trace (Error);

    }

    addChild (loader);

    Loader.x = (stage.stageWidth - 739) *. 5;

    Loader.y = (stage.stageHeight - 500) *. 5;

    stopover gallery.swf duplication and more on enter frame

    removeEventListener (Event.ENTER_FRAME, onEnterFrame);

    }

    PORTFOLIO BUTTON

    Add eventlistner so that gallery.swf can be loaded

    MovieClip (root),.nav.portfolio.addEventListener (MouseEvent.MOUSE_DOWN, down, false, 0, true);

    function Down(event:MouseEvent):void {}

    Re add listener for contact.swf and about.swf

    MovieClip (root).nav.info.addEventListener (MouseEvent.MOUSE_DOWN, Down1, false, 0, true);

    MovieClip (root).nav.about.addEventListener (MouseEvent.MOUSE_DOWN, Down3, false, 0, true);

    discharge of entry gallery.swf frame if users press portfolio in nav button

    var applicant: URLRequest = new URLRequest ("carouselLoader.swf");

    Charger = null;

    loader = new Loader();

    Loader.Name = "carousel."

    loader.contentLoaderInfo.addEventListener (IOErrorEvent.IO_ERROR, ioError);

    function ioError(event:IOErrorEvent):void {}

    trace (Event);

    }

    try {}

    Loader.Load (requester);

    } catch (SecurityError: error) {}

    trace (Error);

    }

    addChild (loader);

    Loader.x = (stage.stageWidth - 739) *. 5;

    Loader.y = (stage.stageHeight - 500) *. 5;

    removeChild (getChildByName ("about"));

    removeChild (getChildByName ("carousel1"));

    delete eventlistner and prevents duplication of the gallery.swf

    MovieClip (root).nav.portfolio.removeEventListener (MouseEvent.MOUSE_DOWN, down);

    }

    INFORMATION BUTTON

    Add eventlistner so that info.swf can be loaded

    MovieClip (root).nav.info.addEventListener (MouseEvent.MOUSE_DOWN, Down1, false, 0, true);

    function Down1(event:MouseEvent):void {}

    This adds the EventListener for portfolio so that the end user can re-post if they wish.

    MovieClip (root),.nav.portfolio.addEventListener (MouseEvent.MOUSE_DOWN, down, false, 0, true);

    MovieClip (root).nav.about.addEventListener (MouseEvent.MOUSE_DOWN, Down3, false, 0, true);

    var applicant: URLRequest = new URLRequest ("contactLoader.swf");

    loader2 = null;

    loader2 = new Loader();

    loader2. Name = "contact".

    loader2.contentLoaderInfo.addEventListener (IOErrorEvent.IO_ERROR, ioError);

    function ioError(event:IOErrorEvent):void {}

    trace (Event);

    }

    try {}

    loader2. Load (requester);

    } catch (SecurityError: error) {}

    trace (Error);

    }

    addChild (loader2);

    loader2.x = (stage.stageWidth - 658.65) *. 5;

    loader2.y = (stage.stageHeight - 551.45) *. 5;

    delete eventlistner and prevents duplication of the info.swf

    MovieClip (root).nav.info.removeEventListener (MouseEvent.MOUSE_DOWN, Down1);

    }

    ON THE BUTTON

    Add eventlistner so that info.swf can be loaded

    MovieClip (root).nav.about.addEventListener (MouseEvent.MOUSE_DOWN, Down3, false, 0, true);

    function Down3(event:MouseEvent):void {}

    This adds the EventListener for portfolio so that the end user can re-post if they wish.

    MovieClip (root),.nav.portfolio.addEventListener (MouseEvent.MOUSE_DOWN, down, false, 0, true);

    MovieClip (root).nav.info.addEventListener (MouseEvent.MOUSE_DOWN, Down1, false, 0, true);

    var applicant: URLRequest = new URLRequest ("aboutLoader.swf");

    loader3 = null;

    loader3 = new Loader();

    loader3. Name = "a connection"

    loader3.contentLoaderInfo.addEventListener (IOErrorEvent.IO_ERROR, ioError);

    function ioError(event:IOErrorEvent):void {}

    trace (Event);

    }

    try {}

    loader3. Load (requester);

    } catch (SecurityError: error) {}

    trace (Error);

    }

    addChild (loader3);

    loader3.x = (stage.stageWidth - 482) *.5 - 260;

    loader3.y = (stage.stageHeight - 492) *.5 - 140;

    removeChild (getChildByName ("carousel"));

    removeChild (getChildByName ("carousel1"));

    delete eventlistner and prevents duplication of the info.swf

    MovieClip (root).nav.about.removeEventListener (MouseEvent.MOUSE_DOWN, Down3);

    }

    Stop();

    You call unload() on objects that you cancelled - where the error.

    You should do something like:

    {if (loader2)}

    loader2. Unload();

    }

    As for the null value passed into the function - null is a default value. In this way, you can call the low past nothing:

    Down()

    Or you can use it as a handler in which case it will be called by the Auditor:

    Down (mouseEventInstnace);

  • Help with insert or import swf file in the model of the open fla file

    Can someone show me how insert or import a swf file in the template fla file.

    I have a FLA open temple and after importing a SWF file, run the test and the swf file does not work.

    Did I miss something?

    Thank you

    Import a swf in a fla is not the way to get to each other.  Any actionscript in a swf file is lost.  You need to load the file swf dynamically either or you must copy the timeline of the FLA that the swf is made from to the other fla.

  • How to pass parameters to external swf with the loader?

    Hello everyone

    I am loading an external swf file using the charger. It's a pdf file converted to swf format.

    How do I pass parameters to the file so that I can highlight certain words in the file?

    Thank you

    Hello everyone

    I solved this problem.

    Thank you

  • Problem with loading external swf files

    Hello

    I am currently working on a project which is an interactive and dynamic elemtry school presentation to the Denmark. I finished my project and it works perfectly, but only locally on my computer.

    The final draft should be implemented on the site and public work. I tried to implement the project on the site and unfortunately, it does not work as expected.

    When all the files where transferred to the ftp server, only a single files are responding and appear correctly.

    Interactivity of the project is based on a structure of Action script, which is based on the smooth transition between swf files (load another swf file after the action is triggered by clicking on a button) do any work.

    After days of trying to figure out the solution, I'm totally lost. One thing is to publish the project so that all action script will work and answer between swf files, and the other thing is to make it user-friendly for the Android and apple products.

    The presentation is quite heavy because of its loading external swf content files, which are images and movies.

    I really hope you can help me with my problem. I will gladly share the files and codes if it would help solve the problem.

    Best regards

    Agata

    It could be a problem of location of file from loading.  When you place a swf file in an HTML base for targeting anything that the SWF load becomes the folder of the html page.  You may need to adjust the target so that the target of swf files, load it as if it were in the same folder as the html page.

  • How to unload this external .swf from the timeline?

    OK, so I found out how to get the external .swf in my parent using this code.

    function wordbookopen(event:MouseEvent):void

    {

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

    var url: URLRequest = new URLRequest ("SB_wordbook.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

    dictionaryhome. Visible = true;

    alwayshome. Visible = false;

    backBT.visible = false;

    nextBT.visible = false;

    WB.visible = false;

    }

    Now, I want to delete using another button

    dictionaryhome.addEventListener (MouseEvent.CLICK, wordbookclose);

    function wordbookclose(event:MouseEvent):void

    {

    ???????????????????????

    }

    Whenever I try to use the variable myLoader it says access of undefined myLoader property

    I can put a blister on it so this is...  Please help, I think it's the last ACE # obstacle that I have before I can actually start doing some work!

    See you soon

    Well it worked!

    I used code snippets to get stuff inside and out and modified to work on two separate buttons! JOY m :)

  • 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()
  • Satellite A300-19 q - how to start with an external USB drive

    Hi all!

    I have a (old) TOSHIBA Satellite A300-19 q bought in 2008. I wanted to do a clean install of Windows 7 by reformatting my HD. The problem is that my internal DVD drive no longer works. So I tried to boot from the Windows 7 DVD installation with an external USB drive.
    Unfortunately, I couldn't find a way to boot from USB devices in my BIOS options.
    My BIOS is up to date (version 4.20) from Toshiba Web site.

    So I was wondering, does anyone know if the A300-19 q can boot from USB devices?

    Thank you in advance.

    I have A300 at home but I never tried to start with an external USB device.
    Start your laptop and press F12 to get into the boot menu. There must be USB option. What happen when you try to use it?

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

  • How can I load an external .swf into my step by pressing a button?

    Hello world...

    I have to add an external swf in a specific position in my scene by pushing a button.

    Comeon can help me?

    Thank you.

    using as3, assuming you have a button named "myButton":

    var myLoader:Loader = new Loader(); something to load the swf file

    myButton.addEventListener (MouseEvent.CLICK, loadSWF); Earphone for your button click

    function loadSWF(event:MouseEvent):void {}

    listener for when the charge is complete

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

    load the SWF - using your url of course

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

    }

    function addSWF(event:Event):void {}

    var mySwf = myLoader.content; the thing charge charger

    mySwf.x = 100; anywhere in x

    mySwf.y = 100; anywhere in there

    addChild (mySwf); Add it to the stage

    }

    HTH,

    -Ted

  • Try to use the capabilities of the Web from TOSHIBA camera with an external device via the USB port.

    Toshiba Web Camera software that came with my new Qosmio X 505 - Q880 is very useful, and I would use it to take pictures with an external camera connected by a USB cable (camera is a Kodak DC290, in case this is useful).  Is it possible to use the webcam with anything other than Toshiba built in webcam?  Now that I'm typing this, it seems a question more appropriate for the Toshiba site, but I guess I'll try here first.

    Toshiba Software is for Toshiba hardware.

    Go to the Kodak Web site and are looking for software for your Kodak camera.

    Or as you say, ask Toshiba.

    See you soon.

    Mick Murphy - Microsoft partner

  • Updating ESX 3i 5 - how add/detect a USB external storage on the host drive

    I guess that this has been asked several times in the past, but I can't seem to get this to work for me.  All I want to do is use this USB external drive to back up files hard find in my volume of "datastore1".  I would like to implement a script, or even do it manually, where I tell you about my ESXi host just copy the files in VMFS volume in the external USB storage drive.

    My physical server is a Dell PowerEdge 2950, and it uses ESX 3i update 5.  I use a 250 GB Maxtor One Touch II USB external storage device, and it has been formatted with NTFS.

    Currently, I don't even know the controls able to detect this USB device.   I read only so that my drive to be recognized by the host, it must be ext3 or FAT32.  NTFS would be 'read only '.  I was hoping I could format the external drive through the ESXi (by command line), but maybe I'm deceiving myself.

    Thanks in advance

    I'm sorry to say that you are trying is not possible - external USB are not usable by ESXi or ESX =

    If you find this or any other answer useful please consider awarding points marking the answer correct or useful

  • External SWF in the iPhone

    Due to the large size of my FLA file I had to chop it up to a few bit-size files and use the option to SWF external to dynamically load sections of my application (rep Adobe said I can't exceed 180 MB in my FLA file..). So this all works on my pc but when I download on the phone, that the sovereign funds are not loading.

    I use this code:

    var myFireLoader:Loader = new Loader();

    var urlFire:URLRequest = new URLRequest ("External.swf");

    myFireLoader.load (urlFire);

    addChildAt (myFireLoader, 0);

    And included swf files in the dialog box post. Am I missing something?

    Thank you

    Dani

    It's just a thing of iOS. OK, it would work on Android.

Maybe you are looking for

  • Qosmio F60-10 q: difference between PQF65E-00J01DG3 and PQF65E-00J01NR3

    Hello. I'm from Romania and I buy a new laptop Toshiba Qosmio F60 - 10 q. I order a F60 10 q incl. PQF65E-00J01NR3 catalogue and I recived F60 10 q with catalog no.: PQF65E-00J01DG3. I want to know what is the difference of all to this modells 2 lapt

  • Touchpad locked on all new Qosmio X 70 - A

    I bought a brand new Qosmio X-70 which arrived yesterday. Everything was fine until today, I was typing something and just locked touchpad - fire came at the top left, and that's all. I changed the settings and Fn & F9 release did nothing. I turned o

  • Satellite P200-1EE: How can I activate my Bluetooth

    How can I activate my bluetooth on I don't can't find it.I have BT on the bottom of my laptop and it's also on the box, but I can't find it. Any help would be greatly appreciated.

  • No sound on my Satellite after replacing HARD drive.

    I recently got a new hard drive on my PC, but there is now no sound system in the computer.I guess I need to install drivers? What drivers do I need and how to install? Thank you.

  • movie maker missing a codec burn a video

    The file C:\Documents and Settings\Barb\My Documents\Vuze Downloads\The King of the speech [2010] DVDRip-MXMG\The King of speech [2010] DVDRip - MXMG.avi cannot be imported because the codec required to play the file is not installed on your computer