Start & Stop an mp3 sound

Yes a newbie but need help.
I wish to be able to play a voice sound every 3 minutes.
I have the sound in "mp3' format and need to repeat the message every 3 minutes.
+++++++++++++++++++++++++++++++++++
var snd:Sound = new Sound();
snd.load(new URLRequest("stovealert3.mp3"));
var channel:SoundChannel = new SoundChannel();
channel = snd.play();
++++++++++++++++++++++
The actionscript 3.0 I wrote makes the sound once but that's it. I have the "Loop" on but it only runs once.
I need a Timer also but until I can get the sound goes its a mute point.
Any help would be appreciated....

I get the first message before I press any button in the Test move:
Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at monkey_fla::MainTimeline/frame1()
After clicking the Play button it just displays the following:
ArgumentError: Error #2068: Invalid sound.
at flash.media::Sound/play()
at monkey_fla::MainTimeline/playSoundF()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
ArgumentError: Error #2068: Invalid sound.
at flash.media::Sound/play()
at monkey_fla::MainTimeline/playSoundF()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
ArgumentError: Error #2068: Invalid sound.
at flash.media::Sound/play()
at monkey_fla::MainTimeline/playSoundF()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
ArgumentError: Error #2068: Invalid sound.
at flash.media::Sound/play()
at monkey_fla::MainTimeline/playSoundF()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
ArgumentError: Error #2068: Invalid sound.
at flash.media::Sound/play()
at monkey_fla::MainTimeline/playSoundF()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
Help!
Thanks,

