Buttons that run in different video clips?

So ive introduced some buttons in a video, but I want to get the performing actions in a clip that is located in another clip.

For example, the code below is what I joined to one of my buttons. The 2photosMC2 of Movieclip is within a clip that is DIFFERENT to those where the buttons are stored. How can I script so that the button actions activate the correct clip?

{We (Release)}

photosMC.gotoAndPlay ("img 02").

}

With the above code, photosMC is the clip that I want to play and img 02 is in this framework. The button with this code in is in a different clip from that occupies photosMC

Any ideas?

Thank you very much

Dave

If you get the code to join the buttons, you may find it is easier to manage this targeting, you will need to do.  If you assign instance names to your buttons and movieclips, then you can have your code in the main timeline and assign the interaction to objects since.  For example, say it, you have a button named "tfoss" inside a movieclip named "btnHolder" which is located on the main timeline.  And you want to have this button tell a movieclip named "mc" that is inside an another movieclip named "mcHolder", which is also on the main timeline.  Then, in the main timeline, you can use...

btnHolder.btn.onRelease = function() {}

mcHolder.mc.gotoAndPlay ("img02");

}

To do as you wish would require using _root and _parent, which is usually preferable to avoid targets...

{We (Release)}

_root.mcHolder.MC.gotoAndPlay ("img 02").

}

or maybe...

{We (Release)}

_parent.mcHolder.MC.gotoAndPlay ("img 02").

}

Tags: Adobe Animate

