Does anyone have an easier way of playing sounds?

I've been learning AS3 this year and so far the most tricky and annoying thing for me is the way the Sound Channel works.
I have a movieclip holder with around 20 frames, with animation on each frame.
I have been coding my sound effects, but soon I'll need a Voiceover track on each frame. I don't want to have
to write tons of code for each one, playing them and stopping them if the user toggles back and forth.
Is there a simple way of doing this? I tried adding sounds on the timeline using 'event', but they don't stop
playing if you go to a new frame.
Any ideas?
Thanks,
Matt

If you use external MP3 files you could have an array of the file names, or construct the filename based on the frame number. Then you would do a SoundMixer.stopAll() to stop any other sounds playing, and then play the frame's external MP3.
The SoundMixer.stopAll() ought to work for the timeline Event sound version too.

Similar Messages

  • Does anyone have an easy way to transfer Picasa photo files to G5 from a PC

    I have 11000 photos in Picasa and got my apple to do more with them. I cannot seem to transfer the photos without emailing them individually.
    Does anyone have any experience with this? Help!

    Hi butterbeer,
    check out this Switch page
    http://www.apple.com/switch/howto/
    Hope you find the right solution for your situation.

  • I have huge amount of data on a windows external drive and want to transfer to a Mac drive.  Does anyone know an easy way to do this?  I have almost 2TB of data to transfer.  Thanks.

    I have huge amount of data 2TB on a windows Fantom external drive and want to transfer to a Mac drive.  Does anyone know an easy way to do this?  Thanks.  I have an IMac 3.5 GHz Intel Core i7.  I haven't bought a Mac external yet. 

    Move your data to a new Mac - Apple Support

  • Does anyone have a quick way to have iTunes on my ipad list which songs are actually downloaded to the device ?

    Does anyone have a quick way to have iTunes on my ipad list which songs are actually downloaded to the device ?

    If you want to import movies into iTunes you can use that to stream & convert to Apple TV compatible formats as Rudegar suggested.
    Another option is to install a media streaming application like Plex or Kodi on a PC/ Mac.
    https://plex.tv/
    http://kodi.tv
    Those should be able to stream to the Amazon Fire stick. They also can re-encode video 'on the fly'. So if you format is not supported the computer converts it & the device on the TV gets a format that does work (not including DRM protected files) - obviously this requires a computer with enough power to convert, but many recent computers have enough power to do that. There is setup involved, but these servers are a good once configured.
    Roku has a Plex app that also works well on the TV.
    The Apple TV does not work well with these apps, it expects you to use iTunes.

  • Anyone have an easy way to hide an image when clicked?

    Hi,
    I have an image where I need each text box/arrow to delete once clicked. Surely there is an easier way than creating millions of frames? Is it possible to do it with a button? The person using the animation needs to click the right ones that would lead to them dissappearing.
    This was mocked up in photoshop. Only the photo would be brought into flashes library.
    Thanks in advance.

    Thanks esdebon for your response. I have tried to get it to work and keep getting compiler errors. Nothing happens when i click on the movie clip. button was converted to a movie clip and I added the actionscript but to no avail. This is the error I am getting while testing:
    Scene=Scene 1, layer=low, frame=1, Line 1
    Statement must appear within on/onClipEvent handler
    Scene=Scene 1, layer=low, frame=1, Line 3
    The class or interface 'MouseEvent' could not be loaded.
    In your second response does "
    image2.addEventListener(MouseEvent.MOUSE_OVER, hideImages) // to mouse over event
    image2.addEventListener(MouseEvent.MOUSE_OUT, hideImages) // to mouse out event"
    replace "
    image2.addEventListener(MouseEvent.CLICK, hideImages)
    image3.addEventListener(MouseEvent.CLICK, hideImages)
    image4.addEventListener(MouseEvent.CLICK, hideImages)"
    for each image? Two lines compared to one in the original line of code?
    Also does this stay the same for the first image?
    image1.addEventListener(MouseEvent.CLICK, hideImages)
    function hideImages(e:MouseEvent):void{
         e.target.visible=false;

  • I'm having some trouble spacing groups of text boxes. Does anyone have an automated way to evenly distribute space between groups of two text boxes?

    There isn't much more to this question. My format works like this:
    H2 Headline
    H3 Explanation
    H2 Headline
    H3 Explanation
    H2 Headline
    H3 Explanation
    I need to distribute these text boxes evenly down my page. It's a bit of a pain to do so manually. Since there are other objects on the page, the spacing guidelines get thrown out of whack. My most secure way is to create a box, line it up with the bottom of the first group and the top of the next. Then repeat all the way down the page.
    I thought about using just one text box but rejected it. I need to have content pulled from other portions of the site. That wouldn't be possible with only one text box. Plus, it's much easier to format the text box than individual text.
    If anyone has an idea, I'd love to hear it.
    Thanks.

    mitchging If I am understanding what you require, this might be what you're after.Assuming you want to have all the boxes equally spaced, you can use the Align panel. In the screen grab the four boxes are sets of two grouped text boxes, similar to your description. Select the first group object, then select the remaining three. Open the Align panel. First set the Align To method to Key Object. Now set the distribution spacing to the required value. When you click the Vertical Distribute Space button, they will all be spaced equally. You can then fine-tune it by changing the value and hitting the button again whilst they are still selected.
    I hope this helps.
    David

  • Does anyone have a concrete way to extended the iPhone 5 battery life?

    I've heard all of the rumors about not restoring your phone from an older backup, such as from an iPhone 4 like I did, but does that really work? And if so, how do I go about setting up my iPhone 5 as new, and then get all of my information back on to it. I don't really have enough space on iCloud to comfortably sync all of my contacts, pictures, and all of that shenanigans so what can I do? I've tried all of the basic settings stuff. (Location settings, WiFi, Bluetooth, and all of that good stuff.) None of it really worked. So if you guys have had any success with any sort of method let me know, please.
    By the way, I have the Verizon verison of the phone if that makes any difference.
    Thanks in advance!

    Only concrete way is to use it less sorry see here every method possible has been tried
    https://discussions.apple.com/thread/4329696?start=2970&tstart=0

  • Does anyone know an easy way to delete 500 of duplicate contacts

    please help me

        Wow kris71! That's a lot of duplicate contacts! Apple has some great steps at http://support.apple.com/kb/TS4147 to help resolve duplicate contacts. There are also third-party applications through the iTunes store https://itunes.apple.com that will clean up duplicate contacts on Apple products, but I would highly recommend going through Apple's support suggestions first.
    Thank you
    JenniferH_VZW
    Please follow us on Twitter @vzwsupport

  • I copied several MOV files to a CD. When I play them from the CD the video is fine but the audio works fine for the first few seconds then stops (using Qicktime Player 7.7.1.  Everything works fine if I use VLC Media Player. Does anyone have any idea why?

    I copied several MOV files to a CD. When I play them from the CD the video is fine but the audio works fine for the first few seconds then stops (using Qicktime Player 7.7.1.  Everything works fine if I use VLC Media Player. Does anyone have any idea why?

    My purpose for copying to a CD or DVD is so that I can make copies and send to friends and relatives. What is the best way to get these files on a CD/DVD with the right codecs?
    The easiest thing to do is to simply tell your friends and relatives to copy the files to their local hard drive before playing them. Your basic problem is that data discs have a limited real time transfer rate. Since you say VLC plays the files fine, I might suspect its player is likely buffering the data while the QT 7 Player is not.
    Data discs made for playback directly from the CD or DVD are normally encoded using MPEG-4/AVC (H.264) video with AAC audio. This is a modern codec which has specific settings to re-package the data (i.e., must be encoded using the multipass option and then select the "optimize for CD/DVD" option).

  • I am trying to connect my Macbook pro 2010 to my Samsung HDTV using a mini display port to hdtv cable. Trying to play a slide show in IPhoto but I only get sound with no picture. Does anyone have any suggestions?

    I am trying to connect my Macbook pro 2010 to my Samsung HDTV using a mini display port to hdtv cable. Trying to play a slide show in IPhoto but I only get sound with no picture. Does anyone have any suggestions?

    I keep saying this over and over, in the hope that people who do a search will find it.  Apple cannot possibly test for or be reponsible for the bazillion combinations of adapter, cables, and TV's out there.  The only monitors that are 100% guaranteed to work with the MacBook Pro are the Cinema Displays and Thunderbolt Displays, because, they're made by Apple.  They're expensive, but they work perfectly.
    My guess is that you bought a cheap MDP to HDMI cable, or have a defective one.  From my reading of these boards over the past few months, cheap cables have a high failure rate.  And the regular priced ones have only a slightly less of one.  Try a new one.  Make sure you do not damage the Thunderbolt port.

  • I have just updated my software on my iPhone 4S to IOS7.0.4 now I have lost many of my contacts.   Can anyone suggest an easy way to reinstate them.  (Without having to add them all again as I don't know what I have lost until I need it).

    I have just updated my software on my iPhone 4S to IOS7.0.4 now I have lost many of my contacts.   Can anyone suggest an easy way to reinstate them.  (Without having to add them all again as I don't know what I have lost until I need it).

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • Is there any way of exporting a clip (example 1 hour) into 4 seperate 15 min clips at the same time? Or does anyone have any ideas along the same lines to save time? Add my skype baconhousevidz if you can help or are unsure of what im asking

    Is there any way of exporting a clip (example 1 hour) into 4 seperate 15 min clips at the same time? Or does anyone have any ideas along the same lines to save time? Add my skype baconhousevidz if you can help or are unsure of what im asking
    thanks everyone

    BaconHouseVidz wrote:
    … at the same time…
    in hope to speed things up?
    no, no effect.

  • My Mac has suddenly stopped playing my DVDs including a DVD it played fine only 3 days ago. Does anyone have any idea what could be wrong and how I could fix it? Thank you.

    My Mac has suddenly stopped playing my DVDs including a DVD it played fine only 3 days ago. I insert the DVD and wait for the player to start automatically but after 10 minutes, nothing is happening and it sounds like the disk has stopped spinning. I've now tried with four different DVDs (all store bought and so perfectly normal disks). The Mac doesn't eject the disk or anything it just doesn't seem to respond to it being there at all.
    My main confusion is why this suddenly happened today when it was perfectly fine last week.
    Does anyone have any idea what could be wrong and how I could fix it? Thank you.
    Jinxe

    Welcome to the Apple Support Communities
    See "The drive accepts discs but they do not mount or are automatically ejected" > http://support.apple.com/kb/HT2801

  • I have 3 DVDs with videos recorded in mpg format. My Mac will not play them and says I may need to download software. Does anyone know what to do to play the DVDs.

    I have 3 DVDs with videos recorded in mpg  format. My Mac says it cannot play them and I may need to download additional software. Does anyone have any suggestions on what to download or do to play them?
    naomifromnewyork

    VideoLAN - Official download of VLC media player for Mac OS X

  • Having trouble opening a pdf with Adobe...keep seeing an error sign "acroExch"  does anyone have a way to fix this?

    Having trouble opening a pdf with Adobe...keep seeing an error sign "acroExch"  does anyone have a way to fix this?

    Hmm, "Use Adobe Reader" should launch the PDF outside of Firefox in the stand-alone Adobe Reader application, so seeing it in a tab is something of a puzzle.
    Could you check your version of Adobe Reader? For Windows 7, you normally would have the Reader XI series (Reader 11), which has had several updates. From inside Adobe Reader, you can use Help > Check for Updates to make sure it's current.
    In Firefox, could you check your Adobe Acrobat plugin version or possibly versions? You can view that on the Add-ons page. Either:
    * Ctrl+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Plugins. If you find multiple versions, this can cause problems and may need to be cleaned up manually (post back on that for suggestions).
    Sometimes, the settings file which stores those download handler preferences becomes corrupted and there's not much else to do than to rename or remove that file and let Firefox rebuild it.
    To do that, open your current Firefox settings (AKA Firefox profile) folder using either
    * "3-bar" menu button > "?" button > Troubleshooting Information
    * (menu bar) Help > Troubleshooting Information
    * type or paste about:support in the address bar and press Enter
    In the first table on the page, click the "Show Folder" button. This will launch a new window (Windows Explorer window) listing various settings files.
    Leaving that window open, switch back to Firefox and Exit, either:
    * "3-bar" menu button > "power" button
    * (menu bar) File > Exit
    Pause while Firefox finishes its cleanup, then rename '''mimeTypes.rdf''' to something like mimeTypes.old
    Start Firefox back up again and "PDF Files" should be back to their default setting of "Preview in Firefox". Try changing that to "Use Adobe Acrobat (in Firefox)" and test to see whether there's any improvement.

Maybe you are looking for