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.

Tags: Adobe Animate

Similar Questions

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

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

  • How to switch between multiple windows in the same application?

    Hello

    I use OS X Capitan version 10.11.13 and I'm trying to find an easy way to switch between multiple windows in the same application by using CTRL + alt or different keys.

    Here is what I feel...

    Let's say I have Outlook, Google Chrome, Safari, iTunes and apps 'about this Mac' open.

    I open the new message window in Outlook and another Chrome window. I have therefore 2 separate windows in Outlook and Chrome.

    With that, I'm unable to move the composition and the window main outlook which is so annoying. Let's say I want to read the emails by the prospect main window and transfer of the content of the compose window! The command + tab doesn't take me to the main window of Microsoft outlook! Even if there were the last visited / applications window. This constraint is not intuitive, unless it can be configured in the settings?

    Strangely, I can't switch to the "about this Mac" window.

    The work around is to use the function (F3) mission button and click on the window, that I want to use or click the "Outlook" application on the dock icon and choose the window in the list.

    Does anyone know how switch between different windows in the same application by using a key combination or one another method other than listed above?

    Thank you

    Avinash

    In general, an Application that can open multiple windows provides a "Windows menu" you can choose the window you want.

  • I want to restore switch between windows and display the desktop icon

    a few days before these two icons was actually on the task bar and now I have deleted how restore it back
    (switch between windows and display the desktop icon)

    Hello

    Copy the new:

    C:\Users\Default\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch

    To your user account to:

    C:\Users\launch of \AppData\Roaming\Microsoft\Internet Explorer\Quick

    Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • lost the "switch between windows" button on the Quick Launch toolbar

    Hi, I lost the "switch between windows" button of the toolbar quick launch, how can I restore it?

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Dasepo salvation,

    Here are the instructions for the program shortcut "switch between windows" returned the fell on the Quick Launch toolbar:

    First of all, make sure you that you must show hidden files and folders active. Here's how:

    Go to: Start/Control Panel folder Options/configuration and select the 'view' tab select "Show hidden folders and files under the section files and folders hidden from advanced settings".

    Then you can get the file from quicklaunch default section. This location of file is here:

    C:\Users\Default\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch

    You can paste this link into the search bar (Ctrl-Esc). When you get to this place, you will find the 'switch between client.lnk' which you can then drag directly to the Windows Orb and it going bust in the Quick Launch bar.

    Hope this helps,

    Steve <> Microsoft Partner

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

  • Control loaded swf on the main timeline

    Hello

    I'm working on loading external swf files for ios. I am able to load swf files and assembled visible or invisible in different settings. I have trouble controlling the swf files loaded on the main timeline. Specifically, I would like to have a button on the main timeline, that when you click on will move a swf loaded to frame 1.

    Here is a code that loads a swf file:

    var myLoader1:Loader;

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

    if(myLoader1 == null)

    {

    myLoader1 = new Loader();

    addChild (myLoader1);

    }

    myLoader1.load (new URLRequest("folder/file1.swf"), loaderContext1);

    myLoader1.visible = true;

    backbutton.addEventListener (MouseEvent.MOUSE_DOWN, backbutton1);

    function backbutton1(myEvent:MouseEvent):void {? myLoader1.gotoAndStop (1) ;}}  (this line does not work)

    (Once I load file1.swf, in the file1.swf I click a next button to move on to different periods.) My question is: hHow do I code the "backbutton" on the main timeline so that it causes the file1.swf to go to frame 1?)

    Thank you for your help.

    After loading is complete (and assuming that you load an as3 swf), you can use:

    MovieClip (myLoader1.content) .gotoAndStop (1);

  • Lack an external SWF in the projection file... help appreciated.

    I created a press kit in Flash Catalyst that contains an mp3 player in the form of a SWF file. When I publish the catalyst project (run locally and deploy-to-web) mp3 player works perfectly. When I opened it the Main.swf in Flash Player, it works perfectly. When I create a file of projection (from Flash Player) the external swf (mp3 player) is missing.

    Any help on this would be greatly appreciated.

    Mick

    Flash Catalyst does not incorporate the .swf file, then it must be present as well as your projection file in order to function properly.

    Try to place the projection file in the local copy of race and see if she works there. If this is the case, make sure that you copy the current folder wherever you place the final projection file.

    -Bear

  • How do I switch between document windows in the new Acrobat Reader ms?  (Mac desktop running Yosemite.)

    Y at - it a keyboard shortcut to switch between documents on the new domain controller Acrobat Reader?  I think that it used to function-Tab.  This no longer works.

    Thank you, abhissha, but that alternate between different applications on the desktop open.

    I found the correct answer, however, which I believe is the same as it used to be (how I missed originally, I don't know):

    Control + Tab to move between open documents in Acrobat.

    Thank you.

  • Switch between files and change the window using f8 - Dreamweaver CS 6

    In Dreamweaver CS 2, I could switch between files and windows edition with the f8 key. Dreamweaver CS 6, this doesn't seem to work. Is there a way I can put it so that I can switch between the 2 windows with a keyboard shortcut?

    Hello stilley,.

    I'm now working with DW CC, so I can only show you how to work with it, but I'm sure it's the same way:

    In my German DW:

    Bearbeiten > Tastaturbefehle > screenshot > files > Kurzbefehle +-taste press > change > Ok.

    Translated something like:

    Edition > keyboard shortcuts > screenshot

    > Files > shortcuts + - press > edit > Ok.

    Good luck!

    Hans-Günter

  • 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

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

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

  • Its inhibition in a loaded swf to the main swf

    I have a swf file that I'm loading and I need to be able to cut the sound of these soundChannels in the keyframes inside the other swf file.

    I have a mute button that I am activating / deactivating its visibility on and outside, one for a mute for the sound. I need to be able to access the audio clip in the external swf file. Any ideas?

    Thanks in advance.

    the best way to proceed is to use the correct path/name to your sound instance.  a popular sloppier way to use:

    SoundMixer.stopAll ();

Maybe you are looking for

  • ACPI/ENE0100 driver for Windows 7 (64 bit) on laptop HP Pavilion dv7 - 2177cl

    I just reinstalled Windows 7 (64-bit) on my HP Pavilion dv7 - 2177cl Entertainment Notebook PC and I have an unknown device, left, value ACPI\ENE0100. Research I've done shows that that's probably the battery, but there is no driver battery for my ma

  • Alienware M17x R4 HDMI-IN works only on Windows 8.1

    Hi, I have a R4 M17x and tried to use my Xbox 360 with HDMI-IN but it works only for a second then goes black but the sound still works. I Googled it and the only thing I could find is that apparently it doesn't properly earn 8.1? Any other R4 M17x o

  • Scratch disk - change permanently

    Hellocan anyone tell how to change my main drive of allocated work permanently?every time I have change and restart or start my computer it's always back to HD by default "mactintosh. I don't want to hold "command + alt" whenever I start ps, also I h

  • spatial index

    I have a spatial table with an index on the geometry column.If I truncate the spatial table and then insert new spatial data into the table I have to delete and then recreate the spatial index?

  • scriptUI

    PremierePro does support ScriptUI?As the use of the AlertBoxBuilder1.jsx.Try to find a way for a user to a special group enter a value after the ExtendScript runs.Thank youKelly