Similar Questions

  • Need help buttons toggle, nested set of video clips!

    Problem # 1

    I have a clip I want to trigger it with a toggle button, inside this clip I have various video clips in different layers that should play at the same time.

    The problem here is that when I press on enter and watch the clip on the stage, each layer plays but when I do the film do not play a few layers. How can I make all play?

    Problem # 2

    I did a toggle button on a clip, now I need to be able to do things more:

    1. the inactive button after which is clicked

    2 - Added feature to it so that it plays a nested video, how do I code? I have to add an event listener or a mouse event?

    3-make it stay flipped until another button is clicked:

    When a button is activated, it will remain pressed until another button is clicked then it releases automatically. (is it even possible?)

    Thank you!!!

    Problem #1

    If you have some movieclips in layers, order them to play

    Problem #2

    1. remove the event listener

    2. you must add code to say what a nested video should play

    3 keep the identity of the toggled button and have a function that resets using this variable

  • My browser doesn't look like video tutorials. Some parts have built-in, but there are buttons that show in the videos that aren't in my browser.

    My browser window does not resemble the one in the video tutorials. Some of the buttons show you in the videos are missing in my version. When I click on "about", he said: I'm under 4.0.1 i want cool buttons like everyone else!

    The new interface is the default on Windows Vista and Windows 7 only. To get it under Windows XP, you must hide the menu bar. Do, in the view menu, select Toolbars, then click on the entrance to the "Menu bar".

    If you need to access the menus, you can press Alt or F10 to display temporarily.

    If you want to change the position of the tab bar, you can right click on a toolbar and click the entry "Tabs at the top".

  • How can I draw a line around the edge of a piece of property that I shot a video clip of 13 elements?

    How can I draw a line around the edge of a piece of real estate in a video clip with 13 elements?

    KING OF THE SKY

    First 13 items on what operating system? Have you updated 13 to 13.1 still using Help Menu/updates to date of an open project?

    Your question immediately... you could try something like this

    In this scenario, you start with your video on video 1 track with the Timeline indicator placed in the appropriate location of content timeline.

    The Titler line file created will be automatically placed at the position of the indicator in the timeline.

    Text Menu/New/default of titration / and select the Section forms.

    The Titler file goes to Video Track 2 above the video on the video 1 track.

    Select the line tool in the section shapes and draw your line on screen correspond to the where you want it to appear in the video below.

    Your image of the line is the line on transparent background where the content below shows through the transparent areas in this image of the line.

    Please consider. If any questions or need any clarification on the above, do not hesitate to ask.

    Thank you.

    RTA

  • Error #1009 with a movie clip button that is located in a clip

    OK, so I have a button in a movie clip of mc causing a great error problem which continues to repeat.  My code is extremely simple:

    Stop();

    infoGraphicDisparity.addEventListener (MouseEvent.CLICK, disparityGO);

    function disparityGO(event:MouseEvent):void

    {

    MovieClip (this.root) .gotoAndPlay ("disparity");

    }

    I used these types of buttons, a million times, and now CS6 doesn't like it.  Any help is very appreciated.  Thank you

    I have no idea which is MAIN, but...

    stage.addEventListener (Event.ENTER_FRAME, enterFrameHandler);

    Listener is originally the function that seeks to target the HAND at the rate of your file, and she continues to do if you move in the 2 structure.  If there is no HAND in box 2, then it is your source of error.  Try to remove this event listener before going to box 2 and the problem should go away.

  • How can I load an external SWF into a clip that is inside another video clip?

    Hello.

    I create my first flash (actionscript 3.0) Web site, but I'm stuck with a visual effect, I want to create.
    I have a window on my website called contentWindow. Whenever you click on a button, this window is supposed to leave the scene, loading the requested content and back on the scene.
    The sliding window is a clip with 83 frames, 21 to enter the stadium, 21 to leave the scene once again, 20 for anything (it's just to simulate the load time) and 21 to the back on the scene.

    Now, my goal is, when the user clicks a navigation button, the window leaves the scene, loading an external SWF with the content and then returned to the scene.

    I have the clip of 'window' with an instance name of "contentWindow". Inside there is an another film clip with an instance name of "contentLoader. The content that the user has requested must appear inside the 'contentLoader.

    Now, when the contentWindow leaves the scene, I get this error message:

    Quote:
    TypeError: Error #1009: cannot access a property or method of a null object reference.
    at rwd_fla::MainTimeline/trigger()
  • Next/previous buttons that move between different animations.

    Gyazo - 0260741e4ce22250745972c4f8122aef.png

    Here is a picture of my interface, I have 5 buttons: left, right, 3 buttons with animations, my code shows any errors, but when I try to run the swf file, nothing happens, here is my code, any suggestions?

    package {}

    import flash.display.MovieClip;

    import flash.events.MouseEvent;

    public class animationinterface extends MovieClip {}

    var interfacewindow:Interfacewindow;

    var interface1:Interface1;

    var animation3:Animation3;

    var animation2:Animation2;

    var animation1:Animation1;

    public void animationinterface() {}

    interfacewindow = new Interfacewindow();

    Interface1 = new Interface1();

    animation3 = new Animation3();

    Animation1 = new Animation1();

    animation2 = new Animation2();

    addChild (interface1);

    Add event listeners

    Interface1.buttonLeft.addEventListener (MouseEvent.CLICK, at left);

    Interface1.buttonRight.addEventListener (MouseEvent.CLICK, right);

    interfacewindow. Animation1.addEventListener (MouseEvent.CLICK, an1);

    interfacewindow.animation2.addEventListener (MouseEvent.CLICK, an2);

    }

    Event handlers

    function left(event:MouseEvent): void {}

    addChild (animation1);

    removeChild (interface1);

    }

    function right(event:MouseEvent): void {}

    addChild (animation2);

    removeChild (interface1);

    }

    / * function an1(event:MouseEvent):void

    {

    addChild (animation1);

    removeChild (interfacewindow);

    }

    function an2(event:MouseEvent):void

    {

    addChild (animation2);

    removeChild (interfacewindow);

    }

    */

    }

    }

    The file 'animationinterface.as' of class must be saved in the same directory of the project, flash & swf files, and then test the animation...

  • I have an interactive PDF form with buttons that run the Script - Action - Up mouse - file > save as.

    Works fine on the desktop. Customer now has this on their website and the buttons save as now do not work in different browsers... IE 8, Chrome, etc. Any suggestions?

    Hello Cara,

    Please refer to this link Why doesn't the submit button work on my PDF form?.

    Kind regards

    Nicos

  • interactive button that defines the different background colors?

    Hi, I was wondering if it is possible to do a button where it is possible to change color every time you click on it, so I can use it as a label.

    The button is white in the first State, when you click on it, it becomes green, when you click New, it becomes orange and when you click on it again, it turns red.

    Is this possible? Any help is appreciated.

    Not very difficult to do this kind of button in InDesign using show/hide fields s. If it s is more complicated, so West more colors, it can become much more time to do.

    Here´s my quick example, done with InDesign (open with Adobe Reader or Acrobat, as Steve mentioned, other works of won´t of readers as well):

    https://DL.dropboxusercontent.com/u/17227987/buttons.PDF

    If that s what you are looking for, do not hesitate to explore the original InDesign file:

    https://DL.dropboxusercontent.com/u/17227987/buttons.indd

    Note that West of 4 buttons, one for each color, they are just stacked. Button´s visibility is simply changed to a click button visible will hide and next color will be shown etc...

    The question is what your button is supposed to do. You can associate several actions to a button it s if possible to do something else too - when you click this button...

  • Change in the depths of video clips with button click

    Hi all

    I have a file work on that has 4 different video clips on a layer which, when clicked, will zoom in (made with the Tween span in the timeline panel).

    The question I have, is that when I click on one of them, they are arranged in a way that does not work for what I need. I click on one and it works, but it is hidden by the clip that is above in the hierarchy. Click on another, zooms, but is partially hidden by another.

    My question is: is he still in AS2 to code these so that when it is clicked on, it will be the first place of the heriarchy? While I can encode all like that so that whenever a user clicks on, it goes to the top, so it is not hidden?

    Thank you

    You can also use a number.  for example:

    {mc.onRelease = function ()}

    this.swapDepths (this._parent.getNextHighestDepth ());

    }

  • Helps the assignment buttons that control video clips

    I'm pretty new to flash and my teacher gave us an assignment with little help or tutorials.

    He wants us to create a SWF file that has a House and it is the front yard and two buttons.

    A button that says who says the sunset and Sunrise.

    When I push the button of the Sunrise, the Sun must rise above the House and stay there.  When I push the button to sleep the Sun, it must set - and then a UFO must land on the lawn.


    So I think I have a pretty good understanding about the assignment, but the actionscript code is shake me up.  How do I make buttons that will control the video for sun to stay mounted above the House and then set?  The UFO is a whole new question.   The button of the Sun should make Sun down and then a UFO land on the lawn.

    Please help explain/link me to the good tutorials.   One thing that worries me is that the Sun will be mounted - and then stay on top of the House, even if I click on the button of the sunset.

    Your help is greatly appreciated.

    You should talk to your professor or classmates about of what you already know of your lessons which would allow you to do these tasks.  The risk you run in seeking help as it becomes a solution that your teacher would never expect to have knowledge of, one that you could never explain how it works... which can be detrimental to your teacher you coast.

  • Buttons and video Clips (in and out)

    I'm working on my own website for my graphic design work and I use flash for the introductory movie, you can either ignore or after a time, will send you directly to the home page.

    On this introduction movie (which animatedface_mc sick call) I put two other clips with flashing eyes (left and right). The eyes would be constantly flashing, this page is in progress. That we work.

    On the side are buttons of the names of celebrities and once clicked on adding video clips to the main animatedface_mc. For example if I clicked on the monroe_mc, it adds this famous Marilyn Monroe mole (using the mask or opacity, depending on the function of the face) on the animatedface_mc. If I clicked on tyson_mc, he adds his face tattoo. I used the following code to it:

    monroe_btn.addEventListener (MouseEvent.CLICK, monroeshow);
    function monroeshow (event: MouseEvent) {}
    monroe_mc. Play();
    }

    tyson_btn.addEventListener (MouseEvent.CLICK, tysonshow);
    function tysonshow (event: MouseEvent) {}
    tyson_mc. Play();
    }

    There are at least 10 other buttons on this page, but I just realized that some of the features of the face are running too and so seems not good. I was wondering if there was a way that when you click a button, it turns off the video clips which are already turned on, so maybe that tyson_mc and chaplin_mc were already, and I clicked on monroe_btn, monroe_mc shows to the top and tyson / video clips chaplin may be disabled. Tyson and chaplin buttons would still be clickable, it's just that their film clips, if already, could be put off.

    I tried the following, but it doesn't seem to work: tyson_mc.enabled = false;

    Thanks in advance for the help.

    You need not have a frame on the main timeline 2 If you have any framework 1 now.  You can use tyson_mc.visible = true;  When it is click on the button of tyson as if it was previously invisible, it becomes visible again.

    That would be the basic series of commands by clicking a button that is capable of producing...

    function resetMCs() {/ / shared by all buttons}

    monroe_mc.gotoAndStop (1);    or monroe_mc.visible = false;

    tyson_mc.gotoAndStop (1);       or tyson_mc.visible = false;

    }

    monroe_btn.addEventListener (MouseEvent.CLICK, monroeshow);
    function monroeshow (event: MouseEvent) {}

    resetMCs();

    monroe_mc. Visible = true;

    monroe_mc. Play();    See the comments below
    }

    tyson_btn.addEventListener (MouseEvent.CLICK, tysonshow);
    function tysonshow (event: MouseEvent) {}

    resetMCs();

    tyson_mc. Visible = true;
    tyson_mc. Play();       See the comments below

    }

    If mole and tatoo movies don't really animate at all and tell them to play fair, then you could end up with several images for them and only control their visibility instead of telling them to play.

  • When you click on the Cancel button, avoid running query

    Hello

    I'm going to the jsff a page to another at the click of a button

    In the second page I go back to the 1st page when the Cancel button is clicked
    But when clicked on this button cancel my request get rerun and takes a long time to come back on the 1st page
    This is a read only vo interview... How can I avoid running query on a button click Cancel

    Thank you

    Real question is: "why is your query run when you press the Cancel button?
    If your application is already running on the first page, this should not happen unless you:
    -to perform an operation on the Cancel button that runs the query
    -changed "Refresh" of your iterator property
    -perform rollback

    Dario

  • variables inside video clips

    How to get the value or change variables that are contained in video clips of _root?

    I know it must be very basic, but I can't understand it.

    TKS in advance

    use the path to the movieclip. so, if you have a clip on the timeline of _root with instance name parentMC and it contains a movieclip with instance name childMC and childMC contains a variable say var1, you can use:

  • Dynamically place video clip on the corner and the overall position with a mouse click (button) that is always running.

    Anyone know the code to find the global positioning of the coordinates X and Y of a click of a button which turns constantly,
    then the code when you click the button, it displays a clip on the top-(position de x et y lorsque vous cliquez dessus) to the angle that you clicked (so the buttons are always rotating so others can click on them where they are)

    to explain the context, I am designing a model to the top of an interactive round table
    When someone approaches her and click on one of the buttons that move, it reads where the person has clicked on it and open a new box (video clip) where they have clicked on it (on the corner) so is not backwards if you're upstairs.

    I have included my .fla file that shows the four navigation buttons and a small diagram
    explain what I'm trying to do.

    you don't have a class named MethodAnimalMC.

