Unloading of an external SWF that is loaded with a close button on the external SWF to unload

I found a discussion on this topic, but I still have problems to work and was hoping to get some help here.

Here, I have a file: http://www.dril-quip.com/test/main.swf

I: main.swf (menu) and I module.swf (content)

If you go to the wellhead systems/SS-15 BigBore II submarine and click on I have to load an external swf which covers most of the parent company.

So far so good. My problem drains the loaded swf to 'Child' with the button provided on the loaded swf to 'Child'.

Here is the code that I used to upload the file but I can't, for the life of me, find a way to unload.

var bigboreLoader:Loader = new Loader();
btnbb2.addEventListener (MouseEvent.MOUSE_UP, bigborecontent);

function bigborecontent(event:MouseEvent):void {}
var bigboreRequest:URLRequest = new URLRequest ("moduletemplate.swf");

bigboreLoader.load (bigboreRequest);
stage.addChild (bigboreLoader);

I am sure that it requires the child to communicate with the parent somehow, but I'm at a loss. If I could get a bit of advice or a link to something to deal with this, it would be a great help. I just need to have my links loading my modules and remove it when the narrow buttong is struck on the loaded swf file. I promise you that I did some research and I confess that I found asnwers, but still they do not work. I found the code below:

Main FLA:

function removeF() {}

removeChild (bigboreLoader);

}

var bigboreLoader:Loader = new Loader();
btnbb2.addEventListener (MouseEvent.MOUSE_UP, bigborecontent);

function bigborecontent(event:MouseEvent):void {}
var bigboreRequest:URLRequest = new URLRequest ("moduletemplate.swf");

bigboreLoader.load (bigboreRequest);
stage.addChild (bigboreLoader);

EXTERNAL FLA:

btnClose2.addEventListener (MouseEvent.CLICK, bigborecontent);

function bigborecontent(myevent:MouseEvent):void {}

MovieClip (parent.parent) .removeF ();

}

I think I have a poor understanding of the code. Thanks for any help you might be able to provide.

again, this code should all be on the same timeline as btnbb2. in main.fla.

var bigboreLoader:Loader = new Loader();
btnbb2.addEventListener (MouseEvent.MOUSE_UP, bigborecontent);


function bigborecontent(event:MouseEvent):void {}
var bigboreRequest:URLRequest = new URLRequest ("moduletemplate.swf");
bigboreLoader.load (bigboreRequest);
addChild (bigboreLoader);

}

function removeF() {}

removeChild (bigboreLoader);

}

/////////////////////// end main.fla code ///////////////////////////////////////

This code should all be on the main timeline in FLA EXTERNAL.

and btnClose2 should be placed on the main timeline in your external fla. //

btnClose2.addEventListener (MouseEvent.CLICK, bigborecontent);

function bigborecontent(myevent:MouseEvent):void {}

MovieClip (parent.parent) .removeF ();

}

end external fla code.

Tags: Adobe Animate

