is it possible to click on a button in a swf file and have it replaced with another swf file?

I don't know how to explain it but,

I have a swf that has a button. When you click on it, it will appoint a different swf.

that would alow me to create a menu swf when a user click on a menu item it loaded a different swf.

The reason why I am interested in this option is that I only have a small window portlet on our community page.

Thank you

J

Insert this code in the button that you want to load the film:

on (release) {}

loadMovieNum("movie_name",0);

}

Who will replace the current movie with the new film.  If you want the button remains, make a video, the size of the movie you are going to load, give it an instance name and replace the 0 with the name of the instance of the clip and I think that should do it.

Include the quotation marks in the code, they are part of the syntax.

Tags: Adobe Animate

Similar Questions

  • Is it possible to group objects, which are placed in the project and then hide them with line a single action-script? THX in advance, Philip

    I work in CP 9 and I'm going to try the following: the user must be able to make ALL invisible or visible to highlight boxes by clicking on the corresponding button on the first page layout. Thus, for example, if the user does not want the highlight boxes appear, click on "Hide the boxes" and boxes are hidden for the rest of the project. I managed to get to this point for help... but it is still a lot of work for me to manually enter all the different names of these boxes in the action-script. So my question is: is it possible to group objects, which are placed in the project and then hide them with line a single action-script? THX in advance, Philip

    Actually... releasing the CpExtra HTML5 widget, it will be possible.

    It has a function called @syntax that allows you to perform an action (for example HIDE) automatically on any object throughout a project of Cp9 simply based on the name of the object.

    So for example, if you named all the boxes to highlight you want hidden this way to have the suffix _HideMe and you say CpExtra you want all of them hidden if a user variable is assigned to a certain value, then that is what will happen.

    That's the good news.  The bad news is that the widget is still in BETA final tests at the moment, so you may need to wait a bit before you can realize your idea.

  • In the mail app, if I try right click and open the attachments of the JPG files that I received, I get the message 'we are unable to open this file. You want to save and try to open with another application? »

    I received an email with 3 accessories, 2 images and 1 PDF.  I am trying to open larger photos and I get the message, "we are unable to open this file.  You want to save and try to open with another application? »

    Why can't click a picture in the mail app and have it launch a photo viewing application. ?

    What you need to do is to go to control panel > programs > by default of the programs > set your default programs. Or search for programs by default, which must raise I have right as well (just start typing on the splash screen or slide from left to right and click on the search button). Go to the photos and select set this program as default. This fixed it for me.

  • I'm trying to install Adobe CC on computer 2, a Macbook, and after downloading the desktop CC app I double click in the intall. When it seems to be done to install I'll double-click on the icon of the ourobouros upstairs and I'm rewarded with spinning

    I'm trying to install Adobe CC on computer 2, a Macbook, and after downloading the desktop CC app I double click in the intall. When it seems to be done to install I'll double-click on the icon of the ourobouros upstairs and I am rewarded with the spinning of beach all dead. Any suggestions?

    Hi,

    Please see the below help document to solve the problem:

    Does not open App | Wheels of progress turn continuously

    Kind regards

    Sheena

  • How to click on the button in the SWF exported to go to frame parent SWF?

    I looked online, but couldn't find anything useful.   I got these codes on the web, but they do not work... (I'm pretty new to Flash).

    -----------------------------------------------

    projectgallery.swf - PARENT SWF

    projectgallery_cutLimestone.swf - EXPORT SWF

    returnToAlbums_btn_inst - instance of a button on the export swf I want to be able to click to go to a different image in the parent SWF

    ___________________________

    Here are my codes:

    ------------------------------------------------

    the parent SWF:

    import flash.display.MovieClip;

    import flash.events.MouseEvent;

    var myLoader:Loader = new Loader();

    var url: URLRequest = new URLRequest ("projectgallery_cutlimestone.swf");

    myLoader.load (url);

    loadHandler function (event: Event) {}

    var projectgallery_cutlimestone:MovieClip = event.target.content;

    addChild (myLoader);

    trace (projectgallery_cutlimestone);

    function returnToAlbums (event: MouseEvent): void {}

    projectgallery_cutlimestone.returnToAlbums_btn_inst. Play();

    }

    projectgallery_cutlimestone.addEventListener (MouseEvent.CLICK, returnToAlbums);

    }

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

    ---------------------------------------------

    When I try, the SWF file loads fine, but when loading, this OUTPUT error is displayed:

    [focus]

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    hand / frame2)

    at flash.display::MovieClip/gotoAndStop()

    hand / preload1)

    --------------------------------------------------

    then, when I try to click on the returnToAlbums_btn_inst button, the OUTPUT error is displayed:

    ReferenceError: Error #1069: property is not found on flash.display.SimpleButton and there is no default value.

    function / < anonymous >)

    -------------------------------------------------

    I'm really new to Flash, so I don't know why it doesn't work.  The proceeding is labeled (I checked).

    OK, fixed.

    The main problem was by naming your classes of documents. In both files, the Document class has been the main. Flash Player implements cache all definitions of class so they can be reused and shared across loaded SWF files. This is really useful if you're aware of it. Otherwise, it may cause a headache. The errors seem to come out without apparent reason, etc. I've renamed the first Index swf Document class. Make sure you never have two classes of documents with the same name. You must also change the hand to CutLimestone if you're considering other galleries of loading.

    I also made a few small changes - be sure to copy it to new galleries so they all have the same behavior.

    Good luck!

  • How to make a 'yes' or 'no' radio button in a single page and "sync" the two to another page?

    Hello

    How the option button mirrored the choice made on page 3 of the 10 page? Thank you.

    Page 3:

    Page 10:

    Simply copy the fields from one page and paste them into the other. Just do

    of course, you check the option that says "buttons with the same name and choice".

    are selected in unison"under properties, Options tab.

  • Click on the button trigger programmatically after awhile

    I am doing an application that does not require the user to make a click of a button, the action occurs. I have need for this action to occur every 500 ms, but the thing is that I don't know how to do this programmatically, since I'm new to labview. what I want to do is take a picture of my web cam every 500 ms, and in another windows, I want to capture the full video. So I would have a video stream live on one side and a picture of one on the other side live. examples will be greatly appreciated.

    Thank you!


  • Click on the button to see the ListField

    Hi all
    Please help... I don't know what the problem
    I have two problems.
    I have the screen where BasicEditField and ButtonField... If I click Show me so ListField.

    Here is my source code...

    package com.screen;
    
    import java.util.Vector;
    import com.stepan.kutaj.bbmsearch.util.CustomListField;
    import com.stepan.kutaj.bbmsearch.util.ListRander;
    import net.rim.device.api.system.Bitmap;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.BasicEditField;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.decor.BackgroundFactory;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    public class Test extends MainScreen
    {
        private BasicEditField enterSearch;
        private ButtonField btnSearch;
        private String txtMenuAbout = "About";
        private Vector info = new Vector();
        private CustomListField myListView;
        private String Name;
        private Bitmap displayPicture = Bitmap.getBitmapResource("rounded.png");;
    
        public Test()
        {
            super(MainScreen.VERTICAL_SCROLL | MainScreen.VERTICAL_SCROLLBAR);
    
            addMenuItem(_viewAboutMenu);
    
            this.getMainManager().setBackground(BackgroundFactory.createSolidBackground(0x00e5e5e5));
    
            Bitmap borderBitmap = Bitmap.getBitmapResource("rounded.png");
    
            VerticalFieldManager m = new VerticalFieldManager(MainScreen.NO_VERTICAL_SCROLL);
            m.setBorder(BorderFactory.createBitmapBorder(new XYEdges(12,12,12,12), borderBitmap));
    
            HorizontalFieldManager h = new HorizontalFieldManager(MainScreen.NO_VERTICAL_SCROLL);
    
            enterSearch = new BasicEditField("Search : ", "");
            btnSearch = new ButtonField("Search");
            btnSearch.setChangeListener(buttonListener);
            h.add(enterSearch);
    
            m.add(h);
            add(m);
            add(btnSearch);
    
        }
    
        public boolean onClose() {
            System.exit(0);
            return true;
        }
    
        private MenuItem _viewAboutMenu = new MenuItem(txtMenuAbout, 10, 20)
        {
           public void run()
           {
               UiApplication.getUiApplication().pushScreen(new AboutScreen());
           }
        };
    
        FieldChangeListener buttonListener = new FieldChangeListener()
        {
            public void fieldChanged(Field field, int context)
            {
                if (field == btnSearch)
                {
                    Bitmap borderBitmap = Bitmap.getBitmapResource("rounded.png");
                    VerticalFieldManager s = new VerticalFieldManager(MainScreen.NO_VERTICAL_SCROLL);
                    s.setBorder(BorderFactory.createBitmapBorder(new XYEdges(12,12,12,12), borderBitmap));
    
                        for(int in = 0; in < 4; in++)
                        {
                            Name = "Name" + in;
    
                            String listTitle = Name;
                            String listDesc = "Description: ";
                            String listDesc2 = "Desc: ";
    
                            info.addElement(new ListRander(displayPicture, listTitle, listDesc, listDesc2));
                        }
    
                    myListView = new CustomListField(info)
                    {
                        protected boolean trackwheelClick (int status, int time)
                        {
                            Dialog.alert(" Selected :" + Name);
                            return super.trackwheelClick(status, time);
                        }
                    };
    
                    s.add(myListView);
                    add(s);
                }
            }
        };
    }
    

    and my problem is when I click on the button that show me ListField and context menu... and I do not know how to disable the context menu open...

    second problem is:
    in this list I generated 4 rows with unique name

    for(int in = 0; in < 4; in++)
    {
    Name = "Name" + in;
    
    String listTitle = Name;
    String listDesc = "Description: ";
    String listDesc2 = "Desc: ";
    
    info.addElement(new ListRander(displayPicture, listTitle, listDesc, listDesc2));
    }
    

    and I want to click on line, so I have to show for this specific line name...

    myListView = new CustomListField(info)
    {
        protected boolean trackwheelClick (int status, int time)
        {
           Dialog.alert(" Selected :" + Name);
           return super.trackwheelClick(status, time);
        }
    };
    

    and I have problem of course that shows me all name lines generated only modified (for example name03).

    can you help me please?

    Thank you

    Stepan

    (1) change

    btnSearch = new ButtonField ("Search");

    TO

    btnSearch = new ButtonField ("Search", ButtonField.CONSUME_CLICK);

    (2) I would have thought that you want something like

    protected boolean trackwheelClick (int status, int time)
    {
    ListRander selectedLine = (ListRander0 (this.getSekectedIndex ()) info.elementAt;

    String name = selectedLine.getName ();

    Dialog.Alert ("Selected:" + name);
    Return super.trackwheelClick (status, time);
    }

  • Tip action to show only a previous button on a slide so the learner clicked on the button Submit on Drag and Drop

    I am a user of long date Captivate and have dabbled with advanced Actions and Variables, so know just enough to get me in trouble. Hoping someone can help me with what I hope is a simple tip action:

    I am currently using CP8 and created a training where learners click on a map of building to go to different "rooms" to complete an interaction drag-and - déposer a certain topic related HR. The problem is that some of my learners test forget what 'rooms' they have already read and will click on those they have already visited. I added a back button, so that they can return to the map if they made a mistake, but now they are able to leave the slide without completing the interaction drag and drop.

    Basically, I need to hide the back button unless the learner has already completed (for example, the user clicks on the button submit to) the Drag and Drop interaction, but I'm not sure how to set up. Can anyone help?

    Thank you!

    Hide the button back to begin with. A tip action can be triggered by an event the success and failure of the & slipped. I guess that you will need at least two commands:

    • View the "back" button
    • Go to the next slide.

    It seems the simplest solution. You can also ignore the slide D & D when they enter a second time, but then you will need a Boolean variable to be turned on/off by these same events and a conditional action on which checks this variable and immediately jumps to the next slide when it is set to 1.

  • Problem of setting a value for the hidden item click on the button with processes action or pl/sql dynamic

    Apex 4.1

    Oracle 11g

    I have a page which consists of a main and several sub-regions area.  I have a pl/sql process in after the header SET_DISPLAY(:P400_DISPLAY:='MAIN';))

    Three subregions have a contional show where P400_DISPLAY = STORE.  It works in the hiding of the sub regions.

    Now, I want to change the value P400_DISPLAY to the STORE to show the subregions when I hit a button.

    I tried to create a dynamic action for the click on the Add button, but get the following error:

    The selected button uses a model of 'button' that does not contain the #BUTTON_ID substitution string #.

    I went to the models and found:

    Substitution strings

    Top

    Substitution strings are used in sub models to reference the value of the components. This report details use of string substitution for this model.
    Substitution string Referenced De Description
    #LINK #.YesModelTo be used in an attribute "href".
    #JAVASCRIPT #.NO.To be used in an "onclick" attribute
    #LABEL #.YesModelButton label
    #BUTTON_ATTRIBUTES #.NO.The attributes button
    #BUTTON_ID #.NO.ID generated button will be ID either the static button if defined, or if not will be a generated ID internally in the format 'B ' | [Internal ID of the button.

    I then tried to create a page process, pl/sql,: P400_DISPLAY: = 'STORE '; If the button is pressed.  The action of the button is submit page. However, it does not change the value of P400_DISPLAY and the subregions are hidden.

    Suggestions please on how to fix the template or change the value of P400_DISPLAY?

    The question of the root, it's that, even if you change the value of the element of your page, it is not visible to other areas of the page until it is in the session. Thus, any other action based on the value of the element of your page. the visibility of a control, a report based on the value of the item, etc. will be affected by changing the value of the item page until it has been changed in the session. Even after that, items are stored in the session, then you must do something to influence the revalued value. To see the effect of this, observe that your page will load and assesses the value of the element of your page, it sees which is the "MAIN" and mask areas. However, he didn't reassess after that.

    Then; your choices for this value set at the session are send the page, or use JavaScript to set the value in the session. If you use the latter, you will have to do extra work to make visibility tests be re - run, so, let's stick with the submit method.

    What you did above sounds correct to do this but, there are a lot of decisions, that you might have done that may have caused things to do not occur in the correct order.

    First of all, we will confirm that what I describe above is your problem. From the development environment, load the page, click on the button to change the value and submit. Now, click on the link marked the Session. He is always at HAND? If the answer is "Yes"; That's your problem.

    Let's start with your calculation after the header. You set it to * only * run if the current value of the element of your page is null? If this isn't the case, it's your problem.

    Load the Page-> Item set to 'Hand' by calculation-> click on the button--> Item set to STORE-> Submit-> Page Load-> point by calculating the value 'hand '.

    See the problem?

    Assuming that's not the question, you have created a branch to the same page, right? What is your process for the branch point? Is it * after * Validation, computation etc.? Because if not, you are not changing the value before that didn't get to submit.

    I bet that's the first question, but take a look at these.

    See you soon,.

    -Joe

  • The sign @ arrives with the ' button and the "comes up with the 2 - How can I fix?"

    The @ sign with the ' key and the 'types of sign with button 2.  How can I fix?

    It looks like your dad keybaord was put at the disposal of the UK.  This can happen if you accidnetally you press a special combination keys that been implemented as the means of getting that deliberately.  Here's what to do: -.

    1 go to Control Panel, region & language, keyboards & languages, Change keyboards, general tab, select the correct keyboard in your area * if isn't one already shown [click on Properties... to see a preview of the keyboard layout] or click Add... & Select a new keyboard from the list [while you are in the list, click on the Preview button to see a preview]. When you have finished adding a new keyboard, move it to the top of the list using the buttons on the dialog box.

    [* The region for which the keyboard was made and for which its route has been set.  [I understand that there is a "US International keyboard" who suffers from this confusion between change quite easily, unless you have a need for special versatility, choose a keyboard layout United States specific instead if you find that this is what has been implemented on your system]

    2 then go into Control Panel, region & language, keyboards & languages, Change keyboards, tab bar of language and, if you regularly change the language settings, make the hidden language bar.

    3 then go to Control Panel, region & language, keyboards & languages, change keyboard, tab Advanced key settings where you can see the shortcut key sequence that could you have this problem by chance. You will also see the change key sequence that you may want to change by clicking on the button change the key sequence and affecting the switch input language & keyboard Switch not [when I changed them, I had to set not to switch input language and accept the change, then return to the dialog box set not to switch keyboard configuration].

  • How we prevent external swf click do not affect the parent swf

    I use the loadMovie command to load an external swf (a short course of education) in the parent swf file. The parent swf file is an interactive exercise with several buttons to answer. The user can click a button to open and close the turorial on top of the exercise.

    If the user clicks at random on the tutorial, they can accidentally click the answer buttons in the swf below parent and hear signals correct and incorrect. When they close the tutorial, they see that the answers have been given and it has a score when they have not intentionally give all the answers.

    How to prevent clicks on the external register on the parent SWF swf? Thanks in advance for any help on this matter.

    Add a rectangle step in the lowest layer of your external swf and make sure that the size of the stage of the loaded swf file and load is the same.  convert this shape to a movieclip and assign an instance name (for example, bg_mc).  in Control Panel, you can use:

    bg_mc._alpha = 0;

    {bg_mc.onRelease = Function ()}

    }

    bg_mc.useHandCursor = false;

  • How do I click on a cell in a table control and display the value in a string?

    What I want to do is click on a cell in a table control and have the value of the cell in an indicator of the chain. Cell that ever I click on, I wish that the value to be displayed in the indicator.

    Thank you!

    Use the property "Change Position".

  • Is it possible to Reveal Click click sur-Masquer button?

    Hi, I am creating a reveal click on the button, but on the later, click on the same button, it hides what was revealed before. Is this possible?

    Thank you!

    I have several blog posts explaining the workflow. Take a look at this last (for CP9):

    1 share = 5 buttons toggle - Captivate blog

    Joint actions have the advantage that you can switch between the groups and objects as parameters. In your case: If you have several interactive objects on the same slide, that you want to give this toggle behavior, you will have to hide everything should appear and then display the appropriate item. By grouping all of the objects that can be done very easily with a shared action of two-order:

    Hide group

    Display the

  • Is it possible to have several break the view have need to click on the button 'continue' to continue?

    Is it possible to have several breaks notice require to click on the button 'continue' to continue?

    Yes I know it s crazy frustrating. It took me three days to figure out what I had to do.

    You could get my file but I Don t know where to download.

    You set movie (click the play next to the movie icon and choose reading). No automatic reading of the symbol or triggers tell the movie to play (if you intend to work they way I wanted, which is impossible to tell). There are probably other ways, but none of the 2000 I tried before worked.

    When you´ve set the movie to play, mark the spot on the timeline of the movie where you want to pause, and then click pause in playback of movies. Define a trigger on the chronology of the symbol with playback > stop all > 'your symbol name' in the symbol timeline just to the right of the pause. Then set to play again to the right of the shutter release. Make a button with action play chronology of 0

    It sounds very complicated, but it s not. Find how it was REALLY hard for me anyway

Maybe you are looking for