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);

}

}

Tags: Adobe Animate

Similar Questions

  • 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

    }

  • Photoshop retains a recovery time and again the same image. How can I get him to stop?

    Photoshop retains a recovery time and again the same image. How can I get him to stop?

    I don't need the image. I tried to register on multiple locations.

    Looks like you have an orphaned recovery file. See thread http://forums.adobe.com/message/4664463#4664463

  • 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 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="">

  • How to permanently remove a tag to an image? I tried to delete it by right-clicking, but when I go to the next image and then again the tag I removed is still there.

    In my personal folder under the images, I downloaded a lot of pictures. I tried to mark them in order to find them easily, but in the process, I made a few mistakes and now I would like to remove the tags excess system generated whenever I pressed Enter. When I right click each tag, the system gives me the option to remove and I did it, but when I then jump to the next image and then go back, all the deleted tags are still there. Pretty frustrating and I wonder what I can do about it. Thank you very much.

    Hi FrancescaZancan,

    Windows Photo Gallery that you use?

    You can check the suggestions provided by Halima S dated 19 February 2011from the following wire link and check the result.

    Tags that have been deleted on the library keep reappearing on the gallery the next time it opens.

  • I was typing an email that has been of about 200 words I hit the space bar and grabbed the next word and looked up the eyes and my email everything was gone.

    I'm at my wits end, HELP ME! I was typing an email that has been of about 200 words I hit the space bar and grabbed the next word and looked up the eyes and my email everything was gone! This happened to me several times and I can't ever find anywhere. It just disappears. Can someone help me? I want to know why he spends, how I can solve this problem how can I recover my work and where it went! I blame my laptop or windows or the manufacturer?

    I wrote a full description of my problem, but of course it also disappeared. I type 2-300 words and pooofff they disappear I can't explain it better or go on any more because I just it loose once AGAIN all! I tried to explain in more detail a related problem, but of course he gone too so I send this before I lose too.
    original title: email disappears

    The text turns blue, because you mentioned it.  The most plausible explanation to highlight all of the text while typing is due to hit CTRL-A, which is the same as Edit | Select all.  Then when you type a character when this text is highlighted, then highlighted (blue) text is replaced by the character you typed.  Be very careful to not press the CTRL key instead of the SHIFT key when you type a capital letter A or else which will never happen.

    If your cursor jumps around then also scan your system against viruses and malware.

    Steve

  • 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 get back and see the SDO_GEORASTER image in the browser with the bounding box

    Hello

    I created raster_table and raster_data_table and successfully loaded raster in db data. Now, I want to retrieve and display the SDO_GEORASTER image in the browser. I need help from anyone how to reach that goal as what is the procedure to display the georaster data in the browser, as well as the bounding box. I know with the help of the JGeoRaster class we can manipulate the georaster data type, but I do not know how? I'm coding in Java. Help, please.

    Thank you
    Bellande D

    You can change getRasterImage (...) call java to provide your bounding box.

  • 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;
    }
    };
    }

  • Select multiple files using File Explorer MP4 and play

    I play the videos which are MP4 and play using the video app Windows 8 when selected in the file Explorer. But she plays alone. When I select more than one file, I expect that they would not play in order. Is there a way to do this in Windows 8 as having been shipped?

    No, I'm not asking any interested by third-party tools.

    I play the videos which are MP4 and play using the video app Windows 8 when selected in the file Explorer. But she plays alone. When I select more than one file, I expect that they would not play in order. Is there a way to do this in Windows 8 as having been shipped?

    No, I'm not asking any interested by third-party tools.

    When using Windows 8 file Explorer, you see additional tools, when you select a video file?
     

    (Yes Yes - music, video, same difference.  Not my photo-, but it shows what I mean with the "add to playlist" and "play all the" options.)

  • Link to graphic images and display the same image on two different series

    I create a brochure DIN A5 landscape (l x h - 210 x 148) that has two pages each Board. Now, I want to connect two graphic frames on two different series (starting page 4 continued on page 5) to display the same image. This image is then next to each other after printing.

    Please take a look at the photos (situation and endresult).

    Could you please help!

    Thank you!

    Phil

    CURRENT situation

    link-image-to-another-page_1.jpg

    endresult

    link-image-to-another-page_endresult.jpg

    It is not clear to me that you understand that you should be setting this up as a file "facing pages" where each page is half of a spread, not the full-spread by page you started with. In order to impose the pages must be independent of each other in the file.

    From the screen shot it seems that when folded your book will be A5 landscape format, so if this is the case, you will want to set up as faced with pages A5 landscape. Guests will have a single page for the first and last pages, and the rest will be displayed as two-page spreads, just like your reader will see them. Given that this seems to be a folded booklet, you should also keep in mind that the number of pages should be a multiple of 4 - two sides of two pages per sheet.

    To a printer you will probably offer a PDF file, exported as a single document with individual pages in the reading order. If you want to print yourself, InDesign has a module simple integrated tax called booklet print in the file menu.

Maybe you are looking for

  • How can I temporarily move a few bookmarks Bookmarks toolbar

    I have a folder on the bookmarks with many bookmarks in her bar. Don't have no need now, I don't want to delete it either. The best solution would be to move this folder with bookmarks for example the folder my documents, which resides on another par

  • Used to use Hotmail w/Win8, but when Web page view and clicking on an email address, nothing happens

    Assume that something is not quite correctly configured. Please be as specific as possible when suggesting that I do on the problem (for example, "check the associations" is not useful." Thanks a bunch

  • Satellite L850 - cannot play Minecraft - graphics driver problem

    Hello I have a Satellite L850 with this specs: Intel Core i7 3630QM with an AMD Radeon HD7670M and 8 64-bit windows.I installed the latest drivers display amd by toshiba Web site and java 64 bit. Walker I launch Minecraft is as usual, but when I clic

  • Tecra S1 - 'ping' the key "N".

    Hello I have a Tecra S1 laptop. I accidentally 'ping' the key "N". I have now the key and three small plastic parts. None of them doesn't apperar to be broken, but I can't work out how to fix them all together and replace the key on the keyboard. Doe

  • Satellite P100 - 434 BSOD boot problem

    Hello everyone! I have laptop Toshiba Satellite P100-434 and lately I encountered many problems during startup. 1. the laptop starts normally until the entry of the password. Then, in the middle of typing BSOD.2. the laptop gets BSOD or turns off 2 s