Working with Sound in AS3

Ok I understand the structure of the new sound setup.
But when I used this on a swf that I uploaded to a different
site - the sound didn't work - I didn't have the option of loading
separate files to the website so the URLRequest could find the
sounds.
Is there a way of embedding the files so that they are
exported into the SWF.
OR is it meant to be embedded and on this occasion there was
some unknown error with SWF?

you can import sound files into the flash authoring
environment so they're part of the compiled swf. generally, this
isn't desirable for mp3's because they are usually large files that
delay the swf's initial load.
and there's nothing wrong with your code. if that mp3 is in
the same directory as the html that embeds the swf that contains
that code, your mp3 will play.

Similar Messages

  • Working with sound?

    Hi,
    I'm working with Final Cut 6 and I'm trying to do some stuffs in Motion 3, so I sent the clip directly from FC but in Motion I don't get the soundtrack, I need to animate in sync with the sound, does anybody know how can I do it?
    Thanks in advanced
    Javier

    Select both the video and the audio in FCP and send both to Motion.

  • How to work with sound in iphone application developement?

    Hi All
    I have tried some thing written in the book.I have included AudioTool.framework to my project.But unable to hear the sound.
    the code i have used is
    NSString *path=[[NSBundle mainBundle] pathForResource:@"crunch" ofType:@"wav"];
         SystemSoundID SID;
      AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:path], &SID);
      AudioServicesPlaySystemSound(SID);
    the sound file has the name "crunch.wav".

    Well as a starter i was just trying this in the mac with iphone simulator 3.1.3 to chek whether its working or not and to understand the keys and concepts of using these things. So I have tried this but not worked. Everything(all the resources and the methods) in this code has been being maintained according to their case in the bundle .

  • I movies work with sound in quicktime but not in imovie hd!!!

    I have clips that worked in imovie hd before but all of a sudden the sound will not work, but they will work in quicktime....any ideas?

    Welcome to iMovie Discussions.
    Some clips - which started life not as DV camcorder clips, but might be .AVI, or somesuch, downloaded from the web, or shot as movies with a digital stills camera - may have audio in QuickTime but not in iMovie.
    QuickTime understands and replays many different file formats (..see all the different file formats QuickTime Player can handle, in the right-hand column here..) ..some of which iMovie can't handle.
    If your clips "..worked in imovie hd before but all of a sudden the sound will not work.." it might be because you'd had QuickTime open in the background, previously, or because you'd altered them in some way ..or maybe you 'Extracted' their audio, but don't have the check-boxes ticked for the audio tracks at the right-hand edge of the Timeline.
    The most important question is: were these clips originally from a tape-based DV camcorder, or did you import them from something else, e.g; web, hard disc camcorder, DVD camcorder, .AVI or other iMovie-incompatible origins?

  • My iPhone won't mirror videos or pictures with my Apple TV it will only work with sound what's going on with that

    I cannot get my iPhone to mirror with my Apple TV it will only do sound but no video and pictures what am I doing wrong question. I have to Apple TVs the other one works fine but this one is not. is there a setting I'm missing on the phone or on the Apple TV to turn on mirroring?

    i have the same problem aswell on ee

  • Trying to work with sound from 2 cameras in multicam mode

    I recorded a wedding service with 2 cameras simultaneously from 2 angles. I captured the footage from both cameras and I would now like to use portions of the sound on camera 1 at some points and portions of camera 2 sound at other times. When I go into multi camera edit mode all the sound from both cameras is combined onto one sound track. I now do not have the option to mix between the 2 sound tracts. If I use the audio mixer before I cut the 2 cameras together, I loose that audio mix when when I go into multicamera mode because not only is the audio combined but it has been put into a new sequence and is in a different spot on the timeline. What can I do to solve this problem?
    Thanks in advance for any help you can give.

    You will also find links to many
    free tutorials in the PremiereProPedia that will quickly show you how things are done in Premiere Pro.
    Cheers
    Eddie
    PremiereProPedia   (
    RSS feed)
    - Over 300 frequently answered questions
    - Over 250 free tutorials
    - Maintained by editors like
    you
    Forum FAQ

  • MPEG 2 plug in doesn't work with sound

    Hi,
    I've installed the MPEG2 plug-in for QuickTime which allows to play .vob files from DVD. But when I open a .vob it plays the video, but without audio. Does anybody know about this problem and how to fix it ?
    Thanks,
    Michael

    The component has limits:
    http://www.apple.com/quicktime/mpeg2/faq.html
    Only VOB files containing MPEG audio layers I and II are supported.

  • Getting started with Sound

    Hello everybody,
    I am new to working with sound on JAVA, though I am not new to Java programming in general.
    I am having trouble finding a place to start with a (I think...) simple problem:
    I want to implement the following functionality:
    1) Load an audio file from disc in one of the three formats *.wav, *.aiff or *.mp3
    2) Specify a start and end time (preferrably in milliseconds) and play the corresponding part of the sound file
    My hope is that there is a ready-to-use class for this in Java 1.4., but I can't seem to find it. javax.sound.sampled.Clip seems to provide some of the things I am looking for, but it is an INTERFACE. Is there a class which IMPLEMENTS it?
    Thanks for your help.
    Thomas

    Hi new Java developper in sound :),
    Just to help you to begin, you have two different thing to work with sound on java.
    - Javasound (javax.sound) include in the JDK1.4
    - JMF (javax.media) download on the JMF home page
    If you wanna do something very simple you can use the Javasound API. It'very easy to use and you can access easily to the data.
    If you wanna support different format or implement effect or do something more powerful, you will need to use JMF (in fact this forum is here for that). I pretty sure that Javasound don't support mp3, so will need to use JMF.
    Just for you to know, JMF use Javasound to render some sound format, so you can consider JMF like an new layer after Javasound. For the sun-ibm implementation.
    I post already some code who do the job you need (I guess). It's was for video but it work also for sound.
    http://forum.java.sun.com/thread.jsp?forum=28&thread=313688
    good luck

  • MPEGs with sound in iMovie

    Well I have a digital camera that records movies with sound, but when I try to import them into iMovie they end up with no sound. The help manual says that MPEGs wont work with sound in iMovie. So I was wondering, is there anyway to convert my MPEG movies into somthing iMovie compatible for sound like a .mov or DV. I've tried many products but they all seem to convert the video and leave the sound out just like iMovie does? Please help me.

    Hi Scott:
    Welcome to discussions!
    iMovie does not work with muxed MPEG-1 and MPEG-2 clips
    http://docs.info.apple.com/article.html?artnum=42996
    But Dan shows you how..
    http://www.danslagle.com/mac/iMovie/tips_tricks/6030.shtml
    Sue

  • Premiere CS5 import avi clips without sound. How can I import avi clips with sound without convert?

    Dear Adobe Forum,
    I have the following problem, please help:
    I would like to import avi clips in adobe premiere. All clips have the same avi codec. But unfortunately my adobe premiere does not import the sound of a few
    avi clips. It is wired because about 10 out 70 avi clips which have all the same avi codec does not work with sound in premiere CS5. In the timline premiere import the video and audio line but there are no audio waves in the about 10 avi clips. additonally premiere plays the 10 avi clips in the source monitor without sound. Furthermore when I open the 10 avi files without adobe premiere they have sound, but with premiere there are no sound in the 10 avi clips.
    What can I do, so that I can import all avi files with sound. I do not want to convert each of the avi files because then they have not a good quality and it is to complicated and it takes to much time to convert all files in this video project and in the other video project in my future.
    Consequently How can I import all avi files so that they have immediately sound? Do I have to change some premiere settings?
    Thank you in advance
    Leonardo

    Now I show you details of 2 files:
    the first video clip which you can import with sound (works):
    Video:
    1280 x  720
    data rate: 4259 kBit/s
    total bitrate: 4387 kBit / s
    Single bit rate: 29 single images / second
    Format                           : AVI
    Format/Info                      : Audio Video Interleave
    File size                        : 63.5 MiB
    Duration                         : 2mn 1s
    Overall bit rate                 : 4 388 Kbps
    ID                               : 0
    Format                           : AVC
    Format/Info                      : Advanced Video Codec
    Format profile                   : [email protected]
    Format settings, CABAC           : Yes
    Format settings, ReFrames        : 4 frames
    Format settings, GOP             : M=3, N=15
    Codec ID                         : H264
    Duration                         : 2mn 1s
    Bit rate mode                    : Variable
    Bit rate                         : 4 248 Kbps
    Maximum bit rate                 : 4 001 Kbps
    Width                            : 1 280 pixels
    Height                           : 720 pixels
    Display aspect ratio             : 16:9
    Frame rate                       : 29.970 fps
    Color space                      : YUV
    Chroma subsampling               : 4:2:0
    Bit depth                        : 8 bits
    Scan type                        : Progressive
    Bits/(Pixel*Frame)               : 0.154
    Stream size                      : 61.4 MiB (97%)
    Audio:
    Bitrate: 128 kBit/s
    Channels: 2 (stereo)
    sampling rate: 48 kHz
    ID                               : 1
    Format                           : AAC
    Format/Info                      : Advanced Audio Codec
    Format version                   : Version 4
    Format profile                   : LC
    Format settings, SBR             : No
    Codec ID                         : FF
    Duration                         : 2mn 1s
    Bit rate                         : 128 Kbps
    Channel(s)                       : 2 channels
    Channel positions                : Front: L R
    Sampling rate                    : 48.0 KHz
    Stream size                      : 1.85 MiB (3%)
    Alignment                        : Aligned on interleaves
    Interleave, duration             : 21 ms (0.64 video frame)
    the second video clip which you can import without sound (doesn't work with sound):
    Video:
    1280 x  720
    data rate: 4278 kBit/s
    total bitrate: 4406 kBit / s
    Single bit rate: 29 single images / second
    Format                           : AVI
    Format/Info                      : Audio Video Interleave
    File size                        : 69.3 MiB
    Duration                         : 2mn 11s
    Overall bit rate                 : 4 407 Kbps
    ID                               : 0
    Format                           : AVC
    Format/Info                      : Advanced Video Codec
    Format profile                   : [email protected]
    Format settings, CABAC           : Yes
    Format settings, ReFrames        : 4 frames
    Format settings, GOP             : M=3, N=15
    Codec ID                         : H264
    Duration                         : 2mn 11s
    Bit rate mode                    : Variable
    Bit rate                         : 4 267 Kbps
    Maximum bit rate                 : 4 001 Kbps
    Width                            : 1 280 pixels
    Height                           : 720 pixels
    Display aspect ratio             : 16:9
    Frame rate                       : 29.970 fps
    Color space                      : YUV
    Chroma subsampling               : 4:2:0
    Bit depth                        : 8 bits
    Scan type                        : Progressive
    Bits/(Pixel*Frame)               : 0.154
    Stream size                      : 67.1 MiB (97%)
    Audio:
    Bitrate: 128 kBit/s
    Channels: 2 (stereo)
    sampling rate: 48 kHz
    ID                               : 1
    Format                           : AAC
    Format/Info                      : Advanced Audio Codec
    Format version                   : Version 4
    Format profile                   : LC
    Format settings, SBR             : No
    Codec ID                         : FF
    Duration                         : 2mn 11s
    Bit rate                         : 128 Kbps
    Channel(s)                       : 2 channels
    Channel positions                : Front: L R
    Sampling rate                    : 48.0 KHz
    Stream size                      : 2.01 MiB (3%)
    Alignment                        : Split accross interleaves
    Interleave, duration             : 21 ms (0.64 video frame)
    Consequently, as you can see, they have both nearly the same information
    Both video clips have the following audio codec:
    AAC
    In the folder where all raw video clips exist there are a few new files with the codec ending: .AVD ("the name of the file".AVD)
    But the 2 video clips mentioned above does not have any files like .AVD oder something else like that. But the first one works and the second one doesnt work.

  • Program silver Uverse remote to work with Apple TV

    Let me start by saying that I have the second generation Apple TV and the silver Uverse remote control.
    Through ATV's "Learn Remote" function, I've succeeded at setting up the Uverse remote so the basic ATV functions work (up, down, left, right, select, menu). But I haven't been able to set up my remote to do playback functions (play, pause, stop, rewind, fast-forward, etc.), which are equally important when watching anything through ATV.
    I'm wondering whether the playback functions aren't working on my Uverse remote because the models of my hardware are incompatible; again I have a silver Uverse remote and 2nd gen ATV.
    Has anyone else had this problem, or, better, yet, have a solution to it? If I can't program my Uverse remote fully via the ATV directions, do you know the ATT-specific directions/codes on how to get these two devices to work together properly?
    Thanks in advance.

     - You can try the search method & step through every code to see if one works.
    You can call in for a new S-20 remote designed to work with Sound bars that has a code listed.
    Here are the directions for the s-20 & s-10 - http://www.att.com/esupport/u-verse/remotes/
    Here is a work around for the S-10 vol control after you have turned on the sound bar -
    The default for vol control is ALWAYS TV. To change it so that control follows the- ATT/OK-955-ENTER(lower right)
    In att mode, lower the volume from 25 to 15.
    Set the TV volume to a comfortable  level.
    Set the soundbar volume to a comfortable  level.
    While watching in ATT mode, the control will vary the STB volume. Yo will hear the result from whichever sound source is active - TV or soundbar.
    Other possible replacement remotes - Logitech Harmony (if you have any other equipment) or - http://www.amazon.com/s/ref=nb_sb_noss_1?url=search-alias%3Daps&field-keywords=RCRP05BR

  • I need help I have the m audio m track plus and working out of logic studio 9 and it comes up but I have no sound, but I can here it using garageband. How do I get it to work with logic studio?

    How do I use my M Audio M track Plus with the logic pro 9 software? It works with garageband, but I am not getting anything out of Logic. It does show up on list as option and I have done all of the sound preferences to M audio, etc. etc. Please help

    I got to that page but clicking on the Subscribe Free had no effect.
    Nothing showed in the Podcasts nor the iTunes U.
    In fact I also subscribed to Stanford's lectures and despite actually managing to DL them there is still no subscription in iTunes U, just the Intro to Computer Science belatedly.
    Peter
    I'd like to attach the screen grab of the out of order and randomly DLed selection of Harvard's course, but the forum won't let me attach it even though it is only 456k. Correction, close post and retry and now it lets me. NB how intermittent the DLs are and in no particular order.

  • I had a repair done on my MacBook Pro and had to have a new hard drive installed. The Apple Auth Repair Shop then updated the OS from 10.6.8 to 10.7.5. Now my iPhoto v 9.2.3 will not open and it sounds like it will not work with this OS. Can you plea

    I had a repair done on my MacBook Pro and had to have a new hard drive installed. The Apple Auth Repair Shop then updated the OS from 10.6.8 to 10.7.5. Now my iPhoto v 9.2.3 will not open and it sounds like it will not work with this OS. Can you please advise?

    You may need many other updates to retain compatibility with Lion. I suggest you reinstall Snow Leopard. Unfortunately, you will need to erase the drive first. Be sure to backup your data if you haven't done so already.
    Clean Install of Snow Leopard
    Be sure to make a backup first because the following procedure will erase
    the drive and everything on it.
         1. Boot the computer using the Snow Leopard Installer Disc or the Disc 1 that came
             with your computer.  Insert the disc into the optical drive and restart the computer.
             After the chime press and hold down the  "C" key.  Release the key when you see
             a small spinning gear appear below the dark gray Apple logo.
         2. After the installer loads select your language and click on the Continue
             button. When the menu bar appears select Disk Utility from the Utilities menu.
             After DU loads select the hard drive entry from the left side list (mfgr.'s ID and drive
             size.)  Click on the Partition tab in the DU main window.  Set the number of
             partitions to one (1) from the Partitions drop down menu, click on Options button
             and select GUID, click on OK, then set the format type to MacOS Extended
             (Journaled, if supported), then click on the Apply button.
         3. When the formatting has completed quit DU and return to the installer.  Proceed
             with the OS X installation and follow the directions included with the installer.
         4. When the installation has completed your computer will Restart into the Setup
             Assistant. After you finish Setup Assistant will complete the installation after which
             you will be running a fresh install of OS X.  You can now begin the update process
             by opening Software Update and installing all recommended updates to bring your
             installation current.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.

  • How do i get my surround sound to work with my laptop while using a hdmi cable for the video

    I have a Sony surround sound  system hooked up that works great. My X-Box 360 works with it and I can get my HP G60 to play audio files through the surround sound system with a red and white audio jack plugged into the back of my surround sound receiver, the red and white audio cord goes to a 3.5mm headphone jack that i plug into the headphone plug on the front of my computer. The problem occurs when I hook my HDMI cable into my computer and connect it to my Samsung Flat screen, the HDMI sound takes over and wont allow the sound to go through the headphone jack. My tv does not have any audio output plugs, and my suround sound reciever doesnt have an HDMI input. Is there a setting on the computer that will allow me to over ride the HDMI sound and direct the sound through the head phones? or is there an app or tool that will allow my laptop to recognize my suround sound system plugged into my laptop? I have been to best buy, walmart, radio shack and even my local car audio store to ask about this issue and everyone has a different solution, and so far none of them have worked???????? sincerley frustrated! please help!?!?!?!?!?!?!?!?

    Hello JaeRoc48,
    I understand that the sound is not working.
    Go to start.
    Type Sound.
    Select sound.
    Select speakers as default.
    Click OK.
    Let me know how everything goes.

  • I have a macbook 13" late 2009 and would like to connect my TV to macbook to view video with sound. What cable do I need to mack work?

    I have a macbook 13" late 2009 operating system OS10.9.2.
    I would like to connect my macbook to my TV . I have connected a mini DVI / HDMI cable to my tv which works for the picture but have no sound.
    How do I get the sound to work?
    Thanks

    When you connect the MacBook using a Mini DisplayPort to HDMI adapter you will probably need to use external speakers or a 3.5mm stereo headphone jack to RCA sound plugs connected to a stereo sound system if your TV doesn't have separate RCA input plugs or a 3.5mm stereo input plug for audio with the HDMI plug. The Mini DisplayPort to HDMI doesn't carry audio unless you have the Mid 2010 model 7,1 and there're no audio plugs on most TVs to work with HDMI since it's expecting audio with the HDMI. But check your TV manual to see if it has audio plugs that work with one of the HDMI ports.
    If you have the Late 2008 model 5,1 Aluminum Unibody or Late 2009 model 6,1 White Unibody with the Mini DisplayPort rather than the Mini-DVI there is an adapter that uses the Mini DisplayPort and a USB port to combine video and audio to HDMI. It's only 2 channel stereo not 5.1 Dolby Surround.
    http://www.monoprice.com/products/product.asp?c_id=104&cp_id=10428&cs_id=1042802 &p_id=5969&seq=1&format=2

Maybe you are looking for

  • Using an old iBook as a file server...

    Okay. So, right now I'm using an old Apple iBook G3. It's a Dual-USB 800 MHz version. It's running Panther 10.3.9... In the near future (Two months, maybe) I'll be purchasing a new Macbook. I don't want to just pawn off my old mac, or throw it out (E

  • Export Settings - Minimum Bit Rate Question (MPEG2-DVD)

    Hi, Curious...just came over recently from FCP and I don't remember Compressor giving me an option to adjust the MINIMUM bit rate when exporting HD projects for DVD. I figured I'd just leave it where the preset has it (at 2.8mbps minimum)...BUT...the

  • Connecting SAP ERP and SAP XI via RFC (in cluster)

    Hi all, I have a strange problem with SAP ERP and SAP XI (production systems). Both systems are installed in cluster. I am trying to connect both systems via RFC, so I configurred TCP connection using SM59. But, when I try to test connection, I am al

  • Can't Start HTTP Server Service

    I can't seem to be able to start the Oracle HTTP server service on NT. All other service get started properly but when I attempt to start the HTTP Server service I get Error 1067: process terminated unexpectedly. Any idea why this is happening? My in

  • E72 - E-mail notification Problem - I got no notif...

    I´ve just got an E72. I set up my professional e-mail account via nokia messaging on the website http://email.nokia.com/account/home.action, as is says this would work as push e-mail. The messages really arrive almost instantly to my device (it took