Similar Questions

  • I don't have the basic games that windows comes with and also miss me the contacts and calendar. Please help someone. I had windows 7 through my school, which is outside the MSDN program.

    I don't have the basic games that windows comes with and also miss me the contacts and calendar.  Please help someone.  I had windows 7 through my school, which is outside the MSDN program.

    Programs like Contacts and calendar are available in Windows Live Mail through Windows Live Essentials (http://download.live.com)

    In regards to the games, I assume that you are running Windows 7 Professional.

    Click Start, type: features on or off Windows activate
    Develop games
    Select the games you want. Andre Da Costa http://adacosta.spaces.live.com http://www.activewin.com

  • I have one membership year for cloud creative after that I got with my update, but recently the other day, it changed all my applications of trial versions. How to return to my membership and demo of the apps?

    I have one membership year for cloud creative after that I got with my update, but recently the other day, it changed all my applications of trial versions. How to return to my membership and demo of the apps?

    Check that your current account (and only the adobe, used in the next step id is good) by logging in here and check the status of your subscription, https://www.adobe.com/account.html

    then, if it's current, disconnect and then back to your client application using the adobe with the link above in cc id: http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

    If this fails to solve the problem, Cloud Creative applications back in test mode after an update until 2015 for CC

  • the emails that I receive with attachments are displayed at the top of my Inbox and all others appear at the bottom; How can I gat all my emails appear in the order?

    When I receive e-mails with attachments, they appear at the top of the Inbox that is to say that they are the first to read. Those with some appear at the bottom of the Inbox. As a result, I have to search up and down the Inbox to make sure that I read all the emails that I receive. Is it possible that I can get all the e-mails appear in the Inbox, because they are received if they or a piece attached or not?

    Well click on the heading date and change the sort order to this day. Click again to reverse it.

  • Images not be loading not or that they load with errors.

    I bought a new pc a few weeks there, since then images do not load correctly or not loading not. Most of the time, it happens with images hosted on imgur.com but happened a few times with other hosts too.

    It seems to be a Firefox problem, because the images appear fine on Chrome & IE. Also, it's weird because sometimes I can't see a picture, but if I try a few hours later I can see perfectly.

    A few examples, the original and how I see them:

    http://i.imgur.com/fgxY56P.jpg
    http://i.imgur.com/5r5ELRN.png
    
    http://i.imgur.com/JWsLLTu.jpg
    http://i.imgur.com/b8FNb1N.png
    
    http://i.imgur.com/SIIfgVc.jpg
    http://i.imgur.com/wo2FbUT.png
    
    http://imgur.com/gallery/3ULJn
    http://i.imgur.com/e3pta66.gif

    I tried to disable all the addons, but I always get errors. I use Firefox on Win7 Ultimate SP1 x 64 28.0.
    Excuse my bad English and thanks in advance.

    Hello
    Please read this article to help resolve the problems that cause to not show images

  • I have synced to move them all to a new computer, but after that I moved with success, when I removed the old one and I forgot to cancel the synchronization it cleaned my other.

    I moved successfully my info, Favorites, etc., for a new laptop computer with synchronization, but when I cleaned all my info from my old internet computer to offshore and forgot to cancel synchronization, and then synchronized and cleaned my other. Help! Can I get my favorites and other things back?

    I understand very well and it is difficult for me to say, but you can't get anything back - because there is that nothing more, at least not on Mozilla servers.

  • HP says that my problem with 6520 is because of the Wi - Fi connection

    I bought my HP e-6520 in March and it worked perfectly for the first 4 to 6 weeks. Then he started to "wake up" mode 'sleep' on its own, and it happens at least once per hour. I have been in email communication with Support HP try several things, none worked. It got to the point that support HP told me that I should now call and talk to someone. So I called and was told to check several things, which most had done SEVERAL times via email to support. They had me do some sort of reset and said they would call the next day to see if that helped, who wasn't half. I got this call, as it was planned, and talked with this support person that I transferred to a supervisor of material. This supervisot then told me that I have is because the printer is connected wireless to my computer and then she hung up on me. Personally, I think that HP gives me the run around in the hope that they can delay until the printer is out of warranty and I have no luck.

    Everyone knows the question with their printer 'waking up' on its own without reason?

    Hi jscott.

    I just discovered your problem with your Photosmart 6520 wake up.

    I understand you've been starting with Ciara and I see her looking into that for you. However, I have dealt with this same situation, the other day and I recommend trying a few things to fix this.

    If it please see my post in this link and follow the steps that I have the list here: Photosmart 6520 wake up

    I hope this helps!

  • Recently, I had to create a new user profile on my computer and am currently loaded with my accounting software of the migration to the new profile.

    I am hoping there is a simpler alternative to migrate my work in lightroom, as if it were a new computer.  The paths are the same.

    I am a little disappointed because I thought at the very least, to logging into the software would reach out to the cloud and find my complete collections.

    After all, I can view on my mobile.

    In any case, I just want to get my work without having to do another import.   There must be a reason behind these weekly backups right?  Is there a way to recover them?

    Hi moto66,

    Greetings.

    What version of LR you use.

    You need to transfer your catalog and images on the new user account.

    Once you have all the images and catalogue on this new user account, given correctly, related images you should be able to see your collections.

    And also make sure that there is no broken in the catalog and images link, if this link to find missing persons of the images while transferring data to a new user account use

    Concerning

    Rohit

  • help with the menu button and the film load

    Hi all... I am very new to flash and actionscripting and I am self-taught using mainly Internet searches.
    I'm building a site with a menu and a banner that is controlled by the menu (two swf files). I got to the make contact however, I'm stuck at this point.
    When 'bt_1' is hit I would like to be respected a "mv_1" to load in the banner.swf with intro animation... this I figured out how to... but now when you click on "bt_2" I want to play the rest of the animation of "mv_1" to unload the film before loading "mv_2" with its animation enterance respected... that I would make to several buttons. The method that I use for my local connection is...

    Sending script
    mySender = new LocalConnection();
    on (release) {}
    ------each button corresponds to a different setting... 1,2,3,4,5,6
    _root.mySender.send ("menuconnect", "action", 1);
    ------This is the best way that I could understand to disable the buttons appropriate... There might be a better way?
    Home.Enabled = false;
    couple.enabled = true;
    Events.enabled = true;
    Bridal.enabled = true;
    Media.enabled|disabled = true;
    RSVP.enabled = true;
    }



    Script of reception

    myReceiver = new LocalConnection();
    myReceiver.action = {function (doThis)}
    If (this == 1)
    gotoAndPlay (2);
    If (this == 2)
    gotoAndPlay (3);
    };
    and so and soforth for all six buttons
    myReceiver.connect ("menuconnect");

    If all this makes no sense at all, I'm sorry... I tried my best...
    If some pro out there can understand what I'm trying to do and can help me I would greatly appreciate it... Thank you all

    SJS

    I would like to use the ID to link to each of your mv_1, mv_2 etc. in the main stage and control them. This would have the advantage of eliminating the duplication of code and keeping most of your code in one place (image 1 of your _root timeline).

    If mc_1 etc was connection id mc_1ID etc, the other began on a frame labeled "outro" and ended on the last image, you can use:

  • MovieClips loaded with attachMovie may need to be deleted

    I have a flash with a menu on the left page and get her so that when you click on a button in the menu, it plays the relevant movieclip in the main section via a dynamic movieclip container using attachMovie. Whenever a new 'section' movieclip is loaded, I want only it transition to one section-clip to another using the mask movieclip 'transition_mc '.

    To make it clearer, I've recreated a watered down the copy of the film that contains just the movieclips 'section', the dynamic movieclip loader (with attachMovie) and the mask of the transition (and of course the relevant bits & pieces for each)

    Click here to download the clip...

    In this example, only the 'Current projects' button and the button of "Development" are the work of transition.

    The problem is that after passing back and forth between these two sections for a while, the whole Flash doc seems to be slower and slower.

    My guess is that each 'section movieclip' is not removed and so whenever he clicked it loads another copy in memory. So, the most clicked times, most used memory, slow everything happens. The clips section below are very low at the moment it takes just a few clicks between them all starting to slow down (on my system anyway). I think I need to solve this problem sooner rather than later when you are finished, each "movieclip section" will be a bit bigger and it does not have much at all to make things run slow!

    If you look in the actions for "DYNAMICCONTENT-mc", you will see that I have commented out a line of code showing a remnant of my first attempt to solve this problem.

    Can someone show me what I need to do to fix this problem? Any help is very appreciated!



    See you soon,.

    Stanbridge

    Try:

  • To access the elements of the scene, via a SWF file that is loaded inside the scene

    -J' I A.fla.

    -A.fla includes buttons, video clips and also B.swf is loaded in A.fla with a CHARGER

    -I want to access the elements in A.fla, from codes actionscript inside B.fla to change these video clips and buttons based on the actions going on in B.swf

    for example, lets say there is an X button in A.fla and there is a button there B.fla, B.swf is loaded into A.fla, and I want the key Y to delete X when you click the button.

    General question: to access the elements in a stage, via a file SWF loaded in this stage.

    This is a way silly to explain: there is this pregnant mom, a child is loaded inside him, now, I want the codes inside the child, access to MOM

    elements, such as lets say, I want the code of the child can make the eyes of MOM flashing faster. logically there is something inside something else, but I want to have access to the bigger picture of what is loaded. I hope I can get my point across.

    I repeat what I replied to your other psoting for this same question and adding just a little bit more...

    If you load a swf into another using the Loader class, then the charger itself is the parent of the loaded swf file, so MovieClip (parent.parent) could help you target the timeline that the charger was born.

    The way to have a loaded file to speak to a parent file is through the sending of events that the parent assigns headphones for after the file has been loaded.  Here is a link to an announcement that could help explain how to implement this.

    http://forums.Adobe.com/thread/470135?tstart=120

    And here's a quick example...

    Example:

    Add something to raise the event in the child:

    dispatchEvent (new Event ("eventTriggered"));

    In your SWF to loading/parent, listen for the complete event on the Loader.contentLoaderInfo.  In the complete event handler, add a listener for the event on the loaded swf file.

    triggered when external swf loading event handler
    function loaderCompleteHandler(event:Event) {}
    (event.currentTarget.content as MovieClip) .addEventListener ("eventTriggered", eventHandler);
    }

    function eventHandler(event:Event):void {}
    trace ("event sent in loaded swf");
    }

    So in your A.swf, you should have the other event and functions of event handler that would take care of control buttons.   Event listeners could be assigned to the B.swf after that that it has loaded.  In your B.swf you just have it dispatches an event and the A.swf manage self adjustments you need taken care of.  This allows the two files to be independent of each other on a functional level.

    Regarding the buttons that you want to disable, you can either use the removeEventListener() method to remove the listeners you have assigned, or you can set the mouseEnabled property to false, or you can set the visible property to false.

  • How to control an external SWF loaded with actionscript

    It is a question of both parties, and I'm pretty new to Flash. I'm working on a flash animation and the interface is a small town (simiar to "doritos.com" and "comcasttown.com"), if you are referencing the doritos comcast sites and their little movie gently. I have several items in the city. For example, one of the elements is an airplane hanger. When you reverse the hanger, I created a movie, the doors open and a plane flies out of the hangar. I have several small films throughout the interactive like this. I created the hangar as a separate swf file animation. In my main movie, I created a button bearing, it loads the SWF hangar in an empty movieclip. When I publish and display the swf file, it plays slow and jerky. First of all, is it possible to write an actionscript to load external swf file, but it will stop on the first frame of the animation, and when you the reversal, he continues to play.  To put all this in a Word, I want to create several buttons throughout the movie with loadmovie functions, once loaded swf movies I want to that they stop on the first frame of the animation and when you charge rolling video swf I want to continue to play the animation. ActionScript should be applied for swf movies first and preloaded in the main movie. And what will make the movies smoothly once he published and displayed in a browser.  Also, if that makes a difference, I created animations in sequels, exported as imported into flash FLVs and exported to the swf. Again, it works really slow and jerky. I'm taking the right approach?  I know it's a lot of information, but any help would be greatly appreciated. Here is the script I used for the button.


    on (rollover) {loadMovie ("movies/solarpanel.swf", "solarload");


    Thank you

    1. export a SWF of sequels.

    2. Add a stop() on the first frame of your SWF so they don't start playing while they are loading.

    3. apply mouse on your target movieclips managers and using the play() method to start your SWF play when postponed:

    {target1mc.onRollOver = Function ()}

    This.Play ();

    }

    and if you want them to stop when roll-out:

    {target1mc.onRollOut = Function ()}

    This.Stop ();

    }

  • Place the rollover image button on the external top of swf

    I have a menu when you click on a button, an external swf is called. However, I would like for the buttons and more and the low State to show an image on the top of the external swf with a description of what the video is of about (essentially when they overthrow the button).

    The problem is that the image shows behind the external swf. I can't see on the top of the external swf. I tried to put the layer of buttons on the top of the layer of actions, but it does not work.

    I have not used Flash for a long time, but I need to know if there is ActionScipt who can solve my problem or any other way to solve this problem. Help, please. Thank you.

    delete:

     loader.name = event.target.name;
    
  • I have a problem loading with my iPad Air2.  I used other cables and Chargers but still doesn't load.  I plugged the iPad to iTunes and a DFU after he took a few hours that the iPad has been completely restored and apps reloaded.  In addition to the

    My iPad will not normally charge.  I tried different cables and Chargers.  I plugged the iPad to iTunes and reset a DFU.  After only a few hours the iPad finished reloading all software and reloaded new apps, it had also charged the battery but the problem remains, I still can't load the iPad normally.  Any help out there?

    There are very few things that keep loading an iPad. Some of these (other charger plugged into a good outlet, different cable) you have already tried. Others are:

    1 dirt, lint or fuzz in the port of loading of the charger or the iPad. Check and clean carefully if necessary.

    2. a software failure. Reset the iPad. Press and hold the Home button and the sleep/wake button until the Apple logo appears. Then release the button and let the appliance restarts. You lose no data by doing this. It's like a restart of the computer.

    3. failure. Make an appointment at an Apple store to have a technician look at your device. Or contact the Apple Support.

  • STILL UNABLE TO LOAD WEBSITES IN FF, WELL THAT NO PROBLEM WITH IE OR AOL. I THINK I TRIED EVERYTHING SUGGESTED.

    The Mozilla FF page loads, but no site that is open in FF. I checked the Proxy box, I disabled my Windows Firewall. There is a firewall for my Norton, but which has been there since day 1. One day, I do all my things FF without problem; the next morning I turn the computer on & nothing in FF will work. That is to say works well. AOL works fine if my internet connection is not the problem. This is the message that I get any site I try to open (I also copied the text of troubleshooting below this): thanks for any help - it's really driving me crazy!

    Unable to connect
    Firefox can't establish a connection to the server www.aol.com.

       The site could be temporarily unavailable or too busy. Try again in a few moments.
       If you are unable to load any pages, check your computer's network connection.
       If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
    

    Troubleshooting 'copy text to the Clipboard.
    The application databases

    Name: Firefox
    Version: 33.0.2
    User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; RV:33.0) Gecko/20100101 Firefox/33.0
    Windows multiprocessing: 0/1

    Reports of incidents for the last 3 days

    All Crash reports

    Extensions

    Name: AVG toolbar backup
    Version: 17.1.3.3
    Enabled: false
    ID: avg@toolbar

    Name: InfoAtoms
    Version: 1.5.0.0
    Enabled: false
    ID: [email protected]

    Name: Norton Toolbar
    Version: 2014.7.8.23
    Enabled: false
    ID: {2D3F3651-74B9-4795-BDEC-6DA2F431CB62}

    Name: PasswordBox
    Version: 1.20.0.2308
    Enabled: false
    ID: [email protected]

    Name: RealDownloader
    Version: 1.3.3
    Enabled: false
    ID: {DF153AFF-6948-45d7-AC98-4FC4AF8A08E2}

    Name: Skype Click-to-Call
    Version: 6.13.0.13771
    Enabled: false
    ID: {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}

    Graphics

    Description of the adapter: Intel G41 Express Chipset
    Drivers: igdumd64 igd10umd64 igdumdx32 igd10umd32
    RAM card: unknown
    Device ID: 0x2e32
    Direct2D Enabled: true
    DirectWrite Enabled: true (6.2.9200.16571)
    Driver date: 11/02/2011
    Driver version: 8.15.10.2302
    GPU #2 Active: false
    GPU accelerated Windows: 1/1 Direct3D 11 (OMTC)
    Vendor ID: 0 x 8086
    WebGL Renderer: Google Inc. - ANGLE (Intel G41 Express Chipset Direct3D9Ex vs_3_0 ps_3_0)
    windowLayerManagerRemote: true
    AzureCanvasBackend: direct2d
    AzureContentBackend: direct2d
    AzureFallbackCanvasBackend: Cairo
    AzureSkiaAccelerated: 0

    Important change preferences

    Browser.cache.Disk.Capacity: 358400
    Browser.cache.Disk.smart_size.first_run: false
    Browser.cache.Disk.smart_size.use_old_max: false
    Browser.cache.frecency_experiment: 1
    browser.places.smartBookmarksVersion: 7
    browser.sessionstore.upgradeBackup.latestBuildID: 20141027150301
    Browser.Startup.homepage_override.buildid: 20141027150301
    Browser.Startup.homepage_override.mstone: 33.0.2
    extensions.lastAppVersion: 33.0.2
    GFX. Direct3D.last_used_feature_level_idx: 1
    network.cookie.prefsMigrated: true
    places. History.expiration.transient_current_max_pages: 103947
    plugin.disable_full_page_plugin_for_types: application/pdf
    plugin.importedState: true
    privacy.sanitize.migrateFx3Prefs: true

    Important preferences locked

    JavaScript

    Incremental GC: true

    Accessibility

    Enabled: false
    Prevent accessibility: 0

    Versions of the library

    NSPR
    The expected minimum version: 4.10.7
    Version: 4.10.7

    NSS
    The expected minimum version: 3.17.1 Basic ECC
    Version: 3.17.1 Basic ECC

    NSSSMIME
    The expected minimum version: 3.17.1 Basic ECC
    Version: 3.17.1 Basic ECC

    NSSSSL
    The expected minimum version: 3.17.1 Basic ECC
    Version: 3.17.1 Basic ECC

    NSSUTIL
    The expected minimum version: 3.17.1
    Version: 3.17.1

    Experimental features

    An update: as mysteriously as it started last Friday, it fixed itself today (apparently). I left my computer when I'm out in early afternoon after having tried again to open up all sorts of websites in FF with no luck. When I came back from my races it was back to normal - able to open all Web sites again. Obviously, firefox Elves snuck into my house while I was out and fixed what it was. I would like to know what!

Maybe you are looking for