AS2 - a button that goes in and plays the next image in a moveiclip

Hi all

I have a button (called wrong_btn ) that I want to order a moveiclip ( called lives_mc ).

Gameplay: If you click on wrong_btn , a life is removed.

lives_mc.JPG

Visually, lives_mc is a bottle that is empty and this is done through the frameworks within the mc.

How can I get a button to move a picture to the image until the bottle is empty?

Thank you very much

Sophie

{wrong_btn.onRelease = Function ()}

lives_mc.nextFrame ();  If the keyframes are adjacent to each other.  Otherwise, use Stop

}

Tags: Adobe Animate

Similar Questions

  • If multiple Hittests equal to true, go and play the next image

    Hi all

    I'm trying to finish a project and run on this problem, now that I'm creating a drag and drop game and the last game, you can file

    in other parts, what I want to do, is that when everyone is in the picture next gotoandplay correct spot. This is my current code,

    Thank you

    If (one_mc._droptarget == "/ onedef_mc" & & two_mc._droptarget == "/ twodef_mc" & & three_mc._droptarget == "/ threedef_mc" & &)
    "four_mc._droptarget ==" "/ fourdef_mc" & & five_mc._droptarget == "/ fivedef_mc" & & six_mc._droptarget == "" / sixdef_mc "& &"
    "cave_mc._droptarget ==" "/ cavedef_mc" & & eight_mc._droptarget == "/ eightdef_mc" & & nine_mc._droptarget == "" / ninedef_mc "& &"
    "ten_mc._droptarget ==" "/ tendef_mc" & & eleven_mc._droptarget == "/ elevendef_mc" & & twelve_mc._droptarget == "" / twelvedef_mc ");"

    This is the statement, I'm not sure how to implement the gotoandplay...

    Does make sense?

    Thank you

    If you have no code to check if all the clips were dropped on their targets, there is no way to code can work.

    use something like:

    one_mc.onPress = function()
    {
    one_mc.StartDrag ();
    };
    one_mc.onRelease = function()
    {

    checkF();
    if(one_mc._droptarget=="/onedef_mc")
    {
    align the Sprite3
    one_mc._x = onedef_mc._x + (onedef_mc._width-one_mc._width)/2;
    one_mc._y = onedef_mc._y + (onedef_mc._height-one_mc._height)/2;
    one_mc.gotoAndPlay ("Success");
     
    the code in italics don't look right
    } else {}
    (one_mc._droptarget == "" / onedef_mc "")
    {
    align the Sprite3
    one_mc._x = onewrong_mc._x + (onewrong_mc._width-one_mc._width)/2;
    one_mc._y = onewrong_mc._y + (onewrong_mc._height-one_mc._height)/2;
    onedef_mc.gotoAndStop ("fail");
    };


    };
    one_mc.stopDrag ();
    };

    function checkF() {}

    If (one_mc._droptarget == "/ onedef_mc" & two_mc._droptarget == "/ twodef_mc" & three_mc._droptarget == "/ threedef_mc" &)
    "four_mc._droptarget ==" "/ fourdef_mc" & five_mc._droptarget == "/ fivedef_mc" & six_mc._droptarget == "" / sixdef_mc "&"
    "cave_mc._droptarget ==" "/ cavedef_mc" & eight_mc._droptarget == "/ eightdef_mc" & nine_mc._droptarget == "" / ninedef_mc "&"
    "ten_mc._droptarget ==" "/ tendef_mc" & eleven_mc._droptarget == "/ elevendef_mc" & twelve_mc._droptarget == "" / twelvedef_mc ") {}"

    gotoAndPlay (_currentframe + 1);

    }

    }

  • my system does not start upwards - don't stop progression blue bar that goes round and round. I can boot into safe mode and safe mode with networking mode.

    my system does not start upwards - don't stop progression blue bar that goes round and round.  I can boot into safe mode and safe mode with networking mode.

    Hello

    As you are able to boot to the desktop in Mode safe, it means that the third-party application prevents the computer from starting in normal mode. To check you can configure the computer to clean start State and then try to boot into normal mode and check what is happening. To set up its own start-up follow the link below.

    http://support.Microsoft.com/kb/310353

    If the problem does not continues when the computer is in the clean start State follow the steps listed to identify which application is causing the problem.

    Note: When you are finished troubleshooting, follow step 7 article to start on normal startup.

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Hello, I have Wacom product code in Exchange for buying one. On the CC here there is a button that says "Download" (and not "download trial"), so it seems for the status. But when I press it it says download started, but in fact it didn't.

    Hello, I have Wacom product code in Exchange for buying one. On the CC here there is a button that says "Download" (and not "download trial"), so it seems for the status. But when I press it it says download started, but in fact it didn't. What seems to be the problem?

    Hi Lex % 20Draijer,

    You can try the same thing using a different browser.

    or you can download Creative Cloud via https://www.adobe.com/creativecloud/desktop-app.html

    You can also see help document https://helpx.adobe.com/creative-cloud/help/manage-apps-services-desktop.html

    Hope this will help.

  • My students use the filling and the signature on a package of .pdf tool I'm going to fill them, but when they record and open the next day their text boxes, that they created with the bucket fill tool and sign all went and many are overlapping.

    My students use the filling and the signature on a package of .pdf tool I'm going to fill them, but when they record and open the next day their text boxes, that they created with the bucket fill tool and sign all went and many are overlapping.

    Hi chbradshaw,

    Instead of filling & signature, tool, use the text comment comment tool, KB doc option. using comments in the PDF, Adobe Acrobat DC files (keyword: Add a text comment).

    Kind regards

    Nicos

  • How to play the next song with the repetition of the same song over and over again

    How to play the next song with the repetition of the same song over and over again.

    In this screenshot, shot an Apple article, you can see four icons at the bottom of the screen. Look at the third argument of the right, with the two arrows going in a circle. It's the repeat function. When turned on, you can tap the icon to turn it off.

  • I would like to know if the IPOD Nano is able to connect and play the music of my Time Capsule Machine. Thank you

    I would like to know if the IPOD Nano is able to connect and play the music of my Time Capsule Machine. Thank you

    N ° iPod nano can play that media that is loaded on it.

    TT2

  • I lost this Firefox orange rectangular button that used to be in the upper left corner of my screen? How can I get that back?)

    I lost this Firefox orange rectangular button that used to be in the upper left corner of my screen? How can I get that back?)

    Most likely, you are showing the menu bar. Right-click on the toolbar area and uncheck the Menu bar - the Firefox button should appear. You can switch from one to the other.

  • I want to play a full album, but no matter the song of the witch I start on after it is made to play this song it jumps to the next album (by the artist). and then the next album, I want to hear played very well. Shuffle seems to be disabled. Ignore durin

    I want to play a full album, but no matter the song of the witch I start on after it is made to play this song it jumps to the next album (by the artist). and then the next album, I want to hear played very well. Shuffle seems to be disabled. Jump then dragging seems to be disabled. Not only this one album. It seems to do that. Thanks for your help. -Nick

    Select all the tracks in the album. -Click right/option. Click check selection on the shortcut menu.

    TT2

  • If I change a file name in my ITunes library, iTunes will find changed leadership and play the song?

    I'm trying to back up my iTunes files, but my classical music has too long file names?  If I abbreviate the names of file, iTunes will find these files and play the songs? Also, what is the best way to change a name of file to an album at the same time?

    I'm not as familiar with the Windows platform, but if your main drive and the system supports file names that are long which is why your backup drive? You use a different format on your backup disk?

  • computer is spit back out dvd but will keep and play the game disc

    have a dell studio, he started being silly, it will read and play the game disc. partially, it reads the disks if recording information. but it wen I put it in a dvd takes it turns around inside like its gona read but it spits out back. IV run virous scans and updates and I cheak all system files and every thing seems OK Please help

    Hello

    Check with Dell Support, their online documentation, drivers, diagnostics and ask in their forums
    on the problems known.

    Dell support
    http://support.Dell.com/

    Dell support drivers - product manual & warranty Info (left side) - and much more
    http://support.Dell.com/support/index.aspx?c=us&l=en&s=DHS

    Dell forums
    http://en.community.Dell.com/forums/

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

    Having too many CD/DVD programs can cause strange problems, especially if they're loading of parts of
    themselves at the start because they will be competing for resources. This does not mean that this issue has been
    caused by those, however, it's a possibility depending on which and how many you have installed.

    You have disk problems as the CD/DVD is actually 4 discs in 1 case (CD & DVD burning and)
    Playback of CD and DVD). So it is not unusual for parts from 1 or 2 to not work so that others do
    correctly.

    Burning at low speed, or by using the master could help. A CD/DVD cleaner might help.

    Brand of the CD or DVD drive can also be the problem. Low quality (cheap brands) are always problematic.

    CD/DVDs have a tolerance + - and your can read/write on the edge outside these discs
    tolerances. They may be delivered, but it is generally more economical to replace the disk.

    Several good info here:
    http://Club.myce.com/

    CD/DVD units
    http://www.myce.com/storage/

    Notes on the troubleshooting and repair of readers of compact disks and CD-ROM Drives
    http://www.repairfaq.org/repair/F_cdfaq7.html#CDFAQ_014

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

    Follow these steps to remove corruption and missing/damaged file system repair or replacement.

    Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN

    sfc/scannow

    How to fix the system files of Windows 7 with the System File Checker
    http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.html

    Then run checkdisk (chkdsk).

    How to run check disk in Windows 7
    http://www.SevenForums.com/tutorials/433-disk-check.html

    ==========================================================

    After the foregoing:

    References to Vista also apply to Windows 7.

    Step 1: Please do all the same underneath if you did some before as is often total
    a process that solves the problem.

    Try this - Panel - Device Manager - CD/DVD - double click on the device - driver tab.
    Click on update drivers (this will probably do nothing) - RIGHT click ON the drive - uninstall.
    RESTART this will refresh the default driver stack. Even if the reader does not appear to continue
    below.

    Then, work your way through these - don't forget the drive might be bad, could be a coward
    cable or slight corrosion on the contacts (usually for a laptop) and other issues.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.microsoft.com/kb/314060 - a Mr Fixit

    Try this fix manually if the Fixit 314060 does not work
    http://www.pchell.com/hardware/cd_drive_error_code_39.shtml

    Your CD or DVD drive is missing or is not recognized by Windows or other programs-
    a Mr Fixit
    http://support.Microsoft.com/kb/982116

    The DVD player does not work after installing Windows 7
    http://support.Microsoft.com/kb/975270/

    The CD drive or the DVD drive does not work as expected on a computer that you upgraded to
    Windows Vista
    http://support.Microsoft.com/kb/929461

    When you insert a CD or a DVD, Windows Vista may not recognize the disc
    http://support.Microsoft.com/kb/939052

    Your CD or DVD drive cannot read or write media - A Mr Fixit
    http://support.Microsoft.com/GP/cd_dvd_drive_problems

    CD/DVD drive does not appear in Windows Vista, or you receive this error during Windows Vista
    Setup after booting from the DVD (AHCI)
    http://support.Microsoft.com/kb/952951
    Drive CD - R or CD - RW Drive is not recognized as a recordable device
    http://support.Microsoft.com/kb/316529/

    Hardware devices not detected or not working - A Mr Fixit
    http://support.Microsoft.com/GP/hardware_device_problems

    Another possibility is that the cables are loose. Remove ALL power, then make sure that the cables in both
    ends. Remove and replace, do not just tight. For laptops, you can often clean power and
    contacts data with a pencil eraser.

    Some DVD players do not use the Windows default drivers so check with the manufacturer of system and
    manufacturer of device to see if there is a firmware or drivers for your drive if necessary.

    ===============================

    Step 2: You have disc problems as the CD/DVD is actually 4 discs in 1 case (CD & DVD
    Burn and CD and DVD read). So it is not unusual for 1 or 2 operational so that other parts
    do it right.

    Did you follow the Troubleshooting Guide for the reader who still does not work? There are
    the entries in registry that the troubleshooter does not solve and those who "might" be the cause.

    Check with your Maker system and a device for the two possible firmware updates and the
    correct registry entries for your car.

    Here are the keys that I of course are those in question - for the subkeys of the CD/DVD drive
    as there will be other subkeys in these keys. Do not forget to ask specific keys involved as well as
    the parameters.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {4D36E965-E325-11CE-BFC1-08002BE10318}

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

    You can probably find more info here and maybe even the exact registry settings for your
    CD/DVD drive someone with the same model.

    Forums - a lot of expert real help
    http://Club.myce.com/

    CD/DVD units
    http://www.myce.com/storage/

    Use DevManView to locate the CD/DVD in the registry (be careful and do a prior Restore Point)
    nothing change) - find the DevManView device and then make a right click on it free in RegEdit.

    DevManView - free - an alternative to the standard Windows Device Manager, which displays
    all devices and their properties in flat table, instead of the tree viewer
    http://www.NirSoft.NET/utils/device_manager_view.html

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Rumors of new device for xbox 360 that allows players to play the Kinect in less space?

    Will there be a new device for xbox 360 that allows players to play the Kinect in less space?

    Hello

    You will need to check with the XBox Forums.

    XBox - Support Forums - and my XBox (top-right)
    http://forums.Xbox.com/

    XBox - Kinect
    http://www.Xbox.com/en-us/Kinect

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Go to the next image after movie loads and plays

    To all,

    I try to get my file from master.swf to load a separate film called 'splash.swf' to play at the end of the film "splash.swf" then go to the next section and load the next movie called "home.swf".

    what I have so far:

    Stop();
    dyMCL.loadClip ("splash.swf", 5);

    * what I need *.

    If (condition) {}
    gotoAndPlay (3)
    };

    Any thoughts?


    Thank you

    Kyle

    OK, so that work very well! I made a few changes, but everything works. Thanks for your help!

    dyMCL.addListener (this);
    dyMCL.loadClip ("splash.swf", 5);
    function onLoadInit(mc:MovieClip) {}
    dyMCL.removeListener (dyMCL);
    checkFrames (mc);
    }
    function checkFrames(mc:MovieClip) {}
    mc.onEnterFrame = function() {}
    If (this ._currentframe = this ._totalframes) {}
    _root.gotoAndStop (3);
    load home.swf
    delete this.onEnterFrame;
    }
    };
    }

  • I noticed that many of my updates there is 2 times. The same exact. Can I safely delete those that are lined and exactly the same thing? Seems I don't need the same exact 2 and 3 updates times.__Thanks__Michael

    I noticed that many of my updates of widows is 2 times. The exact same ones. I can safly remove those that are lined and exactly the same thing? Seems like I don't need at the same time exact windows updates 2 and 3.
    Here's what are installed now that confuses me.
    Running vista Home premium
    version 6.0.6002 Service Pack 2 Build 6002
    PC x 64
    Intel Core 2 Duo CPU T5550 1.83 GHz, 1833 MHz, 2 Lossnay, 2 Log
    4.00 GB
    Microsoft Silverlight
    These files were add and remove.
    Update for Microsoft Visual C++ 2005 ALT kb973923 - x 6...
    Update for Microsoft Visual C++ 2005 ALT kb973923 - x 8...
    Microsoft Visual C++ 2005 Redistributable
    Microsoft Visual C++ 2005 Redistributable
    Update for Microsoft Visual C++ 2005 ALT kb973924 - x 8...
    Microsoft Visual C++ 2005 Redistributable - x 86 9.0.2...
    Microsoft Visual C++ Run Time Setup Lib
    Would it not be better to uninstall all these and start from scratch with Silverlight?
    Or!
    To uninstall only some?
    Very confused about this.
    Some tips would help a lot.
    I think I posted all the files that were related to this as well as information on the system.
    Thank you
    Member of 1care Michael B.

    Mike

    CF. http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/b9132e0a-31ad-4f3c-af7d-8719972453ab

    Visit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy. If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • When I start most of the programs that is lock and on the taskbar it says program does not. How can I stop this from happening?

    When I start most of the programs that is lock and on the taskbar it says program does not.  How can I stop this from happening?

    Original title: Windows Explorer

    It is a good number with a boot drive (C:\ drive) that is cruelly of free space.

    A healthy walk NEEDS 20% free space at least to work properly and prevent your suspension system.

    Several causes are possible, but check your free space. Upgrade your hard drive if necessary.

    More RAM might help too.

    Check these before you attempt to update or install anything more.

Maybe you are looking for

  • Type of laptop to install the drivers

    I have laptop HP Probook 6570 b... recently, I formatted and installed windows7 Home basic 32 - bit OS. To install the drivers I have serched in our site and I got 3 results in the list... Computer laptop HP ProBook 6570b basic model Laptop HP ProBoo

  • I'm unable to remove the live onecare backup files to my external drives

    I can't delete allows you to delete the backup files Live Onecare to external drives

  • Migration from AMD to Intel

    I have a desktop computer AMD Athlon with an ATA hard drive. I would like to transfer the files out of the anti-terrorism Act and move on a desktop computer Intel i3 with a SATA hard drive. As I moved the files, I encountered an error that would not

  • Flash drive is not detected

    Original title: Flash drive problem I got my player wiped clean flash caused by a virus. Now, when I insert the disc nothing happens. I am not very informed when it comes to these things, but I thought that my data would be entered on the drive again

  • Linksys WAG120N DSL light problem

    Hello! Yesterday, I bought the Linksys Wireless - N Home ADSL2 + Modem Router WAG120N (version Annex-A). I have configured the modem/router and it worked very well. Today, I was surfing the internet just fine and I left my computer for a few minutes,