Maybe you are looking for

  • Can't see C:\ drive after starting via SD card on an M200

    Hello. I get a unmountable_boot_volume blue screen during windows loading so I'll try to repair or reinstall if necessary things. I was able to boot from the SD card and 9 (Targus CD-ROM) option seems to work on my CD-ROM drive external Iomega. The q

  • Satellite A200-1HV - can not turn on Wi - Fi

    Hello On my Satellite A200-1HV, I can't turn on Wi - Fi.I pressed Fn + F8, but had always disable the Wi - Fi adapter.Can someone help me? Thank you.

  • How does solve a code status 6009

    Hi im using a USB ni6009 card and am now getting an error of State-201003 code. I have a few of these in my Studio, so I used another, no problem, it works fine. question: is the 6009 death now, is there a return policy. He had previously worked, I h

  • A usb game controller will work on a HP ENVY with the game of the GE FORCE

    I have a new Hp Envy with the GE Force games installed. I want to use a standard usb game controller similar in its design to the Xbox or Playstaion versions. Will be a generic controller is compatible with the GE Force games?

  • Windows explored hangs constantly

    I'm having a problem with windows vista.It works well until the Windows Explorer is not responding, what she does soon.Then the whole machine will freeze and not close.The Task Manager does not meet the attemtps at the end of task.I then turn off, st