How to can I add a close button within a loadmovie swf

I made a list of words, which are links. When you rollover the text it loads a graphic with definitions to the lists of words. I made the (graphic with definitions) a "swf" and I used the loadmovie script to load the swf.
I added a button within the swf, to close the swf, and used the unload movie script to close the swf.
Here's the problem, the swf loads but when I try to close the swf by using the button, nothing happens.
Is this because I added the button within the swf. Or better yet, what script should I use to close the swf. I using AS2.
thanks for any help

For the button's unloading code try using:
unloadMovie(this);
Or
_parent.unloadMovie(this);

Similar Messages

  • Can I add a Close button to a popup window?

    My RoboHelp 10 project has nested popup windows (that is, I can open a popup window within a popup window within a popup window). The problem is, when I close the popup window at the lowest level, all of them close simultaneously. This is not good for navigation, particularly if the user is following instructions in the popup window and needs to go back up one popup window level.
    Is there a method by which I can close each individual popup window, for example, by adding a Close button to them? In other words, can I change the format of the popup windows?
    Your help will be much appreciated in finding a solution to this problem because it is fundamental to the way we want our Help to function. If a solution can not be found, we may have to change to another product to produce our Help.

    Hi,
    You can create a close buton by creating a link as follows with the following address:
    javascript:self.close()
    But I'm not sure whether this will work correctly with RoboHelp generated popups.
    Another question: why would you want multiple popups? Wouldn't it be better to create a popup that can tthen redirect to another topic? Having lots of windows wil become very confusing very fast.
    Greet,
    Willam

  • 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

  • How can I add a review button on my podcast

    How can I add a review button on my podcast, so I can see it on my iphone or itouch?

    You must create a custom signature.
    Find a guide here

  • How can i add Facebook likes button on my mac mail?

    How can i add Facebook likes button on my mac mail?

    You must create a custom signature.
    Find a guide here

  • How to add a close button to a edge animation ?

    How to add a close button to a edge animation ?

    Welcome to our community, Laurie
    You posted this in the FlashHelp section. Is that your actual
    output type? If so, you will need to make edits to the FlashHelp
    using Adobe Flash.
    Cheers... Rick

  • How I can delete add-in in windows 8.1 ,I see only enable and disable function but I don't see any add-in delete function

    hi,
    how I can delete  add-in applications in add-in applications section ,  I try to delete one but I don't see any delete function, I see only enable and disable function in the manage add-in applications wizard.
    thanks
    johan
    h.david

    Hi,
    If you want to remove the add-ins of Office 2010 programs, you need to remove it from control panel.
    For example, if you use Excel, please try to follow the link to delete the add-ins:
    http://office.microsoft.com/en-us/excel-help/add-or-remove-add-ins-HP010342658.aspx
    If I misunderstand something, please let me know.
    Regards,
    George Zhao
    TechNet Community Support

  • How to set custom size of Close Button e.g. 32x32  of Title Window in Flex 4

    How to set custom size of Close Button e.g. 32x32 of Title Window in Flex 4?

    Hi
    Here is the code of the Button in the skin class of spark title window.
    <s:Button id="closeButton" skinClass="spark.skins.spark.TitleWindowCloseButtonSkin"
                              width="15" height="15" right="7" top="7" />
    So first change the default height and width from 15 to 32. Then in the Button Skin class i.e. spark.skins.spark.TitleWindowCloseButtonSkin change paths to modify the cross symbol.
    Hope this helps
    Rush-me

  • How I can internatiolization OK and Cancel buttons confirmDialog?

    private void clickButton() {
              int response = JOptionPane.showConfirmDialog(this, resBundle.getString("Confirmation_text_itroduction"),
    resBundle.getString("Confirmation_title"), JOptionPane.OK_CANCEL_OPTION,
                        JOptionPane.QUESTION_MESSAGE);
    if (response == JOptionPane.OK_OPTION) {
                   System.out.println("OK button clicked");
              } else if (response == JOptionPane.CANCEL_OPTION) {
                   System.out.println("Cancel button clicked");
    As you can see I internatiolization the title of confirm dialog and text (use object resBundle). OK!
    But how I can internatiolization OK and Cancel buttons is this confitm dialog?

    OK, I can internatiolization buttons "OK" and "Cancel" in confirm dialog:
    private void clickTestKindButton(String message) {
              Object[] options = { resBundle.getString("OK"),
                        resBundle.getString("Cancel") };
              int response = JOptionPane.showOptionDialog(this, message, resBundle
                        .getString("Confirmation_title"), JOptionPane.OK_CANCEL_OPTION,
                        JOptionPane.QUESTION_MESSAGE, null, options, options[0]);
              if (response == JOptionPane.OK_OPTION) {
                   new IntroductionTest();
              } else if (response == JOptionPane.CANCEL_OPTION) {
                   System.out.println("Cancel button clicked");
         }It's work OK!
    But how I can internatiolization buttons "OK" and "Cancel" in the input dialog ?

  • Can;t add actionscript to button

    hey guys, i've created a button from a piece of text in flas
    CS3, and i want to add some actionscript to skip to another frame
    on mouse click, i've done it before on flash 8, and it worked but
    on CS3 it says "current selection cannot have actions applied to
    it". anyone know why and how i can get round it?
    cheers,
    Curtis.

    your buttons are being controlled by a timeline based tween
    and therefore will not become operable until they encounter the
    code responsible for their events on the timeline. use some script
    for your fades instead of relying on the time line, that way you
    can have the buttons and all their necessary code on the same frame
    - in your case frame 1 - (make sure your code is on a layer labeled
    "actions" atop all your other layers - nothing should ever be on
    your "actions" layer except script).

  • Can't add actionscript to buttons

    Hi, I am currently trying to make a game in AS3 with forward and back buttons. I have drawn my buttons and converted them to symbol (button), but when I select the button and press F9 to add in the actions, this happens meaning I cannot add the script in:
    can anyone please tell me what I have done wrong to not show the normal space where I add my script into?
    EDIT: OK, I have worked out how to code buttons I think, but now whenever I do I keep getting this error message

    you can't add code to objects using as3.
    that's an feature of as1 that was (unfortunately) allowed with as2, but finally eliminated in as3.

  • How to perform action when the close button is pressed?

    i am using a JInternalFrame and i would like to perform some actions before the internal frame closes when i press the close button on the top right corner of the frame.
    i know the first step is:
    setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
    what next? what actionlistener shd i use??
    thx very much

    Your first step is wrong.
    yourInternalFrame.addInternalFrameListener(
         new InternalFrameAdapter(){
      public void internalFrameClosing(InternalFrameEvent e){
        // do part
    });

  • Can I place a "Return Button" within a clip?

    Is it possible to place a button within a video clip that would enable a user to return to the previous menu? I am using submenus and to return to the submenu requires going back to the main menu and then back into the submenu.
    24 inch iMac   Mac OS X (10.4.8)  

    Is it possible to place a button within a video clip that would enable a user to return to the previous menu?
    short answer is no. However you can add a button for the main menu
    If you have a project with submenus, you can add a button that viewers can click to go back to the main menu.
    To add a button for the main menu:
    Open the menu where you want to add the button and choose Project > Add Title Menu Button.
    Hope this helps.
    SDMacuser

  • How series can be summarized in different ways within a single worksheet.

    Hi,
    Can you please advise me how can we achieve the below stuff.
    “A given series can be summarized in different ways within a single worksheet table.”
    This is mentioned in user guide page 14-8(Begining).

    can you give me some material or document on that so that i can read actuaaly i need to make doc on it..

  • How can I add custom toolbar buttons to load different TOCs?

    In my WebHelp output, I want to have custom buttons on the toolbar that when clicked load a specific TOC in the left navigation pane. For example, when the user clicks the PC button, the PC TOC loads in the left pane. When the user clicks the VM button, the VM TOC loads in the left pane. All of the help files are managed in one project and some files will appear in both TOCs.
    I think this should be possible but not sure how to make it happen. Is there some JavaScript that I should add to the custom toolbar item to load the TOC on click? How do I specify the TOC that I want to show for each button?
    BTW - I'm using RoboHelp 8 (8.0.2) to generate WebHelp output. Thanks in advance for your help!

    Hi there
    If you were to upgrade to RoboHelp 9 it would simplify your issue. Version 9 offers a new feature called Dynamic User-Centric Content (DUCC) and provides a nifty little drop-down selector in the Navigation Mini-toolbar.
    As you are on version 8 the only way I can fathom you would manage this is by generating two different outputs. Each output would use its respective TOC. The Toolbar button in each project could be configured to open the other project.
    You might first decry having to manage two outputs and all the files. But if you pick apart DUCC and the way it is configured by Adobe, it works in much the same manner. It's just hidden from your initial view.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

Maybe you are looking for

  • Get the service name using form 6i

    Dear Oracle Gurus Can anyone please tell me how can I get the connection service name using forms 6i. Fawad

  • Disable a service from a predefined role of a business package

    Hi, I want to disable few services from the a predefined role of material planner .Can  anyone suggest how to disable few services from the user

  • Keynote light table icons

    Does anyone know the meaning of a white square in the upper right corner of slides in the light table view in Keynote?  I know the meaning of the icons in the lower right and left, but the square in the upper right is a new one to me. Thanks

  • Regarding Releasing a Infoobject

    hai Im in development phase . I created some infoobjects in development phase . I want to release one infobject . So how to release it . Please tell me step-by-step process for releasing the infoobject. I will assign the points bye rizwan

  • X:InputCalendar and format of displayed date

    I am using a simple <x:inputCalendar> component which works fine, but the format of the displayed date (the date that was selected from the popup calendar), is not formatted in the way I want it. I want the format dd.MM.yyyy. I've tried to put a <f.c