Similar Messages

  • Stop/Start Streaming Mp3 Sound- Button Script

    I'm looking for a button script to stop a streaming mp3 sound
    playback on the first click, then start it again on the second
    click and so on.

    You need brackets after the function call...
    playMusicFunc();

  • One button to start/stop mp3 in pdf, but playback toolbar getting in way

    Hi, I want to make a button to play back and stop an mp3 file in an exported pdf. I was able to make a button, then assign two actions to it, one to play the mp3 on mouse click, and the other to stop the mp3 on mouseover. the button looks fine in the pdf, there's just one problem. Indesign automatically puts a playback toolbar in the exported pdf where the mp3 file is located; even if i choose 'none' for poster, the playback bar appears (it's tiny and unusable); i thought it would be simple to have a button start and stop an mp3 but this is proving tedious. Any simple solution would be appreciated. I simply want to play/stop an mp3 file with one button in an exported pdf.

    I think I know what you're talking about, but it's not InDesign. You're probably playing the MP3 in Acrobat or Reader, and those PDF readers don't make the MP3 file totally invisible.
    I've done quite a bit of experimenting and this is the best I can come with: Give the MP3 file no poster image in InDesign, then export as Interactive PDF. After you create the PDF file, you need to select the invisible sound file with the Select Object tool in Acrobat Pro as shown below:
    Double-click the sound file to view its properties. Set the file to play in a floating window. Then edit the dimensions to be 1 pixel by 1 pixel:
    When the sound file is played it appears as a tiny black dot on the gray background outside the PDF page in Acrobat or Reader.

  • USB sends electric shock to sound card and speakers. "Boom" anytime it starts/stops/reboot

    Since I installed Mountain Lion (july 2012) on my 2009 iMac, my usb ports send an electric shock to my external sound card anytime it starts/stops/reboot.
    So my speakers make a sound like "boom" and I'm afraid they will be ruined..how do I control this shocks?
    It NEVER happend with Snow Leopard and Lion. iOS always purchased on Mac App Store.

    Thank you for the quick reply. Sadly it did not work . I can only choose between 44100 and 48000 hz but with both situations, the problem is still there.
    It's most like an USB problem I think, it happens wherever I connect the cable (in any of the 4 ports). I think the Mac sends an electric signal (you can listen the speakers or see the leds in the sound card) to all ports while stopping/starting/waking/rebooting. Actually while starting it happens more than one time.
    I would send a video, but I don't know why but my "Insert Video" button is unactive..

  • I have just started with apple tv. I rented and downloaded a movie from itunes on my macbook pro and tried to watch it. I got the movie up, but it only played a picture for about 3 seconds and then stopped, also no sound? What am I doing wrong?

    Please help me play a rented itunes video on apple tv. Have a pictue and movie runs for about three seconds, and then stops. No sound? But I can play any music from my library with sound?

    Is the movie still buffering? you may have a slow internet connection. Music files require far less bandwidth than movies.

  • Mp3 sounds bad on iphone

    I am new to iTunes and iPhone 4.
    I have an existing collection of cd's, that I did copy into MP3, while using 320kbits sampling rate (I only remember the number).
    If I listen to them, I can hear that the quality is a bit lessor then the original. But, I can live with it, as I will never listen to the MP3 on my hifi set.
    I did drag the MP3 out of explorer, into a iTunes folder, which seems to be coupled to my iPhone 4. That resulted in creating, more then one album per cd, but I found out how to repair that (lot of work).
    Then I started to listen on the iPhone with the apple headphone set.
    My first thought was, pretty clear, but... I miss something.
    I could not put a finger on it. So I plugged in my old Sony headset.
    It sounded better, but I was still missing things.
    Then I heard it.
    It sounded like the high tones and basses where cutoff.
    And there where the music should be very rich in detail, it sounded cluttered up.
    There where a violin stops playing, you normally here it fade out to 0, but now it stopped half way the fading process.
    Then I tried to listen through the PC speakers.
    I loaded iTunes and what seems to be, loading music from the iPhone and played via the speakers. Meanwhile I compared it, by listening to the original MP3, while using Windows Media Player 11.
    I could hear a huge difference. The music via Media Player was more open, No high tones or basses cutoff, no cluttered, but detail, and fading out, did not cutoff either.
    Via iTunes, I heard exactly, what I heard on my iPhone.
    Cutoff high and basses, no detail, all cluttered up, and cutoff fade outs.
    When I look under Info, it says that the MP3 was created at 320kbs.
    My question is, why has an MP3 get such a low quality on my iPhone?
    BTW, I did not change any settings in iTunes.

    I have just tried something out:
    I used iTunes. Made several MP3 with 320kbps setting, and the same numbers and settings for AAC.
    What I heard was, that the MP3 sounds a bit muffled when played in windows media player and iTunes.
    The AAC sounded a bit better then the MP3 with Windows Media player, but it sounded high pitched in itunes.
    I could here more detail with the cd.
    I listened to the Zauberflöte.
    Very odd, when put on the iPhone, I only see the numbers once. but which one?

  • How do I stop downloaded MP3s playing in the QuickTime Browser Plugin?

    I have a number of websites created in Flash, which are used to promote musicians and bands in Bristol, UK. I use Flash because it allows animations, music players, background music, and all the other features ideal for promotional websites.
    We offer MP3s for free download so our fans and followers can own some of our tracks.
    Up until last week, a link directly to an MP3 would launch the "Save As..." download dialogue, allowing users to save the files to their PC.
    However, since installing QuickTime 7, when you click on a link to an MP3 it now launches a nasty little embedded Quicktime player, which you can't save from or do anything useful with.
    This is absolutely useless as I already have streaming audio and a built-in music player in my site, and I can now no longer offer MP3 downloads. I don't want to have to start zipping my MP3s or anything hideous like that, does anyone know a way that I can stop this happening?
    I can't expect visitors to my sites to do anything, so I need some way of changing the URL so that it doesn't trigger the QT plugin.
    Would really appreciate some assistance as this has effectively ruined the most significant part of most of our websites.
    Thanks
    D
    www.longdogmusic.net
    www.bluesdevil.net
    www.haphazard.biz
    Intel P4 2.8Ghz, 1.5Gb   Windows XP   Pro SP2

    Ah, well, it was worth a try, but since you're clearly not actually reading my post - I'm using FLASH, as I clearly stated so you cannot right click.
    As for the QT Mime settings, what you are saying is woefully inaccurate, and once again you aren't reading what I am writing. Quicktime is not the default player for MP3s on my PC. And as of two days ago there was no QT MP3 browser plugin either. I installed Quicktime because I have to have it to play MOV files.
    By installing QT the program arbitrarily (that means it did it without any involvement or permission from me) took ownership of MP3s in the browser only. I know how MIME settings work, and I made absolutely sure that QT did not get it's hands on any of my filetypes. However, there is NOT an option to stop it playing MP3s in a browser, and it most definitely happened without my say so.
    There clearly isn't an answer to this, I'll either have to put my MP3s in Zips or use some elaborate code to generate a nasty HTML page so that you can (retch) Right Click, Save As. All this because the QuickTime player has made changes that it had absolutely no right to.
    Never mind, I'll find another way. But first, I'm uninstalling Quicktime forever.
    D
    Intel P4 2.8Ghz, 1.5Gb   Windows XP   Pro SP2

  • Stop/Play All Sounds Too

    Hi There,
    The play / stop button I have works...but the sound files
    continue playing.
    This is the script I have:
    button1.onPress = function() {
    MovieClip.prototype.onEnterFrame = function() {
    if (_root.direction == "stop"){
    this.stop();
    }else {
    this.play();
    _root.direction = "stop";
    button2.onPress = function() {
    _root.direction = "go";
    //delete MovieClip.prototype.onEnterFrame;
    is there any way to stop/play the sound files (in the current
    frame) also?

    David Stiller wrote:
    > cyphernic,
    >
    >> The play / stop button I have works...but the sound
    >> files continue playing.
    >
    > Heh, so does it work? ;)
    >
    >> This is the script I have:
    >>
    >> button1.onPress = function() {
    >> MovieClip.prototype.onEnterFrame = function() {
    >> // etc.
    >
    > That's a bit more complicated than you actually need, I
    think. Give
    > this article a shot, and write back if you still have
    trouble. :)
    >
    >
    http://www.quip.net/blog/2006/flash/how-to-toggle-sound-globally
    Solution is simple and ok but you don't actually stop the
    sound, just mute
    it so it continue to play tho you just don't hear it.
    You can toggle stop start using simple boolean
    buttonName.onPress = function() {
    (playing=!playing) ? sound1.stop() : sound1.start(0, 999);
    Assuming the sound was attach using something like :
    sound1 = new Sound(this);
    sound1.attachSound("loopSound");
    sound1.start(0, 999);

  • Has Mavericks stopped my Airplay sound?

    I have recently purchased a new MacBook Pro, I was hoping the new addition would solve the problem I've been having with my Apple TV. Both my new MacBook and my iMac, which is only 4 months old, are both running Mavericks and both have stopped playing any sound through my Apple TV. Has anyone else been having this problem?

    Hello jomon95,
    I understand that AirPlay is an important feature of the Apple TV, and I would be concerned too if the audio was not working using AirPlay.
    Because both your MacBook pro and your iMac are very new (congratulations!), I recommend first checking to see if your Apple TV has the latest updates:
    To update your Apple TV to the current software version:
    Select Settings > General > Update Software. Apple TV checks for an available update; if one is available, a download message should appear.
    Click Download and Install to start the download process.
    Do not disconnect your Apple TV during the update process. The Apple TV status light may flash slowly during the update and restart process. This is expected behavior.
    Apple TV (2nd and 3rd generation): How to update Apple TV software
    http://support.apple.com/kb/ht5706
    If your Apple TV is up to date or the audio is still not working, I recommend following the steps in this article:
    iTunes: Troubleshooting AirPlay and AirPlay Mirroring
    http://support.apple.com/kb/TS5209
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • MBP started making a cracking sound

    My MacBook Pro 2010 started making a "crack" sound every 10 seconds or so... Like when you connect an audio device, it stops when the volume is off or when the speakers are being used.
    In my opinion something is failing on the motherboard, such as a solded connection which is weared out or something...
    If anyone has had this problem, please leave a comment ^^ Ill take my Mac to the Apple Store next Monday.
    Thank you!

    Hi,
    Please check if the External works fine ? if no this is not really a speaker issue. if yes, it could be faulty speaker or the loose cable etc...
    if you wish to open the PC, you may follow steps to download manual and follow removal and rexifing procedure.
    Please visit www.hp.com/in and select suport & drivers>Product support and Troubleshooting> type the the complete model of your PC such as dv6-6102tx dv6-3145tx etc... select your computer model (if listed), or select the CTO(such as dv6-6100 CTO) model(which works for whole series) now select the manuals. you have the list of manuals for your PC. download maintenance and service guide.
    hope it helps, Good Luck !!!
    Regards,
    WW
    “I am an HP Employee“
    ***** Click the KUDOS star on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem***

  • Apple TV 2 all of a sudden has trouble streaming.  I stream from my desktop computer's iTunes for movies, and tonight it started stopping randomly mid movie and saying it wasn't connected.  Any ideas?  Router?  ATV dying?

    Apple TV 2 all of a sudden has trouble streaming.  I stream from my desktop computer's iTunes for movies, and tonight it started stopping randomly mid movie and saying it wasn't connected.  Any ideas?  Router?  ATV dying?
    It just says not connected, and as soon as it bails to menu, it connects again and will play for another minute before doing the same thing all over again.

    Hello David, 
    Thank you for contributing to the Apple Support Communities. 
    It sounds like your Apple TV is having trouble streaming videos from iTunes on your computer. This symptom could have a variety of causes, and I'd suggest the following initial troubleshooting steps. 
    In addition to restarting your devices (Apple TV, computer, router), try the tips in this article, starting with "Check your home network:"
    Apple TV (2nd and 3rd generation): Troubleshooting playback performance - Apple Support
    All the best,
    Jeremy 

  • Way to Erase All Start/Stop Time Data?

    I used a DJ plugin called BPMer to load the BPMs into all my MP3s. It had an option "Optimize Start and Stop Times." This helps the program skip ambient intros of songs in order to beatmatch, mix and crossfade more efficiently. The only problem is that the information is retained under Get Info:Options:Start/Stop Times even if the plugin is turned off. It is stored in the ID3 info. I am wondering how to universally delete this information or reset it to default because I do not feel like going to every song individually to reset it (I'd have to do it about 6000 times). I tried selecting multiple songs, but the Start/Stop does not show up under Options when multiple tracks are selected.
    Also don't suggest to re-run the BPMer program with the box unchecked for optimize start/stop times. I tried it. I figured out how to make BPMer not edit the times in the future, but it won't erase or overwrite the old start/stop info on tracks I already used it on.
    Sort of a weird problem, but any ideas to save me from the nightmare of doing this individually 6000 times are greatly appreciated.

    Doug Adams has a script over at his great site that should help with what you're trying to do.
    http://dougscripts.com/itunes/scripts/ss.php?sp=resettracksstartstop
    Matt

  • How to start / stop nodes without domain-controller / automatically on Win?

    Hi,
    we have a distributed installation of CMSDK 9.0.4.
    We have installed a 9.2.0.4 Database on Solaris and we are using the 10g(9.0.4) Infrastructure on Solaris with it.
    The first installation of CMSDK uses a J2EE-MidTier installation on the Solaris server and contains the CMSDK domain controller and a normal node with nfs protocol server running.
    The other installations are done on Win2003 Blades. Currently we are using two Blades. On each there is a J2EE-MidTier installation and within these we have installed CMSDK with HTTP-Node and normal node. We are using NTFS-Server within the normal nodes.
    The Blades are within one Domain and we have NLB-Cluster activated for both.
    The whole thing sounds complex, but it works fine. We only have some trouble regarding start/stop of the nodes:
    1. If the solaris backend fails, our cluster-configuration tries to stop and start cmsdk. While stopping cmsdk, all nodes - even those on the Win-Servers - are stopped. But starting does not bring em up again automatically.
    2. If a Windows Server is booted, the normal node does not start automatically.
    3. If one Windows Server is not available, the ifsctl check takes a very long time because it's trying to get information from the missing one.
    Is there a way to restart the domain controller and node on solaris without stopping the nodes on Windows?
    How can we start the windows nodes automatically after reboot?
    Is there a way to probably start the nodes without being managed / guarded by the domain controller?
    Thanks for help,
    Alex

    Try adding this script to your /etc/init.d directory:
    #!/bin/sh
    ifsctl start << EOF
    <ifsctl password>
    EOF
    Replace <ifsctl password> with the password that you would give at the prompt.
    It will complain about Inappropriate ioctl for device, but it works.

  • Pb loading external mp3 sound file

    Hello,
    I use the following code to load and then play an external
    mp3 sound file called "loop.mp3"
    var son:Sound=new Sound(this);
    son.loadSound("loop.mp3",false);
    son.onLoad=function(success) {
    if (success) {
    this.start(0,999);
    When I test my code while being under author environment by
    using CTRL+ENTER Key, the sound is playing properly but when
    launching the swf file alone, the sound is not playing. Why?

    ritpas wrote:
    > Hello,
    >
    > I use the following code to load and then play an
    external mp3 sound file
    > called "loop.mp3"
    > var son:Sound=new Sound(this);
    > son.loadSound("loop.mp3",false);
    > son.onLoad=function(success) {
    > if (success) {
    > this.start(0,999);
    > }
    > }
    >
    > When I test my code while being under author environment
    by using CTRL+ENTER
    > Key, the sound is playing properly but when launching
    the swf file alone, the
    > sound is not playing. Why?
    when you say "launching the swf file alone", what do you mean
    on destkop ? within browser ?
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • 'Charger unplugged. Tap ok to stop this annoying sound'....

    Last night I plugged my Q10 in and suddenly it starts wailing like a siren.... I look at the phone and see the message 'Charger unplugged/. Tap ok to stop this annoying sound'... Thing is, the charger was NOT unplugged and I have NO IDEA what is making this noise...
    SAME thing happened again just now when I plugged it into my work computer...
    Is this a virus?? is that even possible? I haven't downloaded any new apps or anything..
    Quite confused. 

    That alert is alarming. I had it go off for a severe weather alert and the office started to clear out as it was same sound for the building alert to exit. Didn't know about it and took me a few seconds to tap it out and corral the office mates who were abandoning ship. I thought that alert for the charger was an app designed to alert you if someone tries to pinch your phone while it is on charger and then taken off without your knowledge. Sounds like your phone is malfunctioning for this alert. Dunno the fix other than tapping, maybe someone else will chime in.

Maybe you are looking for

  • Beyond frustrated with the lack of support for this phone

    My title says it all...  I've had this phone since sometime in August, and at the time we signed up, we were "upgraded" from the freebie phones into three of these phones, one each for myself, my wife and our daughter.  These phones are slow, laggy a

  • Print each page range double sided as new task

    Hi All, I have that problem. I would like to double sided print some pages from pdf file - let's say pages 1 to 5. But I want them to print like this - pages 1-2 on the first sheet of paper, page 3 on the second sheet (the other side of this sheet I

  • Mac Mini Expansion

    Is a PCI Express Card or similar available for a Mac Mini? I have a MOTU 24i I/O audio digital converter that uses a PCI-324 Audio card. I have just purchased a Mac Mini and would like to continue using the 24i.

  • Macbook vs Macbookpro

    Hi I'm a student about to enter university and I'm wondering whether macbook or macbookpro would be right for me. I will use my notebook for school work, internet usage, music, and moderate photo editing. If you have any suggestions your response wou

  • TS3623 Apple TV update

    I updated my appletv today and now it is showing a picture as if it wants me to plug it in to the computer... I didn't have to do that to set it up. I don't have a cord for that. What is going on?