Unloading a loaded external SWF with a close button on the external SWF to unload

I have found some discussion on this topic but I am still having trouble getting it to work and was hoping to get some help here.
Here I have a file: http://www.dril-quip.com/test/main.swf
I have: main.swf (a menu) and I have module.swf (content)
If you navigate to Subsea Wellhead Systems/SS-15 BigBore II and click on that I have it load an external swf which covers most of the parent.
So far so good. My problem is unloading the loaded 'Child' swf with the button provided on the loaded 'Child' swf.
below is the code I used to load the file but I cant, for the life of me, find a way to unload it.
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 certain it requires the Child to communicate with the parent somehow but I am at a loss. If I could get a bit of advice or a link to something deal with this, it would be a big help. I just need to have my links load my modules and the remove them when the close buttong is hit on the loaded swf. I promise I have done searches and I admit I have found asnwers but still they are not working. 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 misunderstanding of the code. Thanks for any help you might be able to provide.

This was the original code I got:
Main FLA: (on AS layer inside DropDownButton Movie Object)
function removeF() {
removeChild(myLoader);
var myLoader:Loader=new Loader ();
page1_mc.addEventListener(MouseEvent.CLICK, page1content);
function page1content(myevent:MouseEvent):void {
var myURL:URLRequest=new URLRequest("page1.swf");
myLoader.load(myURL);
addChild(myLoader);
EXTERNAL FLA: (on main time line of this file)
close_mc.addEventListener(MouseEvent.CLICK, closeMC);
function closeMC(myevent:MouseEvent):void {
MovieClip(parent.parent).removeF();
Main.FLA
myLoader=bigboreLoader (my new loader)
page1_mc=btnbb2 (the button who event will call external swf)
page1content = bigborecontent (name given to SWF being loaded???)
myURL=bigboreRequest (my new URLrequest for bigbore)
page1.swf=moduletemplate.swf (actual address of what I am loading)
External.FLA
close_mc=button that will close external swf
closeMC=movie clip to close?

Similar Messages

  • JDialog with out close button

    hi, I wanna get a JDialog without the close button in the top right corner of it how can i get that...plz help

    Did you search? No! Do so, it has been asked very often in the swing forum.

  • Add the option for a close button on the Scattered setting .

    Add the option for a close button on the Scattered setting ... like you have with all the other options - needed for touch devices as the roll out is no use on an ipad or iphone etc etc....

    This was the original code I got:
    Main FLA: (on AS layer inside DropDownButton Movie Object)
    function removeF() {
    removeChild(myLoader);
    var myLoader:Loader=new Loader ();
    page1_mc.addEventListener(MouseEvent.CLICK, page1content);
    function page1content(myevent:MouseEvent):void {
    var myURL:URLRequest=new URLRequest("page1.swf");
    myLoader.load(myURL);
    addChild(myLoader);
    EXTERNAL FLA: (on main time line of this file)
    close_mc.addEventListener(MouseEvent.CLICK, closeMC);
    function closeMC(myevent:MouseEvent):void {
    MovieClip(parent.parent).removeF();
    Main.FLA
    myLoader=bigboreLoader (my new loader)
    page1_mc=btnbb2 (the button who event will call external swf)
    page1content = bigborecontent (name given to SWF being loaded???)
    myURL=bigboreRequest (my new URLrequest for bigbore)
    page1.swf=moduletemplate.swf (actual address of what I am loading)
    External.FLA
    close_mc=button that will close external swf
    closeMC=movie clip to close?

  • Glade, pygtk - 'close' button in the 'about dialog'

    Hi! 
    I have a problem with the "about dialog" in glade and also in 'pure' pygtk. The dialog's close button doesn't close the window as it did in the past (about 1 month back). It does not even generate any error message etc. . I suppose there should be no need to create a signal handler for this button, and in fact it's impossible. The other buttons as 'Credits' , 'License' and their 'Close' buttons work well. Please, does anybody know what's going on here?
    glade-3.0.1-1
    libglade-2.6.0-1
    pygtk-2.8.6-3
    gtk-1.2.10-7

    here is an 'pure' pygtk example:
    try:
    import sys
    import gtk
    import pygtk
    pygtk.require("2.0")
    except:
    sys.exit(1)
    class about:
    def __init__(self):
    x = gtk.AboutDialog()
    x.set_name("foo")
    x.set_authors("x")
    x.connect('destroy',self.close)
    x.show()
    def close(self,widget):
    sys.exit(0)
    if __name__ == "__main__":
    app = about()
    gtk.main()
    The main 'close' button doesn't work. The 'close' button in the 'credits' dialog works well. And the same in Glade.

  • HT1338 If I have OS 7.5 installed on an external drive, can I start up from the external drive in that OS when my macbook pro is 10.7?

    If I have OS 10.6 installed on an external drive, can I start up from the external drive if I have 10.7 installed on my macbook pro?

    Provided that the MBP supports booting from that version of 10.6, and the install was from a retail disk (not a different Mac model), then yes. If it's a newer Pro that came with Lion, it may not boot to 10.6.
    Matt

  • I have an iPhone 3GS and it recently started to make a Cicada type of sound when pushing the close button on the top right hand of the phone. Can anybody give me feedback on what this is or how I might be able to fix it?

    I have an iPhone 3GS and it recently started to make a Cicada type of sound when pushing the close button on the top right hand of the phone. Can anybody give me feedback on what this is or how I might be able to fix it?

    It will be replaced with the exact same model. It is not expensive compared to the full retail price of a new phone (without carrier subsidies).
    If you're eligible for an upgrade from your carrier, now might be a good time to consider upgrading to an iPhone 5, though.

  • To disable close button of the UDF form

    Hi,
    I need to disable the close button of a UDF form. Can anyone help me pls.
    Manu.

    Hi Manu,
    Herewith a code example... This would disable the close button on the Sales Order window (and only the first window)
      Dim oform As SAPbouiCOM.Form
      <i>'loop through all the forms here if you need</i>
      <i>'i am using "-FormType" here as the UDF window has the same UID as the normal form, but with negative sign</i>
      oform = oApplication.Forms.GetForm("-139", 0)
      Dim oItem As SAPbouiCOM.Item
      <i>'Close button is 4</i>
      oItem = oform.Items.Item("4")
      <i>'Disable button</i>
      oItem.Enabled = False
    Hope it helps,
    Adele

  • How to relocate the Minimize, Maximize and Close buttons on the window

    I am a right-hand user, and would prefer if all my Minimize, Maximize and Close buttons on the window are relocated to the right hand side of the window. Anyone got any suggestion to do it ?

    This is just something you end up getting used to, at least it was the case for me.
    It is not possible to move this, without the help of third-party software.
    ShapeShifter is offers customisation of the look of the Windows, but I don't know if it can move the buttons.
    http://www.unsanity.com/haxies/shapeshifter
    But I don't know if it is compatible with Leopard yet.

  • I think the DVD player reader on my Mac is going bad. Is there a way to copy the files off of an Apple Install DVD onto an external drive and then do theinstall from the external drive?

    I think the DVD player reader on my Mac is going bad. Until I get it fixed Is there a way to copy the files off of an Apple Install DVD onto an external drive and then do theinstall from the external drive? It's ILife 11 if that makes a difference. Finder won't let me see the files to copy. I know - dumb question.
    Thanks.
    Bob

    Adding an SSD is not a simple endeavour like adding additional memory or adding another hard drive to a Mac Pro. That's probably why the option is only offered as an option at the time of purchase. Even if your Apple store was willing to install the necessary parts you will probably be paying for 1-2 hours of labor plus the cost of purchasing the necessary service parts (SSD, bracket, cables, etc) which I suspect will make the upgrade cost much higher than what it costs to add the SSD option when purchasing a new system.
    I use my system for business and need it to work reliably.  Even though I'm fairly handy with tools I would not be willing to risk damaging my system and voiding my warranty by opening my system and removing the logic board and several other parts in order to squeeze in an SSD option and attach the appropriate cables and brackets. I'm also not prepared to deal with the hassles of explaining why my system has unauthorized parts installed in the event I experience issues and need to make use of my Apple warranty. My time is valuable, so I would probably investigate external storage options, or if I needed the speed of an SSD, I would consider selling my existing system and then purchase a new system configured with an SSD.
    If you haven't already done so I suggest doing a search on 'iMac SSD installation' to see what's involved. It might help you understand why the SSD option is not offered post purchase.

  • I have these black boxes surrounding things, e.g., there is a black box around the red "close" button on the upper left corner of this page.  There is also an oblong black box

    Hi - I'm not only having trouble waking up my MBP from sleep and having to restart repeatedly which is a pain in itself, but now when it restarted, I have these black boxes surrounding things, e.g., there is a black box around the red "close" button on the upper left corner of this page.  There is also an oblong resizable black box sitting on top of anything.  The content changes depending on the actions I take.  Right now it says, "You are currently on a close button.  To click this button, which closes the current window, press Control-Option-Space."  Right now I'm open in Firefox, but it doesn't matter if only Finder is open, it's still there.  I've tried closing all my applications and restarting and I also reset the PRAM.  It won't go away.  It's probably something simple, but I don't know how to get rid of it.  Any suggestions are welcome.
    Thanks,
    Janet

    Thanks so much.  I saw this on "desktop strangeness" immediately after I posted and tried to retract my question.  It worked perfectly.  I'm not sure how VoiceOver got turned on unless something happened when I was trying to wake up the computer.  I open the lid and it flashes whatever is open and then the screen goes black and I can't wake it up.  Still looking for the resolution to this.

  • How do I have itunes use/detect my external hard drive and place music on the external drive from the itunes store? There are no music files on my pc yet.  I will like to do this after installing itunes 11 on my pc for the first time. I am using windows 7

    How do I have itunes use/detect my external hard drive and place music on the external drive from the itunes store? There are no music files on my pc yet.  I will like to do this after installing itunes 11 on my pc for the first time. I am using windows 7.  HP computer intel Dual Core.  Thanks for any help!

    Hey idw3,
    Welcome to Apple Support Communities, and thanks for the question. Follow the instructions on this article to move your iTunes Media folder to an external hard drive:
    iTunes for Windows: Moving your iTunes Media folder
    http://support.apple.com/kb/HT1364
    Regards,
    David

  • Why do the minimize, maximize, & close buttons in the top right corner disappear (turn to a black void) unless FF is maximized?

    I am running Windows 7 on my new laptop. When I bought it back in August, I installed Firefox version 5 (I think) Now that I have updated to version 6, the minimize, maximize, & close buttons in the top right corner disappear when the window is not maximized. It becomes a black space where the buttons should be.

    Hi Kossa,
    You can also check if the issue occurs in
    Clean Boot. If the issue disappears in the Clean Boot environment, you can continue to narrow down which entry is causing the issue.
    Besides, uninstall it and re-download
    a fresh copy of FireFox to check the result. If the issue still exists, create a new user account to see if it occurs.
    If the issue persists, you can contact Mozilla Support directly and use Internet Explorer (IE) during the time.
    J
    Please Note: The third-party product discussed here is manufactured by a company that is independent of Microsoft. We make no warranty, implied or otherwise,
    regarding this product's performance or reliability.
    Regards,
    Linda

  • I have many photos on my computer.  I have backed up the computer to an external harddrive.  When I go into the external harddrive, how do I find the many albums I have stored/created in my iphoto library?

    I have many photos on my computer.  I have backed up the computer to an external harddrive.  When I go into the external harddrive, how do I find the many albums I have stored/created in my iphoto library?

    You can't view your photos in the iPhoto library in Time Machine vis the Finder.  You must enter Time Machine, go back in time to the library you want to restore and restore it?
    One can only restore an entire library from TM:
    OT

  • Close button at the right corner

    Hi friends ,
    i would like to know if there is any function key or function code is available for the close button. at the right corner.
    if u know please let me know..
    regards,
    diana.

    Hello Diana,
    Strat the debbuger using write the '/h' into cammand field then press enter the click the cancel button
    and then click on that button you will get the
    function group 'SPO1' and program 'SAPLSPO1'
    subroutine
    PERFORM CHECK_SPOP CHANGING DYNPLEN
                                TEXTLEN
                                SPOP . 
    Hope this will help you.
    Thanks
    Anirudh
    Edited by: ANIRUDH SAINI on Aug 12, 2008 7:58 AM

  • How can I put the close button in the mainframe of the dialog?

    Hi all,
    I am creating a new dialog and I would like to konw...
    How can I put the close button in the mainframe of the dialog?
    Thanks in advance.
    Best regards,
    Juanma.

    Juanma,
    Usually, a dialog would have an OK and a Cancel button, both can be served as the close button, but if user clicks the ok button (DefaultButtonWidget) to close the dialog, your dialog controller's (if it is based on CDialogController) ApplyDialogFields will get called so you can react to the OK action, otherwise, if user clicks the cancel button (CancelButtonWidget), nothing will happen. The dialog simply is dismissed.
    See BasicDialog SDK sample to see how to add DefaultButtonWidget and CancelButtonWidget to a dialog.
    Thanks!
    lee

Maybe you are looking for

  • How do I move contacts from the group "All from my Mac" to iCloud?

    prior to my problem, I was using Microsoft Exchange for years to keep my contacts in my phone, so if i were to delete the exchange account, my contacts would go with it. I deleted my Microsoft Exchange account (copied all my contacts onto a spreadshe

  • Double Libraries

    I recently copied over my whole music library from my old PC to my new Macbook Pro. Importing the songs from files into iTunes, iTunes makes another copy of my music. Is it necessary to have double of everything? It does take up a needless amount of

  • Downgrade from 30.0.018 back to 20.0.016 can it be...

    hello to all of you here i'm new in here. i have NOKIA N95 8GB & did an upgrade to the new version 30.0.018 now i want to go back to the old frimware that i hade  20.0.016 (problems with the new ver) can i do it? Please help me with that..... Thanks,

  • MBP not reading CDs or DVDs under Windows/Bootcamp

    Well after searching the net, talking on the phone to Apple for near an hour, and visiting a licensed repair shop, I still have no idea whats causing this problem. Basically I bought Windows XP SP2 and installed it on a partition last August. Everyth

  • Mailboxes and Inbox removed by 10.5.8 update?

    I've just accepted an update to 10.5.8 from Apple. When I opened Mail, all my mailboxes and my old Inbox had gone. Will the update have caused this?