Button Pointing to audio file in same directory

I'm fairly new to Flash, but have gotten the hang of it for
the most part.
I'm trying to create audio buttons that will play vocabulary
words when clicked on for a language learning website. I can create
buttons that play audio when clicked, but as of now the only way I
know how to do it is to add the audio directly to the swf file. The
problem is this takes up about 24kb of space, and there will be
about 20 copies of the button per page, each for a different
vocabulary word.
I was thinking it would be nice if I could use the exact same
swf file to save on loading time, but have it point towards
different audio files. Basically, I figure if the audio is built
into the swf file, when the page loads it will take a long time,
because it will load all of the audio along with the files. if it
points separately, it will only load the audio when the button is
clicked.
Is it possible to do this? I've heard that you can use the
object tag to point towards separate audio files, but am not too
sure on how to pull that off. I'm just looking for a way to use the
button I've created and keep speeds reasonable when loading the
webpage. Loading 30 audio files at the beginning can slow it down,
especially if they only plan on playing a couple of them. Each mp3
is only a few kb larger than a swf file with the audio already in
it, so the compression of mp3 in a swf (at least from what I know)
didn't do too much for my case.
I figure I can put all the audio files in a folder along with
the swf file.

Superman859 wrote:
> I'm fairly new to Flash, but have gotten the hang of it
for the most part.
>
> I'm trying to create audio buttons that will play
vocabulary words when
> clicked on for a language learning website. I can create
buttons that play
> audio when clicked, but as of now the only way I know
how to do it is to add
> the audio directly to the swf file. The problem is this
takes up about 24kb of
> space, and there will be about 20 copies of the button
per page, each for a
> different vocabulary word.
http://www.kennybellew.com/tutorial/
Very detail tutorials on Sound in flash, from basic stop/play
to complex,
dynamic players with all kind of bells and whistles
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>

