adding sounds in flex

Someone has good documentation on how to add sounds in my flex Im very new App Development and sought autour and im not to find a lot of useful information through google. I found the following but all ive been tried has failed:

[Bindable]
[Embed(source="assets/click_sound.mp3")]
public var sound: class;
 
    <>arallel id = "seq" >
        
        <>oundEffect source = "{his}" / >
    arallel >

--------------

<>cript >
        public void onClick(event:Event): void
{
var sound: Sound = new Sound (new URLRequest('assets/click_sound.mp3'));
Sound.play();
}
]]>
    cript >
    

Websites with good tutorials/samples or suggestions would be much appreciated

Try:

var sound : Sound = new Sound(new URLRequest('file://assets/click_sound.mp3'));
sound.play();

Tags: BlackBerry Developers

Similar Questions

  • How to print dynamically added columns in Flex

    Hello

    I use a component AdvancedDataGrid in Flex 3.6 application. My ADG displays a variable number of columns, so some columns are hardcoded (declared in MXML) and some are added dynamically (ActionScript). It works well. But when I try to print my ADG, only hard-coded columns are printed.

    Any idea?

    I found the problem.

    I used groupedColumns for hard-coded columns statement and I used new AdvanceDatagridColumn("columns") for the added dynamically. Fixed it using columns for both.

    Hope I could help somedy.

    Thank you

  • Dreamweaver cs 5.5 adding sound on mouse over

    I wonder if I'm missing something to 5.5, I remember being able to add a sound on mousover through the behaviors panel, but I can't find this option more.  When I click on the sign more, I don't see the option of adding it.

    This link should tell you about this "officially".

    http://help.Adobe.com/en_US/Dreamweaver/CS/using/WSc78c5058ca073340dcda9110b1f693f21-7ffba .html? PID = 2159997 #WS753df6af718a350a6d6db2681338b2942bc-7fea

  • My line in order to work for onboard audio or added sound card, how can I fix?

    Win XP SP3. No sound can be heard, or saved from, line input on the its Audigy SE card or on board Sound Max.  I'm 100% sure the cable (several have been tried) a sound source (several were found to be) works correctly and plugged into the correct line in jack. Audio out works very well. Drivers for sound cards are up to date. The properties of entry and exit in volume (start/Accessories/Entertainment/volume control) are correct as well (not selected line, no button mute on, sliders to 100%.). I suspect that the problem is to do with XP;  a bad configuration or something missing. Help, please.

    Hello

    ·         You receive an error message or error code?

    ·         Did you do changes on the computer before the show?

    You can read the following article and check if works.

    No sound in Windows

    http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows

    Let us know the results.

  • Adding sound to the video capture

    When I capture video on my Optiplex 780 I have to use an external microphone to get the sound on my speakers. The sound quality ends up ugly. Is there a way to capture the sound the computer internally?

    None

  • Adding sounds to the Apps

    My apologies if this has been covered in another thread, but I'm new

    I'm developing an application using the BB JDE 4.7, y at - it a simple way to add a sound to a project?, I want to add a simple button click sound. I would prefer to build as part of the application, in the same way, you can add pictures, is there built-in sounds I can use, like the click of press button already on Blackberry (storm)?

    Or should I import a small wav/mp3 file?

    Any advice would be great, thanks.

    You must include an audio file in your project. See the documentation for the API of the player interface.

    See also this thread:

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=13921&query.ID=18...

    be advised, however, there is a bug out in the wild on 4.7.0.75 where audio is not audible on the speaker of the storm. This has apparently been fixed in a later version, but the broken 4.7.0.75 was pushed on existing phones by Verizon. No push update has been started (that I know).

  • Film of recent travel photographs. I added sound and try to burn it to a DVD-R disc to show on our TV.

    I want to play the DVD ended up on our TV screen.  Thanks for the help!

    I made a film of a recent trip with photos and music attached to each photo.  I have made several attempts to burn to a DVD disc, but not transfer either sound or film transfer completely but the rehearsals and not end.  Is my problem with the disc that I use?  Am I missing a step?  Burn this movie on the disc is my problem.  It plays on my pc without any problem. Thank you. Nancy

    A few points...

    (1) FWIW... If creating a DVD-video is the goal of this project...
    You can create in creation of DVD and not to use Movie Maker.

    (2) If you prefer to stay with Movie Maker... try saving the project
    in the WMV format movie and then import the WMV file in
    Creation of DVD.

    How to save the project in Windows Live Movie Maker to WMV Format
    ( http://www.youtube.com/watch?v=ZyqZm5MBc7o3) If your audio files are in WMA format try to convert
    them before you import into Movie Maker and DVD Maker.

    There are many converters available on the net... the
    the following link is an example:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory (freeware)
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster)
    (the file you want to download is: > FFSetup295.zip<>
    (FWIW... installation..., you can uncheck
    ('all' boxes on the last screen)
    (Windows XP / Vista / 7)

    First... after the download and installation of Format
    Factory... you can open the program and
    left click on the toolbar, the "Option" button and
    "Select an output folder to" / apply / OK.
    (this is where you find your files after they)
    are converted)

    Drag and drop your music files on the main screen...

    Select "while"WMA"/ OK...

    Click on... Beginning... in the toolbar...

    That should do it...

  • How to record the sound of reverb to an audio cd and burn

    record sound from reverb to an audio cd and burn

    trying to burn a music cd and adding sound reverberation.

    Hi LuisBardales,

    There are some third-party programs that could help you record the reverb sound.

    You, your favorite to find out what search engine program would help you in the task.

    Important: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

  • Add sounds to timeline in Adobe animate CC is spoil output and program freezing

    I do everything adobe said to do - put my short on canvas .wav files so that they occupy their own keyframe in the layer "audio" I did on my calendar.

    But by adding sounds is the only thing I did different, and now the program freezes just when I try to publish or to test in the browser.

    Someone had this problem?

    Canvas FLAs may have problems with the WAV. Make your MP3 sound. Also, make sure that it is 16-bit, 44.1 KHz.

  • How to get the value of a field of flex?

    Hello

    I have a page of the OFA, where flexfield is on the 2nd tab of the page.
    When the page loads, 1 tab loaded. At this point, I want to enter the value in the flex of the 2nd tab type?

    I added this element Flex type using customization on the 2nd tab...

    How to get the value in the field?

    Values Flexfield
    How to get the value Flexfield OAF page Runtime
    Re: Get flexfield value during execution
    Requirement DescritiveFlexField

    Thank you
    -Anil

  • Error importing sounds

    Problem:

    Just Adobe Flash CS4 a few days ago and I'm having a blast learning all this. I followed the training tutorials Total and today, I'm on chapter about adding sounds and videos. When I tried to add a music file (.wma, bitrate of 128 Kbps), I get an error saying "one or more files were not imported because he had problems reading of their. It does nothing about the error or problem.

    Possible solution:

    After searching everywhere in these forums and by doing Google searches, I've learned that the problem comes when the bit rate of the file is too large. I also read that Adobe Flash CS4 depends on Apple Quicktime, importing files with large flow rates. I followed some of the advice I found on the web (reinstall the latest version of Quicktime) and I even reinstalled Adobe Flash CS4. But I still have the problem.

    Can someone help me? Should I try to contact Adobe for assistance?

    Thanks in advance.

    Yes, I mean what in the world is a wma?

    The other important thing to keep in mind is that Flash like sampling frequencies that are multiples of 11 025 Hz - 11 025 or 22 050 or 44 100. The latter is what the CD are sampled at.

    Then to flow generally useless something high, unless you are certain that you have an audience real audiophile with great speakers and everything. If most of your people will simply be listening through regular ordinary computer or same helmet speakers then something more low will be sufficient and save a lot of time to load.

    I had a lot of luck with 22 050 to 64 Kbps. And the things that I did does not need stereo. Don't forget that stereo not basically double the amount of data. So if you don't need it, don't use it.

    Also don't forget to go in your publishing settings and adjust the rate of output for the published swf file. Or alternatively enter your audio file in the library and the value that it is an exception to the publication settings. If not, it won't matter!

  • Sound quality

    Hello!
    I was wondering if someone could help. I know there are a lot of topics on the sound, but I can't seem to find the solution. I added sounds to my film using a microphone. When I play it back in preview mode quality is absolutely perfect. However, once I published it the sound quality is considerably reduced. It sounds very grainy and unclear. I am using captivate 1. Would this improve if I were to record the sound in the studio of professional recording and then import it or he would not make a difference?

    Any advice is welcome! Thanks, Rachel

    Hi Rachel

    You can click movie > preferences... > Preferences tab and try to adjust the Audio quality to setting the lower of "average quality (quality of AM radio).»

    I know it sounds weird, but him give a try. If I remember correctly, it's a quirk of Captivate 1. The highest quality and lowest quality settings for the audio have been reversed.

    Just give it a go and see if it helps. I hope it will be.

    Cheers and happy Friday! Rick

  • Select Flex on the on-screen keyboard to type in two input fields

    Hi all, I have a sound internal flex that allows the user to log in using a user name and password, which would finally bring the user to a State of relative in the flex application. Because this application is a touchscreen application, I placed a on screen keyboard within the internal pop upward. However, currently, the keyboard is only capable of development and the type of a given field. I need the keyboard in order to concentrate on the field the user name and password so that the user can type in these two areas. Can anyone help? Attached below is the code and a few screenshots of the app.

    Below the link to the screen is turned I took:

    http://S192.Photobucket.com/albums/Z63/nellehs/?action=view & Current = keyboardandinputfield. jpg

    I agree that aesthetically it would look weird, but I guess that it works if you have tried?

    Somehow, you need a button to call the focus selector. If not, how could it happen?

    Wait a second...

    I have it!

    What if...

    in init().
    passwordField.addEventListener (FocusEvent.FOCUS_IN, pwFocus);

    then
    private void pwFocus(event:FocusEvent):void {}
    loginKeyPad.newFocus (passwordField);
    }

    This will not work if the user can use the touch screen to click in the passwordField text box. A user can click in the box via the touch screen?

  • How to stop or interrupt the voice added to a MovieClip?

    Hi all

    I have a MovieClip (Animation) in my Flash. I added command buttons such as Play, Pause, and Stop for the user to control the animation. Everything works fine on the animation and control button.

    In this MovieClip "Animation", I added sound that plays during the animation. It is above all the voices of the characters in the animation. The problem is that when I use the stop or Pause keys the animation stops or breaks but continues to go to the voice.

    Can someone tell me how I can solve this problem?

    Thank you very much for your help and have a great day.

    Khoramdin

    clbeech wrote:
    > you have the sound on the timeline? Then use the stopAllSounds() call, when
    > the animation is restarted, the sound will resume playing this position.

    but this is a global setting for all sounds and it won't allocate to restart its longer
    as the film do not fully recharge.

    > However, if you have an opportunity one its object, then call the object to stop
    > it: my_sound.stop (); But if the sound is "match" to the animation in some
    > way, you need to determine 'where' to start the sound during the recovery.

    Or just put the sound stream, its flow is timeline based, as soon as the timeline
    Stop, the sound stops and by operating, sounds continue to play last place, you
    I'm done playing.

    --
    Best regards

    Urami

    --
    "Never play leapfrog with a Unicorn."


    If you want to send me a message - DO NOT LAUGH at MY ADDRESS

  • IPad transfer questions from family members share

    We will offer you iPad from MOM to Dad.  It is a model cell phone and Wi - Fi.

    It is the first account of the family action under his plan identifier Apple.  She is a member of the plan with his own unique iCloud account and Apple ID.  She has unique contacts and messages, and the messages that she wants to see private from his iPhone.

    I removed his mail and settings of FaceTime and iCloud and added sound.  Under the iCloud Control Panel (this is iOS 9.3.2) is its name and its identifier.  There are also "Family" with his name and ID.

    This is equivalent to locomotives under the parameter "Mail, contacts, calendars".

    However, the iPad still receive texts and messages sent to it, not to him.  And she claims that their contacts have merged.

    I suspect the texts (which are not distinguishable messages from Apple devices, are they?) are simply of people texting the number associated with the SIM card in the iPad.  I think that contacts probably not a really merge.

    is there any advice as the best transition a device of a member of the family to another in the same family plan without sharing data from the previous owner?  If I delete his account iCloud and mail, contacts and calendar settings on this device panels, am I remove his family plan in total Apple ID?  Or only on the iPad and it remains in the plan on his lapto and his iPhone?

    thx for the advice

    The best way to prepare the device is log ID of MOM to iCloud and then erase the device, Dad then begins with a white iPad. You need to either get him his own sim card or that everyone knows change.

Maybe you are looking for

  • How we reset password for backup

    Please can someone help solve the backup password... But

  • Problem with the BIOS of the laptop Portege M100

    HelloI have a problem to start my laptop. I lose my supervisor password and now I can't start my laptop. Can you help me please. ! I try to reset the bios, but I ´can can't find the cmos jumper to reset the bios.

  • THE MICROSOFT MODULE FAILS TO RUN

    I am installing a Microsoft extension & I get a message from the browser I.E. 9 States, on what it doesn't have to run after I click install the add-on using my mouse cursor.  The add-on called "Catalog Update Microsoft".  What I'm trying to do is to

  • My Favorites/bookmark how to retrieve

    bookmarks/favorites lost

  • VPN SSL from the inside on the external interface

    Hi all First of all I know that I can activate the SSL interface inside, but that's not what I need or want. Scenario: Several interfaces and VLAN on the SAA (running 8.0.5). SSL VPN configured and enabled on the external interface. Need to know if i