Movie Clip Button Not Working

I'm working on creating buttons right now as movie clips so when you roll over it they rise up. The third one "print" is jumping around like crazy and I can't figure out why. I've deleted and re-done it 3 times without luck. I've attached my file - if anyone can spot where I've made a mistake that would be great. Thanks!

Got it - realized the text wasn't staying as static text and was a movie clip before the final frame. So if anyone else has this problem, create a new keyframe on the ending frame, and make THAT the movie clip.

Similar Messages

  • Movie Clip Button not working within an Movie Clip

    Hi,
    I'm trying to create a movie clip on my my main timeline that has a movie clip button within it that pops up a box in the middle of the site that contains text and links. On Frame 1 I have the Up state, frame 2 the roll over state, and frame 3 my Down State (where Box appears).
    on (rollOut) {
        this.gotoAndStop("1");
    on (rollOver) {
        this.gotoAndStop("2");
    on (release) {
        this.gotoAndStop("3");
    I have stop(); on each of the 3 keyframes
    The problem is that on the main time line, the button is clickable but doesnt do anything
    Any suggestions, what am i missing?
    Cheers

    Ok, i have this assigned to a movieclip, is this wrong? Especially for MovieClip Buttons. Anyway, just tried this and it works!
    on (rollOut) {
        this._parent.gotoAndPlay(1);
    on (rollOver) {
        this._parent.gotoAndPlay(2);
    on (release) {
        this._parent.gotoAndPlay(3);

  • How do I stop a Movie Clip (Button) from working once clicked?

    Ok,
    I'm using a movie clip as a button to show content on a page, effectively its like a new page of the website. Problem is, with the script im using for it, once the content is show, the button is still active and if clicked again, will re-load the content. I want a way to effectively disable the button whist the content is shown.
    Thanks.
    this.services_inner.buttonMode = true;
    this.services_inner.addEventListener(MouseEvent.MOUSE_OVER, rollOver_services);
    this.services_inner.addEventListener(MouseEvent.CLICK, onClick_services);
    function rollOver_services(evt:MouseEvent):void {
    this.services_inner.play();
    function onClick_services(event:MouseEvent):void {
    MovieClip(root).mov.backgrounds.colour.gotoAndPlay(2);

    Thanks, that does stop it, however, i now need it to work again if a different button is clicked... there are 4 buttons (movie clips) in total, so I assume I'd just need to add the event listener back again on click of the others?
    This is the "Services" Button, with the event listener removal.....
    this.services_inner.buttonMode = true;
    this.services_inner.addEventListener(MouseEvent.MOUSE_OVER, rollOver_services);
    this.services_inner.addEventListener(MouseEvent.CLICK, onClick_services);
    function rollOver_services(evt:MouseEvent):void {
    this.services_inner.play();
    function onClick_services(event:MouseEvent):void {
    MovieClip(root).mov.backgrounds.colour.gotoAndPlay(2);
    this.services_inner.removeEventListener(MouseEvent.CLICK, onClick_services);
    This is the "Contact" Button, which when clicked would need to "re-activate" the Services button.
    this.contact_inner.buttonMode = true;
    this.contact_inner.addEventListener(MouseEvent.MOUSE_OVER, rollOver_contact);
    this.contact_inner.addEventListener(MouseEvent.CLICK, onClick_contact);
    function rollOver_contact(evt:MouseEvent):void {
    this.contact_inner.play();
    function onClick_contact(event:MouseEvent):void {
    MovieClip(root).mov.backgrounds.art.gotoAndPlay(2);
    this.services_inner.removeEventListener(MouseEvent.CLICK, onClick_contact);

  • Movie clip resize not working when image is loaded

    Hello,
    I'm having some strange luck in building an image slide
    show. I load the image paths into an array from an XML
    page and then step through the array elements w/ forward and
    back buttons.
    I have an empty image clip on the stage where I create an
    empty movie clip inside each time a new image is loaded. I load the
    image into the second movie clip like this:
    [code]
    _root.picsPage_mc.mc_pic_loader.mc_individual_pic_loader.unloadMovie();
    _root.picsPage_mc.mc_pic_loader.createEmptyMovieClip(
    'mc_individual_pic_loader', 1 );
    _root.load_movie_and_stop(
    _root.picsPage_mc.mc_pic_loader.mc_individual_pic_loader,
    _root.photo_array[_root.photo_index].image,
    _root.picsPage_mc.mc_pbar, 'regular_load');
    [/code]
    The load_movie_and_stop function is as follows:
    [code]
    function load_movie_and_stop( target_mc:MovieClip,
    movie_clip_to_load:String, p_bar:MovieClip, action:String )
    mc_loader._width = 0;
    mc_slider_bar.mc_drag_pan._x = 0;
    if( action != 'simple_load' )
    p_bar._visible = true;
    p_bar.bar._width = 0;
    var mclListener:Object = new Object();
    mclListener.onLoadStart = function( target_mc )
    if( action != 'simple_load' && action !=
    'regular_load' ){ target_mc.stop(); }
    if( action == 'load_and_play' ){ target_mc.play(); }
    mclListener.onLoadInit = function( target_mc )
    _root.resize_movie_clip(target_mc, 160, 120, 250, 190);
    if( action == 'load_and_stop' ){ target_mc.stop(); }
    mclListener.onLoadProgress = function( target_mc )
    if( action != 'simple_load' )
    percentLoaded = Math.floor( (
    target_mc.getBytesLoaded()/target_mc.getBytesTotal() )*100);
    p_bar.bar._xscale = percentLoaded;
    p_bar.txt_percent = percentLoaded + "% loaded.";
    mclListener.onLoadComplete = function( target_mc ){
    p_bar._visible = false; }
    var my_mcl:MovieClipLoader = new MovieClipLoader();
    my_mcl.addListener(mclListener);
    my_mcl.loadClip( movie_clip_to_load, target_mc );
    }//___endFunc___
    [/code]
    After the image is loaded into the movie clip, I then resize
    the image to be a specific width.
    The image resizing is done w/ this function:
    [code]
    function resize_movie_clip(clip_loader_name:MovieClip,
    max_width:Number, max_height:Number )
    orig_width = clip_loader_name._width;
    orig_height = clip_loader_name._height;
    aspect_ratio = orig_width / orig_height;
    if( (orig_width > max_width) || ( orig_height >
    max_height ) ) // If either dimension is too big...
    if( orig_width > orig_height ) // For wide images...
    new_width = max_height;
    new_height = new_width / aspect_ratio;
    else if( orig_width < orig_height )
    new_height = max_height;
    new_width = new_height * aspect_ratio;
    else if( orig_width == test_height )
    new_width = max_width;
    new_height = max_width;
    else { trace( "Error reading image size."); return false; }
    else { new_width = orig_width; new_height = orig_height; }
    clip_loader_name._width = Math.round(new_width);
    clip_loader_name._height = Math.round(new_height);
    [/code]
    Now, 98% of the time this works perfectly, but there is some
    certain times where the image resizing is completely ignored and
    the image gets loaded as it's normal size.
    Can anyone see why the image sizing get's ignored in some
    instance?
    Thanks for any help,
    Clem

    Found the solution that worked (used ._xscale and ._yscale
    instead of ._width and ._height
    [code]
    function resize_movie_clip(clip_loader_name:MovieClip,
    max_width:Number, max_height:Number, center_offset:Number )
    if( (clip_loader_name._width > max_width) || (
    clip_loader_name._height > max_height ) ) // If either dimension
    is too big...
    if( clip_loader_name._width > max_width )
    _root.picsPage_mc.txt_test = "func if 1";
    clip_loader_name._width = max_width;
    clip_loader_name._yscale = clip_loader_name._xscale;
    if( clip_loader_name._height > max_height )
    _root.picsPage_mc.txt_test = "func if 2";
    clip_loader_name._height = max_height;
    clip_loader_name._xscale = clip_loader_name._yscale;
    else { new_width = orig_width; new_height = orig_height; }
    [/code]

  • Movie Clip / Buttons

    I know this is probably something really easy to do I just
    for whatever reason cannot make this work. I am new to flash and am
    building an entire website. I used a template that I purchased and
    have been messing around with it and changing it. Problem is the
    buttons that are made are movie clips not actually buttons. I want
    to create a duplicate button, so I created a duplicate of the movie
    clip in the library. Problem is when I drag the movie clip into the
    movie and run the flash preview the new movie clips do not work
    like the other ones – meaning the other ones behave like they
    should – as a button (when I move my mouse over it the action
    works) but the new ones just appear as images. I know this must be
    a very easy fix and I must be doing something wrong. Any help would
    be greatly appreciated – (I might not have explained the
    problem accurately, so if more clarification is needed or an
    example needs to be uploaded let me know)
    Thanks a lot!!!

    Thanks that worked great, hope that wasn't too noob : (
    Well another problem as come up, I made another flash movie
    containing content in an xml file. When the swf is hosted and in
    the browser it works fine. However when i put that same swf in an
    html document and host it the xml never loads. Am i doing something
    wrong?
    Thanks in advance,
    ~Rob

  • Just learning...help on movie clip buttons

    I've tried tons of tutorials and i cant seem to get my movie
    clip button to work when i put the mouse over the button.
    i have included a screen shot of my time line and code.
    Layer 10 frame 1 is where all the script is.
    "actions" layer has my "stop" codes in frames 1 and 20
    time
    line and code
    Thanks for your help.

    ok if i change "home" to "this" in my code, do i also have to
    change my instance name for my button layer from "home" to "this"
    as well?
    and how do I cast e.currentTarget as a movie clip?
    sorry this is only my 3rd day playing around with Flash.
    Thanks!

  • Toggle clip keyfram button not working...

    I recently upgraded to the latest version of fcp and I'm trying to do a variable speed change.
    My toggle clip does not work. When I click on it, nothing happens. the tick marks that show the speed are not showing up. (I have also tried opt T) anyone know if I have a setting wrong???
    Thanks

    Thanks, that was it...
    I right clicked and had to select "keyframe editor" and "speed indicators" under video.
    Solved

  • Back button not working in safari

    back arrow button not working in safari.

    Safari 6
    Empty Caches
    1. Safari > Preference > Advanced
        Checkmark the box for "Show Develop menu in menu bar".
        "Develop" menu will appear in the Safari menu bar.
        Click Develop and select "Empty Caches" from the dropdown.
    2. Quit Safari if open.
        Option click the "Go" menu in the Finder menu bar.
        Select "Library" and then "Caches".
        Look for the folder 'com.apple.Safari"
        Right click "com.apple.Safari" and select "Move to Trash"
        Relaunch Safari.

  • Hi, i am a bit of a newbie at AS & need some help applying it to a movie clip button

    I have created a movie clip button but am stuck with the actionscript. I have created the rollover and rollout for this movie clip button but i want it to do 2 things after this i want it to go and stop on the first frame of a movieclip which has my content on it called portfoliogallery_mc (which is also the same instance name for it) when you then click the button i want it to go and play frame 11 of that movie clip portfolio gallery_mc.
    Here is my current actionscript i HAVE Flash 8 on my comp that i am currently using.
    Please note my actions are on a layer called actions and not on the movieclip button itself.
    nxtimagetwo_mc (is the movie clip button/instance of mc)
    THE CODE I HAVE USED
    this.nxtimagetwo_mc.onRollOver = function() {
    nxtimagetwo_mc.gotoAndPlay("_over");
    this.nxtimagetwo_mc.onRollOut = function() {
    nxtimagetwo_mc.gotoAndPlay("_out");
    portfoliogallery_mc.gotoAndStop(1);
    portfoliogallery_mc.gotoAndPlay(11);
    currently it is playing to frame 11 not stopping at frame 1 and stops on frame 20 where i have a stop action. I also have a stop action on frame 1 of that movie clip.
    What I want it to do is first stop at frame 1 of that movie clip and when the button is clicked again to go and play frame 11 of that same movie clip.
    Basically what i want the mc button to do is 2 things automatically stop the mc for the first content and when button is clicked let the content fad out and play to where the next stop action is set to in the Movie Clip.
    Nothing to with the above www.rsquareme.co.uk is my current portfolio website if you would like to check it out it is not fully complete yet.

    it doens't make sense to execute:
    portfoliogallery_mc.gotoAndStop(1);
    portfoliogallery_mc.gotoAndPlay(11);
    only the 2nd line of code will be effected.
    i know you want to control 2 movieclips.  what are the instance names of the two movieclips and what do you want to occur in each of those movieclips.
    or, do you want to control 1 movieclip and have it play a certain sequence of frames followed by another sequence of frames?

  • Cursor stops movie clip buttons

    I have animated movie clips as buttons. When the animation
    reaches the point where the cursor sits on the button it vanishes.
    Here is the script I have on the main time line:
    //news_mc is the instance name of my movie clip button
    news_mc.addEventListener(MouseEvent.CLICK, newsPage);
    news_mc.addEventListener(MouseEvent.MOUSE_OVER, newsRollOn);
    news_mc.addEventListener(MouseEvent.MOUSE_OUT, newsRollOff);
    news_mc.buttonMode = true;
    function newsRollOn(event:MouseEvent):void {
    news_mc.gotoAndPlay("in");
    function newsRollOff(event:MouseEvent):void {
    news_mc.gotoAndPlay("out");
    function newsPage(event:MouseEvent):void {
    gotoAndStop("news");
    I know there is something about
    news_mc.mask = ??? I'm not sure if I sure what part of the
    mask I use. I have a layer that has the button background (instance
    name - background) and then the 2 layers that form the animated
    mask - the mask layer contains a copy of the button background
    (instance name - background2) and then the animated later of the
    mask contains a gradient that slides over the button (instance name
    - masker).
    What is happening?

    ROLL_OVER and ROLL_OUT rather than mouse_over and _out did
    the trick!

  • Movie clip button navigation

    hey, i'm pretty new to flash and i'm attempting to create a
    site with different scenes representing different pages.
    i have four movie clip buttons. One of these buttons should
    link to the "about me" page, which so far only has another movie
    clip with pictures. from the main page i'd like a user to be able
    to click on the about me button/movieclip and the pictures should
    appear.
    i've been using the code:
    on(release){
    _root.gotoAndPlay("about_pictures")
    however whenever i run the preview, nothing happens when i
    click the button.
    main timeline includes :
    about me > pictures with a motion tween(pictures_about_mc)
    > the movie clip of pictures(pictures_mc).
    background
    buttons
    actions
    any help would be appreciated. thank you in advance.

    If you are genuinely using scenes, then your gotoAndPlay()
    call needs to include the scene name and the frame...
    gotoAndPlay("about_pictures", 1)
    and "about_pictures" needs to be the name you assigned to
    that scene in the scenes panel.
    Using scenes and the way you coded the button are both not
    clean ways to code--things end up being hidden from plain site.
    Instead of scenes, just use the one maintimeline. Instead of
    on(release, etc) use myBtn.onRelease = function (){...} in the
    actions layer.
    Makes life so much easier in the long run, especially a year
    from now when you're trying to change some code and can't find
    where you hid it.

  • Movie Clip Button - Action Script issues

    This is a two part question:
    1. I have my movie clip button, "mcAboutus" then inside my
    movie clip I have 5 layers: actions, labels, text, animated
    rollover("mcAboutusover"), animated rolloff("mcAboutusoff"). On the
    labels layer I have _up, _over, _off. On the _up is the text layer,
    on the _over is a movie clip of the animated
    rollover("mcAboutusover") which is 90 frames, and I want to loop as
    long as the mouse is over the text. And the _off has the
    "mcAboutusoff" movie clip.
    So I was able to have the rollover work, but when I roll off
    the rollover animation continues on until the end of the animation.
    I understand it has to do with the fact that it's a movie clip, but
    how do I point it to go into the movie clip and read the animation
    and that on the last frame of the animation I have a
    "gotoAndPlay(1);" to have the animation continue looping as long as
    it's in a rollover state?
    here is the code I have for the _root:
    this.mcAboutus.onRollOver = function() {
    mcAboutus.gotoAndPlay(_over);
    this.mcAboutus.onRollOut = function() {
    mcAboutus.gotoAndPlay(_off);
    The other problem I am having is that once the I have rolled
    over the animation once, the button dies and won't let me rollover
    it again?
    Aside from the "stop();" action in the mcAboutus movie clip
    symbol, I don't have any other actions, should I put items in the
    different movie clips I have set up?
    ALSO.... The reason that I have the main movie clip button,
    and two movie clips residing in the mcBtn is I wanted light rays to
    be glowing from the text, and I was having a hard time getting what
    I wanted from Flash, so I created in After Effects and exported two
    .SWF files. So those .SWF files are the _over and _off states in
    the mcBtn. I am having a very hard time controlling those Movie
    Clips within the main MC Button. Please, any help would be greatly
    appreciated.

    quote:
    Originally posted by:
    kglad
    mcAboutusover should be a movieclip that has your over
    animation and it should have a stop() on its last frame. it should
    be placed on your _over frame in mcAbousus' timeline. you should
    then use:
    Ok, so I have my main timeline, in it has my
    mcAboutus>> then inside that I have three labels. _up which
    has the static text then on frame 5 I have the _over which has the
    keyframe for the mcAboutusover, this animation is 90 frames, then I
    have on frame 10, the _off for the RollOut state, and I have a 10
    frame animation on that one. I still can't get it to continue on
    after the initial rollover, the button still dies down.
    I am going to redo everything in a presentation timeline,
    based on Total Training and see if that helps my problem out any,
    and will get back to you tomorrow with more info. Thanks

  • Frames panel: looping button not working

    Frames panel: looping button not working
    I use Fireworks MX 2004
    Frames panel: looping button:
    When I set looping to 2, it stops after 2, as it should.
    All other values, i.e. 1, 3, 4 etc will go on 'forever'.
    What's wrong?
    Thank you for your help.
    Adrian

    This is just a simple exercise.
    http://www.tudo.co.uk/testing/looping_problem.png
    http://www.tudo.co.uk/testing/looping_problem.gif
    In the png file, Frames panel, bottom left, where I can set
    looping to
    any number, including 'forever', I set the looping frequency
    in this
    case to 1. So I expect it to stop after one movement up into
    the right
    top corner and return to bottom left.
    When I play this in 'original' or in 'preview' in Fireworks,
    the
    animation moves continuously instead of stopping after one
    round. That
    is my 'problem'. Or can I not expect this to work while it is
    still in png?
    When I export it to gif, it works exactly as wanted - once
    only.
    Adrian
    Alex Mari�o wrote:
    > adrian,
    >
    > Could you post the png file online and explain exactly
    what you are
    > trying to achieve?
    >
    > alex
    >
    > adrian stock wrote:
    >
    >> Frames panel: looping button not working
    >>
    >>
    >> I use Fireworks MX 2004
    >>
    >> Frames panel: looping button:
    >>
    >> When I set looping to 2, it stops after 2, as it
    should.
    >>
    >> All other values, i.e. 1, 3, 4 etc will go on
    'forever'.
    >>
    >> What's wrong?
    >>
    >> Thank you for your help.
    >>
    >> Adrian

  • Logitech mouse buttons not working in photoshop cc 2014

    logitech mouse buttons not working in photoshop cc 2014 winds 8.1. Is this a common problem?
    I have updated the latest drivers and have a few buttons programmed with keyboard shortcuts that used to work in previous versions of Photoshop but don't work now.
    Scrolling with mouse in bridge stopped working in cc butI see it is now working.
    any ideas?

    Many Photoshop extensions are not compatible with Photoshop CC 2014 for Adobe removed support for Flash Panels in CC 2014. Many extensions panels are flash based.  Check with the developer to see if their blendmein extension works with CC 2014.
    Adobe does not maintain Photoshop so it backward compatible with prior versions of Photoshop.  This brakes things like action scripts plugins extensions etc. Keep old version of Photoshop installed....

  • IPhone 4 middle button not working

    Having problems with the iPhone 4 middle button not working anyone else with the same problem ?
    Thanks

    i have the same problem. since you're software is already iOS 5.1 go to settings>general> accessibility>the settings after triple click home, i forgot what is it called but that would help.

Maybe you are looking for