Can I Dynamically Link and Play Sounds?

I am building a morse code training program for my Ham Radio
Club. I am wondering how to script the code that would allow the
user to type (via a virtual keyboard on the program interface) a
sentence, linking each dynamically selected letter to a sound file
(MP3), and then play the setence in morse code when the play button
is selected? Displaying the typed text in a dynamic window is the
easy part, but linking each selected letter to a sound file, and
playing them in sequence is where I am stuck.
I cannot find any help for this type of script via manuals
and help files. Thank you in advance for your help.
Sincerely,
David, WD8PUO

if you are going to encode punctuation, in addtion to
alpha-numeric characters you should probably invest the time to
create an associative array. i'll explain that if that's the route
you take.
in any case, you'll want to import into your library as the
character sound files that you'll need. you'll want to give each a
linkage id and you'll want to pick this wisely to ease your work
later.
you'll want to use the onChanged property of your input
textfield to store all the linkage ids (this where the associative
array would be used and/or your clever choices used in assigning
linkage ids) in an array.
you'll create a sound object from the flash sound class. when
the submit button is pressed you'll initialize the index of your
array that contains your linkage ids, you'll attach the
corresponding sound and apply the start() method of your sound
object.
you'll create an onSoundComplete method for your sound object
(and you'll probably want small delay in executing this next step
so there's some silence between characters) where you'll increment
your index and attach the corresponding sound and start it.
you are done.
don't forget to include a sound that corresponds to a blank
space. ie, silence for some amount time to indicate a new
word.

Similar Messages

  • Uploaded my pictures from my iPhone to my MacBook- Some of the videos I made show that they imported and play sound, but no picture- are they gone?

    I Uploaded my pictures from my iPhone to my MacBook… Some of the videos I made show that they imported and play sound, but no picture… are they gone?Becuase they offer to delete what was imported, so to save space i did... Is there anything I can do to restore the picture?

    Do your videos play in QuickTime Playerwhen you reveal one of them in the Finder with "File > Reveal > Original"? Try to open the revealed movie in QuickTime and see if it plays.
    Check the format of the movie. You can see it in the Inspector in QuickTime Player from the "WIndow" menu: Window > Show Inspector.
    iPhoto does not support all movie formats and codecs that QuickTime player can play, and not all frame rates.
    See: Using AVCHD video with iPhoto '11
    If the movie does not play in QuickTime Player either, install QuickTime 7 for more codecs.

  • Can't watch video and play games that require flash player

    I'm using windows7 family premium version
    internet explorer 10 last version 10.0.5
    exploitation system 64 bytes
    flash player verson 11..700.202 the latest one
    So as i say can't watch video and play games that require flash player, they keep asking me to install flashplayer... i did everything i read in the forums, unistall it, clean the memory, reinstall it, disabe active x etc... but still have the problem.
    More specific about my problem is that: let's say that i'm trying to look at you tutorial video under thi forum  Re: How do I fix Windows permission problems with Flash Player? i'm just seeing a black screen.  So I'm able to guess where is the play button so when i push on that place, i can hear the sound of that video.  Second step guessing where is the  enlarge  button, and when the screen is enlarged, magic i can see and hear the video.... So you figure that it's impossible to use my computer like that and guess right all the time, so....
    Second fact, it seems that bug happened after an update (windows or explorer) and i even talk with a microsott tech who was not able to resolve it... But if i'm  undoning  the update and go back to a prior image, i have no problems with flash player anymore... it' been moths that i'm delaying my updates cause i cannot find any solutions.... So Please please please, help me .... don't know what's the problem is and i'm not a pro, don't know what to do.  (Excuse my english it's my second language)
    Thank you

    The first thing I'd try is updating your video driver.
    Windows: how do I update the device driver for my video/display adapter?
    If you still have problems and since you're using Windows 7 x64, please check to see if you have the following Windows update installed:
    KB2670838 – Platform Update for Windows 7 x64
    If so, please uninstall it and try Flash Player out again.

  • Record and play sound in SWF

    Hi List,
    I have developed standalone applications wherby i want the
    give the
    user an option of recording voice and then replaying the
    recorded
    sound. No need to save a file. Just record and listen.
    Is it possible to record and play sound in Flash swf-files
    without the Flash Communication Server?
    If not is there any third party component which can help me
    solve this purpose?

    No, don't think this is possible without Flash Media
    (formerly Communication) Server.
    Search these forums though. The question is asked pretty
    often, so maybe someone has offered a different answer.
    Cheers!

  • After yesterday's "upgrade", iTunes can no longer find and play my music library.  It points to the correct location in "Advanced", but clearly iTunes is not actually seeing it.

    After yesterday's "update", iTunes can no longer find and play my music library.  It points to the correct location in "Advanced", but clearly iTunes is not actually seeing it.  What gives?  And why does Apple force these constant updates that just screw up everything?  It was all working fine yesterday before I ran the update.

    Does anyone know where I can get support for this issue?

  • Lost Mode and Play Sound are "Pending."  However, iCloud indicates that it connected and backed up to iCloud at a date that is 1 week after it went missing.  How is this possible without locking (Lost Mode Pending an internet connection)

    Hi,
    My wife lost her iPhone two weeks ago while on vacation in London (cell service inoperative in foreign country).  Using Find My iPhone app on my device, I activated Lost Mode and Play Sound.  However, both are listed as "Pending," since it those actions require the phone to connect to the internet (wifi only due to no cellular data coverage.).
    We recently returned home and purchased a new iPhone.
    However, when looking to restore the apps/settings from her old phone using a previous iCloud backup, iCloud indicates that the old phone connected to iCloud and backed up the original phone at a date that is 1 week after it went missing.  How is this possible without locking (Lost Mode Pending an internet connection)?
    If the phone was activated and connected to the internet via a wifi signal, shouldn't it immedately lock, show up on the map, Play Sound, and send me an email that the phone has been found?
    I also read somewhere that if running iOS 7, the iCloud website interface enables you to track previous locations, for instance if the phone moves from wifi hotspot to hotspot.  Is that true?  If so, how do I do that?
    Thank you for your time, and have a great day!
    Sincerely,
    - Matt

    just giving this a wee bump as time is of the essence here and i need advice/ answers quick!
    apologies if i've broke any rules!
    alex

  • HT4108 I have a apple component AV TV out cable (red, green,blue + red,white) and have had this connected to TV for about 6 months working fine.  I moved the TV disconnected cables to move now I can only get video and no sound back on TV.  Any suggestions

    I have a apple component AV TV out cable (red, green,blue + red,white) and have had this connected to TV for about 6 months working fine.  I moved the TV disconnected cables to move now I can only get video and no sound back on TV.  Any suggestions ?

    No answer but marking as answered because I want to clear my unresolved questions.

  • Hello I have problome with YouTube on my apple tv. When I add playlist on my Mac I can see the movies and play them but I can't see the movies on my appletv only the name of the playlist and I am can't watch the movies. Anyone know the problome? Please..

    Hello I have problome with YouTube on my apple tv. When I add playlist on my Mac I can see the movies and play them but I can't see the movies on my appletv only the name of the playlist and I am can't watch the movies. Anyone know the problome? Please..

    Geesh - all this information and no  one has any clue to this? Not even someone from Apple?
    Can someone at least point me in the right direction?

  • How to import and play sound file from mxl link?

    I need to load different sound files dependent on which link you previously clicked in my app, but cannot figure out how to call the link to the sound file from my mxl file:
    <carRace>http://www.unisux.org/zik-car/lamborghini-diablo-gtr_standing-start.mp3</carRace>
    Can someone tell me what I am doing wrong in this code?
    <fx:Script>
       <![CDATA[
                                            private var req:URLRequest;
                                            private var context:SoundLoaderContext = new SoundLoaderContext(1000);
                                            private var bCall:Sound;
                                            private var bSong:Sound;
      private function playSong():void
                                                      var urlSong:String = "{carRace}";
                                                      var request:URLRequest = new URLRequest(urlSong);
                                                      bSong = new Sound(request, context);
                                                      bSong.play();
      ]]>
    </fx:Script>
    because this code does work:
    <fx:Script>
       <![CDATA[
      private var req:URLRequest;
      private var context:SoundLoaderContext = new SoundLoaderContext(1000);
      private var bCall:Sound;
      private var bSong:Sound;
      private function playSong():void
      var urlSong:String = "http://www.unisux.org/zik-car/lamborghini-diablo-gtr_standing-start.mp3";
                                                      var request:URLRequest = new URLRequest(urlSong);
                                                      bSong = new Sound(request, context);
                                                      bSong.play();
      ]]>
    </fx:Script>

    Visit: http://www.tools.de/solaris/
    you will love sound/audio programming.... source available.

  • Dynamic Link and DSLR presets not available in CS5???

    Hi, I''m downloaded Premiere CS5, but when I try to open Dynamic Link, a screen pops up and tells me that I need Production Premium in order to access Dynamic Link????
    Also how come DSLR presets when I create new projects is no longer available? They were there during the beta version, but now I can't find them??
    Thanks in advance for all your help!

    Are you running the trial version?
    Maybe that;s the reason?

  • Recording and playing sound

    I am having a problem with sound in my program, it takes information from a TargetDataLine, put's it in a temporary file, then takes it back out of the temporary file and plays it using a SourceDataLine. currently, it does not play back the sound source code will follow in my next two posts.
    andrewjj20

    the play method:
    class Player implements Runnable {
    public Player() {
    public void run() {
    try {
    int bufferSize = (int)(format.getFrameSize()*rate*1);
    byte[] bytes = new byte[(int)bufferSize/12];
    lineOut.open(format,bufferSize);
    stopS = false;
    recording = false;
    playing = true;
    if (debug) {
    print("playing");
    status.setText("Playing");
    lineOut.start();
    while (!stopS) {
    if (in.available() != 0) {
         if(lineOut.available() != 0) {
         in.read(bytes);
         lineOut.write(bytes, 0, bytes.length);
    } else {
    stopS = true;
         resetGUI();
    lineOut.drain();
    lineOut.stop();
    lineOut.close();
    lineOut = null;
    stopS = false;
    recording = false;
    playing = false;
    status.setText("Done");
    if (debug) {
    print("Done");
    } catch (LineUnavailableException ex) {
    error("I can't acces the nessesary audio functions now");
    } catch (IOException ex) {
    error("Error communicating with the file.\nABORT!!! ABORT!!! ABORT!!!");
    }

  • Recording and playing sound input from mic simultaneously in iphone/ipad

    I want to simultaneously record and play the sound from a mic in iphone. As thecricket commentory application.
    Please provide me a solution for this.
    Is this possible in iOs.

    This probably isn't going to sound very helpful, for which I apologise in advance, but I'm afraid it's the truth...
    The only way you stand any way of doing any of this is by using ASIO4ALL, which can aggregate different drivers from multiple devices. But I don't rate your chances too highly, I'm afraid - USB mics have long been the problem child of computer-based audio. On top of that, you are trying to get sounds in and out of a separate device at the same time - not only that, but it's a Creative Labs gamer's device and they are second only to USB mics in terms of the 'difficult' stakes - search this forum!
    A much, much better way to attempt to do this would be to use a sensible ASIO external device with sufficient inputs, and a mic that plugs into it, not a USB one. That way you could route the inputs and outputs appropriately, and use the device's monitoring so that you could monitor what you need to. I wouldn't attempt to do anything like this any other way, I'm afraid. Another approach (which can be made to work well) is to use an external mixer to do most of the work - often it's easier to set up the monitoring on these. You can get mixers with the appropriate interface built-in, and they don't cost a fortune either. Mackie and Behringer make suitable devices.

  • Can client dynamically link to shared libraries for different versions ?

    Can Oracle client dynamically link to Oracle shared libraries if the versions are different ?
    Hi:
    I apologize for this newbie question:
    We are using PRO C to generate the client C code.
    We can compile both dynamic and static versions of our Oracle client.
    Our question is:
    is it possible to compile a dynamically linked Oracle client in say version 10.1.0.2 and actually run the application against say version 8.1.7.0 environment ?
    That is, can an Oracle client dynamically link to the Oracle shared libraries if the versions are different ?
    If it is possible, then how to modify the makefile
    to enable Oracle client to reference different versions
    of shared libraries ?
    Thanks
    JL

    What you describe is not supported.

  • Problems with Dynamic Link and Render Farm

    We have a 10-node render farm that we use for all of our AE renders, and it works great, so we know the farm isn't the issue. But if we place a Premiere sequence into an AE file and attempt to send the After Effects file to the render farm, we get this error from every node:
    "aerender Error: After Effects error: Failed to connect to Adobe Premiere Pro Dynamic Link."
    Does anyone know of a possible workaround for getting an AE file using Dynamic Link to render to a farm? This is a very important workflow for us, and right now we're having to do local renders for any AE file that uses Dynamic Link.

    Why not ask such questions in the AE forum? Aside from that, using AE and PPRo DL at the same time can easily exhaust all your system resources and may cause any kind of issues, as effectively only one connection is meant to exist at any given time. So it's definitely in the way you use it, but not necessarily "wrong", just an unfortunate combination that makes things unworkable.
    Mylenium

  • Encore dynamic link and multi core processor

    hello, when I make an DVD menu in Encore cs3, with motions and transitions in After Effects, i import this AE compositions using dynamic link, everything works perfect, but when I build the DVD, the processor use is beetween 50/60% when it´s rendering the motion menus or trascoding, I think that this is because Encore can´t use multicores (Athlon 5600+ X2 in this machine), since when i render in AE directly, or trascode from premiere using Adobe media encoder, the processor is used 100%, how is the correct way to "jump" this problem?
    I must Render all the menues directly in after effects to m2v?(how can i do it and maintain the direct link for further changes?
    I dont know if helps, but my PC configuration is the following:
    AMD Atlhon X2 5600+ Dual core
    4GB DDR2 800mhz RAM
    750GB SATA2 HDD (500+250)
    512MB ATI RADEON HD2900PRO
    Windows XP PRO x64 SP2.

    Windows XP Pro x64 is an unsupported operating system for Encore.
    That may be part of or all of the problem.

Maybe you are looking for