Similar Messages

  • Copying files from same directory as *.java files and moving to WEB-INF/classes/ package name

    In our current application we have the following source directory structure:
              src -
              - com
              - edeploy
              - subdirs ... (many directories here)
              - jsp
              -subdirs ... (many directories here)
              In com.edeploy.subdirs, there exists *.java files, and *.gxq files (query
              files). I would like to modify my build.cmd script to copy the *.gxq files
              into the same directory as the class files.
              Here's my script so far:
              @REM Create list of files to compile
              DIR /S /B /A:-D src\com\*.java >class.list
              @REM Create list of query files
              DIR /S /B /A:-D src\com\*.gxq >query.list
              @REM Compile
              javac -d stage\WEB-INF\classes @class.list
              @REM Copy query files into class directory
              .......... code needed here ......
              Can anyone help me with this?
              Thanks,
              Matt
              

    You may want to check out:
              http://jakarta.apache.org/ant/index.html
              Gary
              "Matt Raible" <[email protected]> wrote in message
              news:[email protected]..
              > In our current application we have the following source directory
              structure:
              >
              > src -
              > - com
              > - edeploy
              > - subdirs ... (many directories here)
              > - jsp
              > -subdirs ... (many directories here)
              >
              >
              > In com.edeploy.subdirs, there exists *.java files, and *.gxq files (query
              > files). I would like to modify my build.cmd script to copy the *.gxq
              files
              > into the same directory as the class files.
              >
              > Here's my script so far:
              >
              > @REM Create list of files to compile
              > DIR /S /B /A:-D src\com\*.java >class.list
              >
              > @REM Create list of query files
              > DIR /S /B /A:-D src\com\*.gxq >query.list
              >
              > @REM Compile
              > javac -d stage\WEB-INF\classes @class.list
              >
              > @REM Copy query files into class directory
              > .......... code needed here ......
              >
              > Can anyone help me with this?
              >
              > Thanks,
              >
              > Matt
              >
              >
              

  • Changing a length of more than one audio file in same time

    Hi! I'm searching a way to change a length of the several audio files at the same time (this applies to ads that will be broadcast at the radio. The sounds need to have same time accurate to milliseconds). Let's say I've got 20 audio ads, which were originally meant to have 30 seconds, but each of audio file has small differences reaching less than a second. I would like to do a one-off activity, that will change length of each file to equal 30.000 seconds. In a word, is there a way to stretch several audio files, which have different time, to the same length at a same time ?

    Thank you for your reply, problem solved with the help of Adobe CC, but it turned out that one of open-source applications also can do it.

  • Generate file in same directory as current running process

    Hi all:
    I basically have a batch file in a particular directory that runs a Java program. Within the program, I am doing this:
    //generate contact server file
    String contactServer = "Testing...";
    BufferedWriter bw = new BufferedWriter(new FileWriter("contactServer.txt"));
    bw.write(contactServer, 0, contactServer.length());
    bw.close();Now, what I would expect is that it would be generated in the same directory as the process that is running. However, when I do a search, it ends up in C:\Documents and Settings\Leonard\My Recent Documents.
    How can I specify to generate it in the same directory as the current running process?

    Now, what I would expect is that it would begenerated in the same directory as the process that is
    running. However, when I do a search, it ends up inC:\Documents and Settings\Leonard\My Recent
    Documents.let say your batch file is in
    C:\Documents and Settings\Leonard\
    and you run from
    C:\Documents and Settings\Leonard\
    and your application is in
    C:\Documents and Settings\Leonard\My Recent Documents.
    so..when you run the bat file, is output file created
    in
    C:\Documents and Settings\Leonard\
    or
    C:\Documents and Settings\Leonard\My Recent Documents.
    it should be created in C:\Documents and
    Settings\Leonard\
    unless you create a shortcut to the batch file (which
    is located in "C:\Documents and Settings\Leonard\My
    Recent Documents." and move the shortcaut batch file
    to "C:\Documents and Settings\Leonard\"...than the
    output file will be created in C:\Documents and
    Settings\Leonard\My Recent Documents.
    make sure the batch file is not a shortcut to the
    original batch file. the file will be created
    wherever the batch (original) file is reside in"
    Jesus man, thank you so much. Just like you suggested, when I actually used the batch file itself instead of the shortcut, everything worked out fine.
    So, any suggestions on how to get it to generate in the same directory as the target of the shortcut, not the shortcut itself?

  • Linking to a file in same directory?

    I am working with someone else to design a site, he is coding some pages and including a form. I want to link to this form on a page and I was told that it will be in the same directory as the rest of the site. I was told to use the following path:
    /teachers_staff/staffquestions
    How do I add this path to a link?
    Thanks.

    Hi Stan,
    in addition to osgood_'s hint, I would like to show you the steps in (Germam) DW:
    I named this page "form.html" and put it in a directory called "/teachers_staff/staffquestions". As osgood_ said, I did "Highlight the text on your page that you want to be the link" here "form.html" and used (Grmna DW) insert a Hyperlink, like this:
    Here I got DW's offer (among others in this directory) to pick "form.html":
    After that the link is active. In your source code you will find this:
    <p><a href="form.html">form.html </a></p>
    Hans-G.

  • Open a file in same directory as app

    I am trying to open a separate app that is in the same folder as the form app i'm using. Is there a way to do it so i can move the folder with the files in it from computer to computer and still have it work. I'm trying to open it with a jbutton
    Thanks
    Edited by: aschreiner22 on Apr 21, 2008 3:33 PM

    aschreiner22 wrote:
    either another app, Look up the Process and Runtime class of the Java api. Usually if you want to execute another application like an .exe you would do this:
    Process p = Runtime.getRuntime().exec("anotherApp.exe");
    or a class embedded in an html.A class embedded in an html file? usually an Applet class. You can open the applet class like how you open other Java classes.
    SampleAppletClass sample = SampleAppletClass();A word of advice, try Google and search your questions in this forum before asking. Chances are that other people have already ask them. Lot of users of this forum do not like to answer questions that have been asked before. You may receive unpleasant replies if you're not careful.
    have a nice day!

  • QuickTime: can't move to a specific point when playing .WMA audio files

    I use a lot of .WMA audio files recorded on my Olympus Digital Voice recorder. Since the latest update of QuickTime I cannot move to a specific point in a file. When I click and drag on the diamond cursor it won't move. The only way to move through the file is to play it or 'fast' forward it - which takes ages.

    I have the same problem. when playing wma or wmv file, simply just cannot drag the progress bar to a specific position. Just have to progress from the very beginning to the end. Once it has been played to the end, I can move the progress bar. Very weird
    I have both flip4Mac and perian installed with the latest version.
    Could anybody please help.
    cheers

  • Force pointer to a different audio file

    I often use the function to open a file in an external sample editor (usually izotope) while a Logic song is open. But the following applies even when not using this particular command. That particular command is handy in the sense that Logic keeps refreshing the updated file as it's being edited, but what I really want to do is create a new file so the original stays intact as a backup.
    I'd like to have a command to force Logic to point to this renamed, edited sound file instead of the original--without having to close and reopen the song.
    This would operate much in the same way as when one is prompted by Logic when it is unable to find a sound file upon opening a song. You get the can't-find-a-file dialogue with option to either search, or to manually point to the file. I just want to be able to force this on command while the song is open, as an audio bin command (not just when opening a song and Logic is unable to find a file)
    Currently, the way I deal with it is
    -close the Logic song
    -rename the original audio file temporarily, e.g., put a ~ in front of the file name.
    -use the "find manually" option when Logic says to find the file it can no longer find
    -point Logic to the edited and renamed version.
    -then once again, rename the original file back to its original name.
    Anyone have a simpler method?

    Thanks Frank!
    Got it. It worked.

  • Does a wrapper html file need to be in the same directory? Need advice

    I'm doing some RnD experiments for an upcoming project and I would like to use Edge.
    What I'm trying to do is load 2 different compsites in a wrapper.html file that is level above the compsites. For instance my setup is
    project/wrapper.html
    project/product1/product1.html
    project/product2/product2.html
    In my wrapper file I have this, but this doesn't work
    <!DOCTYPE html>
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
        <title>Untitled</title>
    <!--Adobe Edge Runtime-->
        <script type="text/javascript" charset="utf-8" src="product1/product1_edgePreload.js"></script>
        <style>
            .edgeLoad-EDGE-68005601 { visibility:hidden; }
        </style>
    <!--Adobe Edge Runtime End-->
    </head>
    <body style="margin:0;padding:0;">
        <div id="Stage" class="EDGE-68005601">
        </div>
    </body>
    </html>
    But when I move the wrapper.html file into the same directory as product1 and modify .js path and it loads fine? So my question is how do people normally load multiple compsites that resided in a different directory? What is the best method for accomplishing this? If anyone can point me in the right direction please. Thanks in advance.

    You will need to update the new loction for even the product1_edge.js file and the product1_edgeActions.js file in the product1_edgePreload.js file.
    Open up the product1.edgePreload.js file.
    Search for 'aloader'.
    Under this there should be a ' load: "product1_edge.js" '  change it to  ' load: "product1/product1_edge.js" '
    and do the same for product1_edgeActions.js file too.
    Bascially when you update the location of the edge preload file you will have to update the location of the animate assets like the edge file,edge actions,images etc.All these file locations work relative to the html file loading them.

  • How can I get one audio file to stop once another is triggered on the same page in EPUB?

    I have multiple audio files on one page and am able to trigger each separately with their own control panels. Unfortunately, these can all be played over one another. Is there a solution within InDesign to stop the first active audio file once another audio button is triggered on the same page?
    WIll this have to be done through Javascript?

    Use buttons. They can have have more than one action. Set a button to stop the first audio, and start the second.

  • Fixing duplicate database entries for the same audio file

    My iTunes Media folder is stored on a network accessible storage server. Since upgrading to 11.1.x, my computer seems to be duplicating database entries for the same audio files - for some albums, I have 4 entries for every song, each one pointing to the exact same file. The only difference between entries is rating info and play counts, which are specific to a particular entry (I think). Has anyone else seen this behavior? Is there an obvious way to stop this from happening? I can delete and rebuild the database from media files, but that starts getting old if I have to do it every week or so. Is there a script to delete duplicate database entries? (I found a VB script on the iTunes for Windows community, but the offending machine is a Mac).
    Thank you for any assistance!
    K

      Select the photo stack under the People tab and click the rename icon (bottom left)

  • Jar file is not working after deleting all packages from the same directory

    hello
    i have created a jar file named as server.jar in the same directory in which i have all the packages(for which i have created this jar file).This jar file was working correctly when i had all the packages in the same directory.But after deleting all the packages from the same working directory, this jar file is neither working nor giving any error message..
    Please tell me what may be the reason???
    thanks in advanced

    hello
    i have created a jar file named as server.jar in the same directory in which i have all the packages(for which i have created this jar file).This jar file was working correctly when i had all the packages in the same directory.But after deleting all the packages from the same working directory, this jar file is neither working nor giving any error message..
    Please tell me what may be the reason???
    thanks in advanced

  • Using The Same Audio Files On Multiple Platforms

    When I import new audio into logic - often it will say that is creating wave forms for the display.
    Q: I notice that the audio files on disk do not show an altered modified date - so where are these wave form displays being saved - on the audio file or inside the logic song?
    Q: I am interested in possibly going back and forth between logic and Pro tools LE - and at different times using the same audio files for both platforms. Assuming I am not doing any destructive editing - is it OK to use the same set of files for both platforms - or do I need to make duplicates (I'd rather not)? Also, how does this wave form display get dealt with by going back and forth between the two platforms?

    A: the waveform overlays are stored in separate,
    temporary files - *.ovm files or something, but my
    memory is fuzzy on that for now. The original audio
    files are not modified in any way.
    Hmmm... I've wondererd about this, too, and as best I can tell, Logic DOES modify the original files.
    I just imported some stereo interleaved AIF files into a project (with "copy external audio files to project folder" disabled), and I couldn't see any evidence of waveform creation--a disk search by date revealed nothing looking like waveform overviews, and there were no modifications to the AIF file dates.
    So... the next time I imported some AIF files, I checked the file sizes before the import...
    Sure enough, the files got bigger by about 100K after being imported into a Logic session, even though the file's timestamps were not changed.
    Looks like maybe Logic does write the waveforms into the files themselves ?
    On a related note, the manual suggests that it's possible to change the "copy external audio files to project folder" setting after creating a project, but I haven't found this anywhere other than File->New... anyone know ?
    Thanks!
    James
    [email protected]
    Dual 1.25 G4   Mac OS X (10.4.8)  

  • How do I play a video and audio file at the same time on Apple Tv?

    I need to play a video loop (with no audio) on my apple tv and also play some music in the background. Its a video loop with no audio and then I need music to play in the background. The loop needs to repeat all day because its only 5 min long and the audio is an entire play list that's several hours. This is for a lobby flat screen setup.

    QuickTimeKirk wrote:
    Very difficult request because the Apple TV can only play one file at a time. It doesn't have a "loop" feature.
    You could use QuickTime Player Pro to "join" the audio files into one file. The hard part would be adding the five minute video chunks via copy/paste as each would be added as a new "video" track. QuickTime .mov files can have up to 99 "tracks" and the .mov container is supported by Apple TV.
    So this new file would have a new video track (actually just a copy of the original) that played up to 98 times. A five minute source video would end up being a bit over 8 hours in duration.
    The 98 track video could be "flattened" into one video track via export. The same for the audio track movie.
    Other options:
    Set the Quicktime Loop flag in the movie inspector properties.
    Make a video playlist, adding the file to the playlist lots of times - make sure playlists are enabled in Settings for video not just music.

  • How do i drag media to the menu screens in premiere elements 13? I can't see my audio files and the menu screens at the same time. In prior versions it was easy

    How do i drag media to the menu screens in premiere elements 13? I can't see my audio files and the menu screens at the same time. In prior versions it was easy?
    It is very cumbersome to "re browse" for audio files/pics/movie clips to add to menu screens. Certainly there is a way to view the media and menu screen at the same time so I can drag and drop?

    Jayhawk
    I think I know exactly what you are seeking and believe it cannot be done in Premiere Elements 11, 12, and 13 as it can be done in versions earlier than 11 where the Disc Layout and Project Media are viewed side by side.
    Premiere Elements 13 uses a Movie Menu customization workspace which is not allowing viewing of Project Assets in the Expert workspace at the same time.
    ATR

Maybe you are looking for