will not play loading...

Can someone please help me with this... Why my sound will not play? It should play on MousOver and stop the mouseout/mouseouthandler()... Thank you advance!

Stop();

import flash.display.MovieClip;
import flash.events.MouseEvent;

var req:URLRequest = new URLRequest ("squeeak.wav");
var sound: Sound = new Sound();
var controller: SoundChannel;

function soundLoaded(event:Event):void
{
controller = sound.play().
Controller.Stop ();

this.addEventListener (MouseEvent.ROLL_OVER, playSound);
this.addEventListener (MouseEvent.ROLL_OUT, stopSound);
this.addEventListener (MouseEvent.CLICK, onClickHandler);
this.addEventListener (MouseEvent.MOUSE_DOWN, onPressHandler);
this.addEventListener (MouseEvent.MOUSE_UP, onReleaseHandler);

}

If you want a hand cursor
this.buttonMode = true;
this.useHandCursor = true;

function playSound(myEvent:MouseEvent) {}
trace("on");
this.gotoAndPlay ("one");
controller = sound.play().
}
function stopSound(myEvent:MouseEvent) {}
trace ("out");
this.gotoAndPlay ("two");
Controller.Stop ();

}
function onClickHandler(myEvent:MouseEvent) {}
trace ("I've been waiting to support AND RELEASE!");
this.gotoAndPlay ("three");
}
function onPressHandler(myEvent:MouseEvent) {}
trace ('Press');
}
function onReleaseHandler(myEvent:MouseEvent) {}
trace ("Release");
this.gotoAndPlay ("four");
}


sound.addEventListener (Event.COMPLETE, soundLoaded);
Sound.load() (req);

because you load a wav.  Try a mp3.

Tags: Adobe Animate

