How to play a sound on drag-and - drop?

I have been asked to create a drag and drop game for College and I want to make sure that when an object is selected to the top/clicked on will play a little 'pop' sound and when it is placed successfully on a target, it will play a slightly different sound of "pop".

I am using ActionScript 2.0 in Flash CS5.5.

I've got the drag-and - déposer done, I just need to add the sound equivalent. I saw a few tutorials, but they are much too vague for me.

Look at using the Sound class.  Google search using terms like "AS2 his tutorial.

Tags: Adobe Animate

Similar Questions

  • How to rotate the movieclip with drag and drop?

    Hello everyone,

    I work with drag and drop game.

    I'm done with drag and drop. now, I have problem in totating the movieclip.

    I want video clip rotate using the mouse. Do not use the click mouse. !!!

    Can someone give me a solution for this?

    var isDrageen:Boolean;

    var lastX:Number;

    var derriГЁre: Number;

    var dragX:Number;

    var dragY:Number;

    stage.addEventListener (MouseEvent.MOUSE_DOWN, down);

    stage.addEventListener (MouseEvent.MOUSE_UP, up);

    stage.addEventListener (MouseEvent.MOUSE_MOVE, mov);

    function down(e:MouseEvent):void {}

    isDrageen = true;

    lastX = mouseX;

    derriГЁre = mouseY;

    }

    function up(e:MouseEvent):void {}

    isDrageen = false

    }

    function mov(e:MouseEvent):void {}

    {if (isDrageen)}

    dragX = mouseX-lastX;

    dragY = mouseY-derriГЁre;

    MC.rotationY += dragX/1.65;

    MC.rotationX += dragY/1.65;

    lastX = mouseX;

    derriГЁre = mouseY;

    }

    }

  • FlashBuilder - how to move the code with drag and drop

    Guys, I must be stupid. Each IDE I worked in allows me to highlight one or more lines of code, and then, when I mouse over the highlighted lines, updates of the cursor to indicate that I can now drag the code, and it moves when I click and drag.

    FlashBuilder (burrito) does not seem to exhibit this feature, but if I hold down the CTRL I do not copy the code via drag and drop.

    There has been one or two occasions where the drag-and - déposer worked, but I can't understand, or reproduce these conditions.

    Can anyone help?

    Thank you

    T

    It should work in Flash Builder, but you are right, that feedback cursor is not very good because it is not updated to show that any sort of slider. Try selecting the text, then click and hold for about a second before you drag it to a new location. If it still does not work for you it must be another problem. Make sure that in preferences, general-> editors-> text editors "Enable drag and drop of text" is turned on.

  • Drag and Drop works is not in Windows 7

    I have a new problem that has arisen in the last week or two. I can no longer drag and drop my files and folders in Windows Explorer. I have Windows 7 on a HP laptop. It is installed on the computer in last December when I bought (09). I've never had a problem with it since then, and I do not know how to find settings to allow drag and drop or re - activate. I know that I've done before on this machine, several times - and just noticed first in Thunderbird, (my e-mail desktop application), then in Solution Explorer. I recently installed the SP1 (spelling?) a few weeks ago and have installed a few other programs of odds and ends, but I'm sure that drag and drop was working fine until a few days ago.

    Any help would be appreciated. As a writer of genealogy is a must have feature.
    Thank you.
    This happened to me yesterday.

    In Windows Explorer, click a file with the left mouse button and hold down the key. Then press the ESC key. Drag-and - déposer is miraculously revived.

    I think that just by pressing escape works too, but I'm more able to test this. I got this http://it.thelibrarie.com/weblog/2010/06/drag-and-drop-stops-working/

    I can't be bothered reading all to see if this has been mentioned.  The fix for the escape has worked for me with Win 7.  The only thing I have that is unique with respect to colleagues is a wireless keyboard and mouse.  I hope that this has something to do with my problem.

    Thank you Brigitte!

  • Virtual PC for Windows 7 - How to drag-and - drop or transfer files

    I am trying to use Virtual PC for Windows 7 and be able to identify ways to transfer files from my host system in a virtual PC, I created.

    I was previously using Virtual PC (VPC) 2007 under Vista and am familiar with just the files dragging and droping to and from my host on the virtual computer system.

    I enabled the integration services and am unsure of what the user really wants that the VPC. that is he doesn't want configure me a Local user on the virtual machine or the host.

    I was able to connect to the virtual computer by using a local user on the computer virtual account, but for the life of me can not find out how to transfer files that I used to.

    To achieve what I need, I copy files to a shared location on my network as my PC and the virtual computer has access.

    Can anyone suggest how to get the 'integration' works correctly then drag and drop files between the Bureau of the VPC and host is possible.

    Thank you.

    Integration features allows the WVPC7 to share resources and readers. Open the virtual machine settings, and these options are available:

    1. Audio. Without integration, sounds played inside the virtual machine are emulated using a SoundBlaster 16 card. Audio output is fairly shrill and unpleasant to play using MP3s that imitated the sound card. With audio integration, sounds inside the VM are routed via Protocol Office remotely to your physical card. Audio output will be much better.
    2. Clipboard. Host OS and guest OS supported can share contents of the Clipboard.
    3. Printer. Applications within the virtual machine can print using your physical printer. This is useful if you have a parallel printer (LPT1). For USB printers, click on the "USB" menu on the toolbar of the virtual machine monitor, then attach your USB printer to your virtual machine.
    4. Smart cards. (I do not have any device of smart card, experts, please answer)
    5. Readers. Guest operating system can access and write files directly to your physical hard disks (or DVD or USB flash disk drive); is based on the physical disks, you have shared.

    For drag / drop, until today (2 July here) does not. I used to drag-and - drop files from my desktop windows vista to the desktop of the virtual machine (windows XP inside) you do, but now we can't. Another approach is to share your disks in has integration of options described above.

    After I shared my C: drive, a new 'shared' drive appeared in my virtual Windows XP [workstation], which is 'C on RYAN-PC' (the name may be different on your PC). Whenever I need to copy some files from my virtual computer on the desk of my windows 7, I just opened that shared drive, navigate to \\tsclient\C\Users\Ryan\Desktop\, copy the files and they come to my office windows 7.

    Personally I agree that even this method is simpler that the copy of the shared network files, drag-and - drop is much easier.

  • How do I drag-and - drop my Web bookmarks folder to an external flash drive? I need to move to a Mac to another Mac.

    Moving bookmarks from URL in Firefox from one Mac to another

    How do I drag-and - drop my web "Bookmarks Toolbar" folder from a Mac to an external zip USB drive. Mac network and use the feature of migration impossible. Need to proceed manually. Thank you!

    Hi RMcMullen,

    You should look at article in the Knowledge Base to back up and restore the information contained in the profiles of Firefox . It will give you all the information you need to save everything so you won't lose a thing.

    Hope this helps!

  • Export of Photos - how to change the drag and drop non-original standard 'export '.

    Hi all Mac experts.

    I'm on OS X 10.11.3 and 1.3 on an iMac Photos 2009.

    Like other users, I had been frustrated by the slow export of files by drag / move.

    I have already learned that at least one of the reasons are that the files are converted if simply to slip and fall.

    Here's my question: is it possible to define the standard action on drag-and-drop to be 'non-original export?

    and if so, how?

    Thanks and best,

    What.Ever.Flies

    You can't and can never change how to drag and drop work - if you hold down the option key by dragging and dropping a picture, you will get the unmodified original or are you export the unmodified original, you will get it

    LN

  • How can I make use of TC partitions and make sure that the file analysis is on the right partition?  I do not see the partitions that I have done in the Finder, but I can drag and drop the files in the folder 'Data' unique under Finder/Shared/TC.

    MacBook Air, OSX 10.10.3, 128 GB; 2 TB Time Capsule ME177LL/A.

    Final objective: use Time Capsule as a Time Machine for my MacBook Air and as a storage solution for large files that I don't want permanently on my MacBook Air.

    So far, I've implemented the TC and set up Time Machine on the TC.  I was able to create 2 partitions on the TC using disk utility then that TM was a backup and the disk was recognizable in disk utility.

    Under Finder/shared, I see the TimeCapsule 'airport', and when I click on it it is a file called "Data".  I was expecting to see my two partitions here.  Under 'Features' is a ' Zissou31 MacBook Air (3)"sparsebundle file and I can also create folders here and drag and drop files on the TC here.  I can see the partitions in disk utility, but how do I see/use the partitions I created in the Finder?

    I fear that this may not be set up correctly and I'm either losing on an entire partition I created or these files dragged/dropped may be at risk of overwriting of TimeMachine.  How can I make sure that the file analysis is on the appropriate partition?

    I disabled TimeMachine and go back to see if I could 'point' to one of the partitions, but the "Data" folder is the only thing that TimeMachine seen.  How do I point time Machine for one of the partitions?

    Thank you!

    In addition, in disk utility, I can see one of the partitions TC is related to the time Machine, indicated by the icon Time Machine green bottom left, but two partitions seem to fall under "Zissou31 of the MacBook Air (3) .sparsebundle.

  • I am trying to copy a file to another folder, I have the file open, how do the other folder along the side so I can drag and drop

    I have a file on a cd - rw that I try to copy to a different folder, I open the file, but how can I get the new folder the long side so I can drag and drop

    Hi tommckeith,

    ·         What version of the operating system is installed on the computer?

    ·         You try to move the file on the CD to the computer or inside the CD?

    If you want to move the file on the CD for computer, follow the steps in the article.

    Move and copy files using drag and drop

    http://Windows.Microsoft.com/en-us/Windows7/move-and-copy-files-using-drag-and-drop

    Copy and paste a file

    http://Windows.Microsoft.com/en-us/Windows7/copy-and-paste-a-file

    If you try to move the file to the CD, then it is not possible to make changes on the data stored in the CD. You must copy the data to the computer, and then make the necessary changes. You can also make the changes before saving the data to a CD.

  • How to import or drag and drop photos into Windows Live Movie Maker?

    I'm unable to either import or drag and drop photos into Windows Live Movie Maker.  I just finished a movie and when I try to open a new project, I click on "Add photos and video", taking me to 'my pictures', but when I try to open him "add photos and video", the "file name" has so much history, it doesn't allow me to click on the location of my file.  How can I get rid of this story?  The first film was so easy, but this new project has been up to this impossible after about 7 hours of attempts.  Help, please!

    Hi Anniebp2,

    I think perhaps the best next step after all your efforts of trying to fix the program.  For this, since it is part of the Windows Essentials pack, you can go to the page Windows Essentials and re - download and re-install the package, which will update and fix the movie maker if necessary. I hope that this solves the problem for you. Please let me know how it goes.

  • How can I fix the "drag and drop" feature in Windows 7? It used to work, but now does not work, for no apparent reason!

    How can I fix the "drag and drop" feature in Windows 7?  It used to work, but now does not work, for no apparent reason!

    What happens when you try?  Make sure you drag the icon image and not the text of the name.

    If it still doesn't work there are some registry changes that can try to alleviate the problem.  But because the changes to the registry are tedious and dangerous, I recommend to leave the system to repair it for you.  Here's how:
    1. Type of restore in the search box of the start menu to find and open to restore system files and settings from a restore point.
    2. Click Next, choose a date before the problem started, then click Next once more.
    • This process only takes around 2 minutes and only restores your system files/settings: it will not affect any of your files, documents, photos, emails, or anything else.
    If the system restore does not resolve the problem try this to replace missing or corrupted system files.  Here's how:
    1. Type cmd into the start menu search box, and then press Ctrl-Shift-Enter to launch as administrator.
    2. At the command prompt to start the File System Check, type sfc/scannow .
  • I have a brand new installation of 13 PS elements. How I have difficulty drag and drop doesn't work is not on my system Windows 7 Pro 64-bit?

    I just installed PS 13 items on my system Windows 7 Pro 64-bit. Mouse clicking works, but how I have difficulty drag and drop works do not? For example, I can't create a selection rectangle or drag the sliders or move the panels of the tool or resize a text box, I tried as an administrator (it does not help). Same "ClickLock" in Windows does not drag. No other program on my machine has problems. Help!

    Reset preferences did not set anything. Even reinstall 13 elements PS has not fixed anything.

    However, late breaking new...

    See other discussions on this topic, which suggests a conflict of startup program that might be the cause, I did some experiments.

    All the functions of the mouse to 13 PS elements worked well if I started my Windows 7 in "safe" mode
    So, back in 'normal' mode, I manually disabled all startup programs. Returned mouse problem.
    Enter the control panel "services", I disabled 'Synergy' (a program that allows me to share my keyboard and mouse between two computers). Fixed a problem.
    The reactivation of all the startup programs while leaving a synergy service is turned off, everything works still fine.
    Start all programs present and re-empowerment synergy, but turned off its 'high privilege check box. Everything is still fine.

    Conclusion: Synergy in high privilege mode service was the only culprit.
    Synergy in non high mode allows my PS 13 items and keyboard/mouse sharing to coexist.

    The strange thing is that only PS elements 13 was affected by synergy. I detect no problems anywhere else. But it doesn't matter; the new arrangement (no high synergy) works fine for everything.

    Al

  • How to automate drag and drop a VM to a folder?

    As we can easily drag and drop a virtual machine from a virtual computer folder to another folder VM in the computers view virtual and patterns of vSphere Client, how this should be perfectly automated with vCloud API?  I looked at a lot of places, but he was talking about vMotion from one host to another, or a data store to another.  Anyone know about this?  Furthermore, I would like to make this shape vCO.

    Thanks to Suresh Thoppay.  It is available in the vSphere API.  Search for moveIntoFolder_Task in the API of the vCO Explorer.

    TargetFolder.moveIntoFolder_Task (VM)

    where TargetFolder is of type VC:VmFolder and VM is table of VC:VirtualMachine

  • How can I get intelligent forms to appear as feedback on my drag and drops?

    Hello

    In general, the comments that the user sees when he "fails" a drag and drop comes in the form of a "form of failure."  Which is the case when the "accept" and "reject" check boxes are clicked to drop targets - you get "success shapes" and "forms of failure", respectively.  This gives you immediate access to several styles of form in the "First name" drop-down box

    In one of my projects, feedback for drag and drops come in the form of 'success stories' and 'Legends of failure. "  It's frustrating because it gives me access to a new set has styles - styles of legends, and I can't use the typical failure and success smart shape of styles that I want to use.

    My work around was to copy the slide in a new project, create the drag and drop and goes back the slide in the project of the moose.

    Does anyone have an idea on how to fix this?  It seems to be only a problem in a project.  The theme used is not the issue because I use the same theme in many projects where I don't have this problem.

    Thanks for any help!

    & Glide will use forms instead of legends, if this option is checked in the preferences, default values

    Maybe it was the case in this project? Use the approach of the stem to convert subtitles in forms.

  • With the help of Hewlett Packard Win 7 64 bit with Lightroom 5.7. I have read many explanations of how to drag and drop digital images in Lightroom - but I never got.  I need to know WHERE LTRM drop, HOW to find them and how to get them I

    I need to know EXACTLY how to drag and drop digital pictures into LTRM. WHERE to put them. HOW to find them. How to MOVE in the DEVELOPMENT MODULE.

    When you drag / drop photos, you actually perform a step to import, so it would be wise to figure out how to import your photos and all of the affected options. I agree with Jim Hess and al., drag / drop are an easy way to screw up your organization. Importing is a much more organized way to manage things. There are a lot of tutorial vid3os on import.

Maybe you are looking for

  • I would limit the window to the same size as my site... How can I do this in Firefox?

    I would limit the window to the same size as my site... How can I do this in Firefox?

  • I'm going oss my warranty when adding an SSD?

    I wonder if I loss my warranty (purchase in October 2015) when I add an SSD for my pomp L50C - 18 c (in unused optical drive Bay?Grateful for your reply.

  • Converet GPT without data loss

    Hello I am formatting my system. Partition there are two in my drive C & E system. Now when I'm getting type format my PC. He is in error of TPG. I have given in the E drive, now if I use the command wipe the drive, it will clean my data. So, how can

  • Can't access my files (as if I have no write permission)

    Hello, it seems that all of a sudden, I came across a weird problem. These things happen: Sticky Notes not be loading not When you open iTunes, a pop-up "iTunes Library.itl file is locked on a locked disk or you do not have the write permission to th

  • B200 M3 with USB

    Hello Wanted to know how the strategy of starting are set for blades B200 M3 a UCB sticks. Are there glitches during installation of operating system? Most of the operating system is VMWare ESXi. Thank you very much.