Similar Questions

  • My Acer V5 Touch will not play videos it just says: cannot load, in which we Plug?

    My Acer V5 Touch will not play videos it just says: could not load the plug-in, which is missing?

    Videos of the place where?

  • Clip will not play when AC load via USB

    Hello

    I took delivery of my Clip to use permanently connected to an electrical outlet using the USB cable that is supplied with an adapter that plugs into the socket.  It is just a 3-prong plug with a USB plug on this subject.

    When you plug the clamp, it just cool and will not play.  I tried to search for other experiences, but no one is using this power supply solution.  Can anyone help?

    Thank you

    Steve

    Hmm.  There must be something weird on your USB AC adapter.  As long as only the two outside pins USB connected (these are the power pins) the player should load but still works normally.  The player charge if inside two pins are connected (the data pins).  Normally the inner pins are connected only when it is plugged into a USB port that is real.  Your card must provide a voltage on the data pins as well.

    You can sometimes get around by pluggin only the USB port for computer/AC adapter at halfway as the power pins connect before the data pins.  Or you can use the tape or paper to block the internal pins.

  • I used imesh to download my music, I reinstalled windows and loaded my music back and now that they will not play. He asks me to require a license

    I used imesh to download my music, I reinstalled windows and loaded my music back and now that they will not play. He asks me to require a license

    Hello

    1. on what application you are unable to read the music file?

    If you use Windows Media Player, I suggest that you follow the steps in this article and the Coachman.

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

  • the song plays on laptop, loaded on the player, but will not play on the device

    There are about 80 of the 480 sogns I have synced my clip that will not play either.  they play fine on my laptop and win 11 med says that they are on the device.  what the hell's going on and can you tell my why Back in Black will not play while Thunderstruck (from the same cd I own) has no problem?

    Try Reripping the files in MP3 format.

  • Suddenly Firefox will not play videos or Pandora internet radio. IE will be. What's wrong?

    Firefox will not play videos or Pandora internet radio. The video problem is on all sites I tried, is not just YouTube. Internet Explorer still works fine. To You Tube, I get the error "an error has occurred. Please try again later. "On other sites, I get a similar error: ' Oops, we have some difficulty with this video, please try again later." (error 2002) »

    There are some compatibility issues between the last Flash drive and a few Add-ons Firefox or settings. Could see you if anything in this article helps you: 11.3 Flash does not load video in Firefox.

  • B50 will not play Flight games

    I have a Lenovo B50 30 laptop running windows 8.1. I installed a few flight simulation to store games from the windows more mahjong game. All played fine.

    I downnloaded accidentally a virus I have successfully got rid of before the upgrade to windows 10. Games time would not play, they will start to load then disappear in the taskbar. The mahjong game yet to play end.

    I reformatted the drive and reloaded windows 8.1, but still the flight games will not play although once more mahjong will play.

    Any ideas what caused this?

    Thanks in advance

    Nigel


  • My Sims 3 Deluxe louncher will not play

    original title: my sims deluxe louncher 3 will not play! help please

    My sims deluxe louncher 3 will not play the game, but is loaded down to the computer what I do

    Hello

    The game that you are trying to read is not compatible with windows vista, refer to the link below:

    http://www.Microsoft.com/Windows/compatibility/Windows-Vista/details.aspx?type=software&p=the%20Sims%203%20Deluxe&v=EA&UID=&pf=0&PI=0&s=Sims%203%20Deluxe%20louncher&OS=32-bit

    I suggest to run the game in windows compatibility mode and check if it works.

    Make older programs run in this version of Windows:

    http://Windows.Microsoft.com/en-us/Windows-Vista/make-older-programs-run-in-this-version-of-Windows

    Hope this helps,

  • Pavilion 500 - 205t: new Blurays will not play, older Blurays will be. Why?

    I bought your desktop of Windows 7 HP custom year last with a built-in Blu - Ray disc/drive. The player is CyberLink PowerDVD 10. A whole new movie bluray (2015) will not play because PowerDVD wants to update, but there is no update available through the recommended procedure. CyberLink said to check with HP.

    My oldest blurays (2013 and older) work very well. I don't need fancy features, I just want to watch my new bluray on my computer. I'm guessing that there is a new coding on the blurays newer that it prevents play on an older player, but what are the options I have to solve this problem?

    It is disappointing that less than a year after that HP gave me 10 PowerDVD pre-loaded, he won't play a new bluray. And on top of that, there is already a 15 PowerDVD! But I can't upgrade to that without buy download. I never had this problem reading DVD on my laptop XP with WinDVD for almost 10 years! WinDVD less at upgraded itself.

    Hello

    Have you applied this update from Cyberlink?

    New codes for Blu - Ray, AACS are constantly updated and Support HP should be able to help with the updates if your PC is still under warranty.  If your PC is not covered by the warranty, then you need to update from Cyberlink.

    You could try to update the HP Support Assistant and see if the Cyberlink updates are available.

  • The President will not play

    The President of my g7 Pavilion will not play. It works with headphones or external speakers. A computer repair shop, said that the IDT pilot was missing. The tech guy at the place where I bought the PC said if the pilot was missing or not working is not without audio would play at all even on the helmet. How can I determine if the speakers are inop or simply has not been activated properly etc?

    Thank you

    Hi Allen,.

    Try the following.

    Download IDT Audio Installer on the link below and save it in your downloads folder.

    http://ftp.HP.com/pub/SoftPaq/sp59001-59500/sp59154.exe

    One time finished, open windows control panel, open Device Manager and open sound, video and game controllers.  Right click on the IDT device and select uninstall - also, you should get a command prompt to delete the current driver, check the box allow this and then proceed to uninstall.

    When you are finished, stop the laptop, unplug the AC adapter and then remove the battery.  Press and hold the Power button for 30 seconds.  Reinsert the battery and plug in the AC adapter.

    Robinet tap away at the key esc that you start the computer to launch the Start Menu, and then select f10 to open the bios menu.  Press f5 to load the default values (sometimes it's f9, but the menu below indicates the correct key), use the arrow keys to select 'Yes' and press ENTER.  Press f10 to save the setting and still use the arrow keys to select 'Yes' and press on enter.

    Allow Windows to fully - charge it will automatically load an audio driver, but let just this complete.  Then open your download folder, right-click on the IDT Installer and select "Run as Administrator" to launch the installation.  Once this done, do a right-click the speaker icon in the taskbar and select playback devices.  Left click 'Speakers and headphones' (or speakers/HP) once to highlight and then click the Set Default button - check if you now audio.

    Kind regards

    DP - K

  • Sometimes the clips in Windows Movie Maker will not play during preview and not at all after publication...

    Hello!  I just create a movie using Windows Movie Maker (HP Pavilion dv6000/Windows Vista Home Premium).  During the PREVIEW, the first part of the video of my film sometimes will not play (view) while the audio continues. Sometimes he will play (view).  All clips are saved in the right place, the file formats are correct, and everything else that I think is done correctly.  In addition, after the publication of the video, he did the same thing; some parts of the beginning is not playing (see) only the audio.  I believe that this can have started happening after a few times when an error message pops up saying something like "Video player has stopped responding, but has revived with success...» "or something like that.

    Now, I tried a few things to try to fix the problem.  I noticed that if I take the transitions and effects on the clips then they play but every time. I don't know why this happens only at the beginning of the movie and not all of the film since I also have clips with transitions and effects in the end.  Help!  This is my first time using this program/do a movie (and it's really good if I must say for me... he can win an Oscar! * smile *), but I wonder if I did something by mistake at the origin of this problem...

    Signature

    "Confused."

    KW03, I wish allows you to check if the same thing happens with the Movie Maker live, and this will give us an idea of the question of whether it is related to the effects of media player or your codecs. Also test it in another account that the component for WMM store is different on each profile. I've included the steps:
    http://download.live.com/MovieMaker
    (Note that you can select exactly what you want to install once you load the installation process)

      1. Open user accounts by clicking the Start button, clicking Control Panel, clicking user accounts and family safety, then clicking on user accounts.
      2. Click on manage another account. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
      3. Click on create a new account.
      4. Type the name you want to assign to the user account, choose the type of administrator account on the computer, and then click on create an account.
      5. Log out and log in to the new account.
      6. Verify that the problem you are experiencing is resolved

      Create a new user profile:

      Follow these steps to create a new account, we can test:

      (To remove the test profile follow the steps above and choose to remove the account from the user accounts).

      If the work of nine and you discover you have a profile corrupted, take the measures listed in the following article to copy your data to the new: difficulty a user profile is corrupted

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

  • Why my games will not play on my computer

    Why my games will not play on my computer. they will load and turns on, but after so many seconds, the game closes out.why is it?

    Hello

    1 you get an exact error message when loading the game? In the affirmative, please let me know the exact error code.

    2. What is the brand and model of your computer?

    3. What games you are not able to play on your system?

    4. have you been able to play the games on your system in the past? If Yes, what did the problem start and have you made any hardware or software changes recently?

    5. you tell on online games or games that are installed on your system?

    If the problems are with the games online, update your flash player. Click on the link given below to update:

    http://get.Adobe.com/flashplayer/

    If you are not able to play the games installed on your system, try the following methods and let me know if that helps you:

    Method 1:

    Try now to the KB article to perform the clean boot:

    How to troubleshoot a problem by performing a clean boot in Windows Vista and Windows 7

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

    WARNING: After you have used the clean boot in order to solve your problem follow step 7 to reset the computer to start as usual.

    Method 2:

    Check if you are facing the similar question in safe mode.

    To start your computer in safe mode through the article mentioned below

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

  • Capture DV AVI will not play in WMP or VLC

    I'm having a problem where the video I captured with first CS 5.5 will not play in VLC or WMP 12. More weird is that the video I captured with first of the 4 CS will play in VLC and WMP 12. It is not captured AVI DV HDV video. Here is a chronology of the events that took place:

    1 Ran CS 4 Production Premium on Vista Enterprise 32-bit

    2 rebooted my computer with Windows 7 Professional 64 bit

    3 reloaded CS 4 Production Premium and has no capture video up to 4 # below

    4. a few weeks later received CS Production Premium 5.5

    5 load CS Production Premium 5.5 (installation not complete an upgrade) alongside the existing CS 4 installation.

    Once I had CS installed 5.5, I captured 2 videos and then tried to play them in WMP. They play for two seconds and then WMP up an error it can not play the video. I tried VLC and DiVX Plus Player and no dice. DiVX player says I need ' codecs additional live show "installed, but does nothing else.

    I kept thinking there is a problem with my Windows 7 or WMP on the first but old footage of CS 4 plays well in all three aforementioned players. Any thoughts?

    OK, I get the same result, as you do, in WMP12. Any other request or player I've tried (including Premiere Pro) played the file without problem. WMP12 would play until the last second or two and then give the same error message.

    At this point, I am inclined to believe that it is not so much the container or the header in the file causing problem, but the encoded video itself. I noticed that the video has had much bursting inside - he goes all Lego Land to pieces. Which could cause the decoder to freak - any other DV AVI I throw in WMP12 very good times. Are all the videos that present this problem like this?

    As an experiment, what happens if you create a sequence of DV, drop an effect on the clip (which will force a rendering) and export to a DV AVI? It plays back in WMP12 then?

    EDIT: I will answer my own question: the exported clip works very well in WMP12. This means that something affects the capture of the original images, or the tape itself is soiled upward and leading to strange results. The reason that does not even the right clip exported the initial capture is because the body will not be re - encode a DV film, unless it takes, and if you do not use an effect, it does not. It simply crosses the DV hardware in a new container file. When you put an effect on the clip, the original film must be recompressed, and that the rights of the ship, so to speak. The DV stream is encoded again, and now you have a standard/playable DV stream.

  • Built-in preloader SWF will not play

    Someone had it happen to them? There must be a simple solution for this.

    The preloader SWF, I did main movie loads fine, and I can get it to load from the server if I run the preloader itself.

    But, when I embed the preloader.swf file in an HTML (using Dreamweaver), will not play the preloader. It 'appear' in the page, but it does not load the movie:

    http://198.106.28.6/renew/index2.html

    Is there a missing parameter to 'play '?

    Thank you!

    Okay, I think that I fixed it. You must have two SWF files in the same folder as root the HTML file - even if your path is correct, it does not preload the SWF.

  • Why YouTube HTML5 video will not play since I've updated to v10.0 Sierra and Safari version?

    Since I've updated for Sierra, the new Safari will not play videos from YouTube, saying: "your browser does not currently recognize the video formats available supported» I didn't have this problem before the upgrade.

    Hello

    That's just the problem of incompatibility video format, with a video converter, you can easily solve this problem. And I've been using Doremisoft easy video converter HD https://itunes.apple.com/jm/app/easy-hd-video-converter/id488066888?mt=12

    to make the conversion job and it's great. You can have trial. On the other hand, have a good day.

Maybe you are looking for