How to play infinite sound

hi,
how to play an (invisble) flashmovie containing a soundloop
over several html-pages? (I use flash8 professional and I'm able to
use script )
thanks for any hints
kesel2

thanks Rafiq Elmansy,
i found a solution which works fine and wasn't such much work
to do, i thought before...
the first call goes to a frameset, where one frame is filled
with the startpage and the other frame (just 1row and color to
background #fff, so it's not visible - don't set the visibility to
hidden, then you get no sound too!).
into the second frame i put the .swf file (width and heigth
=1 px), with the looped sound, which now playes in all pages and
even in the pageloading times...
if nesseccary you could also add buttons to controll the
sound, but they are outside the main window (frame 1) of your site.
bye
rainer kesel
kesel2

Similar Messages

  • How to play analog sound with PC input

    Hello,
    I have connected a pc to the pc input (VGA sub D15) in my TV 46TL933. I am looking to connect the analog audio output from the pc into the TV. I already tried to connect the audio signal to the component input, but the tv doesn't listen that input when switched to pc input. How to play sound from pc on the 46TL933 TV ?
    Thank you in advance for everyone who helps me.
    Kind regards
    John

    That doesn't appear to be a US model, and this is the forums for Toshiba USA. You may want to contact Toshiba in your region.
    - Peter

  • How to play a sound saved in myRIO

    Hi,
     How could I call a file saved at usr/local/sbin in myRIO and send it to play? Thanks...
    Solved!
    Go to Solution.

    I did this way. I transformed the sound sample into an array (Sound Sample) and in another VI I read this sample (Ring Creator). It is working fine.
    Attachments:
    Ring_creator.vi ‏1129 KB
    Sound sample.vi ‏571 KB

  • How to play wikipedia sound files (Ogg) in Safari 6.0.3?

    I'm pretty sure the answer to this one is that it can't be done, but just in case I've missed something in my web searching. I used to be able to play them under OSX 10.6.8. For instance, these sound files: http://en.wikipedia.org/wiki/Beethoven_symphony_5

    Please link to a page you're having trouble with, if possible.

  • How to play a sound on drag and drop?

    I've been tasked with creating a drag and drop game for College, and I would like to make it so that when an object is picked up/clicked on, a small 'pop' sound will play, and when it is successfully placed on a target, a slightly different 'pop' sound will play.
    I'm using ActionScript 2.0 on Flash CS5.5.
    I've got the drag and drop done, I just need to add the sound counterpart. I've seen some tutorials, but they're way too vague for me.

    Thanks a lot for that! Managed to get it to work finally.
    Sorry for the late response, I've only just decided to get back to doing the work.

  • How to play downloaded sound files?

    I 'save as' sound files from a nature recordist's group - usually mp3s- but I cant play them.
    Help? I know this is the place.
    Thanks
    ibook G4, B&W G3, Pismo G3   Mac OS X (10.4)   0S 9.2, Peak Le

    As Duane says, iTunes should play MP3. If you have downloaded to, say, the desktop, iTunes will not automatically play it. But if you double click it, iTunes should automatically open and import the song as long as iTunes has been set as your default player. If that doesn't work, occasionally you need to drag & drop the file into an open iTunes window. If that doesn't work the file is corrupt or isn't MP3 even if the download says it is.
    Have fun!
    Adrian

  • How to Play Stereo sound with the MIDI API

    Hi!
    I wanna know how can I make and application like the FL Studio's Piano Roll using the java sound midi API.
    How can I convert this MIDI sequence to a stereo sound.
    Thank's a lot for your answers

    http://java.sun.com/j2se/1.5.0/docs/guide/sound/programmer_guide/contents.html
    http://java.sun.com/products/java-media/sound/index.jsp
    http://java.sun.com/products/java-media/sound/list.html
    lutha

  • How to play sound after clicking on an object?

    Can anyone explain me how to play a sound in java when I click on a particular object? I have read lots of threads but couldn't find anything. All I want is a short sound(3,4 seconds) to be played each time I click on an object. I know I need to use Sound API but I cannot find anything helpful
    Thanks in advance

    flounder wrote:
    ProGenius wrote:
    I have read lots of threads but couldn't find anything.
    [I found lots of info|http://lmgtfy.com/?q=java+audioclip]
    that is knowing you can use audioclip. Even searching for "java sound tutorial" gives many good resources, including the sun trail:
    http://java.sun.com/docs/books/tutorial/sound/index.html

  • How to play sound in midlet midp1.0

    how to play a sound (wav format) in midp1.0?
    help needed regarding nokia api.

    well i think ur specified location might be wrong.
    also check out some other ways:
    i hope this might help u.
    1.
    import javax.microedition.lcdui.*;
    import javax.microedition.media.*;
    import javax.microedition.media.control.*;
    import java.io.*;
    import java.util.*;
    public class mainsound {
    public Player player;
    public mainsound(String s){
    try{
    InputStream is = getClass().getResourceAsStream(s);
    player = Manager.createPlayer(is,"audio/AMR");
    player.addPlayerListener(new Listener());
    player.prefetch();
    catch(Exception e){System.out.println("Media Error" + e);}
    class Listener implements PlayerListener {
         public void playerUpdate(Player p, String event, Object eventData) {
              if (event == END_OF_MEDIA) {
              try {
              p.start();
              } catch (MediaException me) { }
    2.
    public void soundview()
    byte abyte0[]=a("024A3A45D0040029286185985504D04D06186987107107106185985504D0450710690610610000");
    Sound sound = new Sound(abyte0, 1);
    sound.init(abyte0, 1);
    sound.play(1);
    public static byte[] a(String s1)
    s1.toUpperCase();
    byte abyte0[] = new byte[s1.length() / 2];
    int i1 = 0;
    int j1 = 0;
    for(int l1 = s1.length() / 2; l1 > 0; l1--)
    int k1;
    if(s1.charAt(j1) >= '0' && s1.charAt(j1) <= '9')
    k1 = s1.charAt(j1) - 48;
    else
    k1 = (s1.charAt(j1) - 65) + 10;
    k1 *= 16;
    if(s1.charAt(j1 + 1) >= '0' && s1.charAt(j1 + 1) <= '9')
    k1 += s1.charAt(j1 + 1) - 48;
    else
    k1 += (s1.charAt(j1 + 1) - 65) + 10;
    abyte0[i1] = (byte)k1;
    j1 += 2;
    i1++;
    return abyte0;

  • Game pauses upon playing a sound

    I have a class in my flash project called "Resource" which I have designated to contain all the external files outside the flash documnent. When I play a sonud from this class, it seems that my program pauses until the sound is fully loaded, and then every time it plays after that it doesn't lag at all. Would there be a way to load the sound at a different time, i.e. at the beginning of the program, rather than on the fly? Here is the code for Resource.as and how I play the sound.
    Class "Resource" (I cut out unimportant stuff)
    [code]
    package  {
        public final class Resource
            [Embed (source="/Resources/Sound.mp3" )]
            public static const Sound:Class;
            public function Resource()
    [/code]
    And this is how I call the sound and play it:
    [code]
    private var soundCoin:Sound = new Sound();
    public function User() {
    soundCoin = new Resource.Sound;
    [/code]
    And, obviously, I play the sound using soundCoin.play();
    I might just not have the right setup, because I sort of improvised what I was doing. If this method is inefficient, I would love for people to give suggestions.
    Thanks

    How are you using this or even getting this to happen? My experience is that any Symbol that references a Sound where you don't check "Embed on Frame N" (where n is the default embedding frame in your Publish settings) will give the error "Not a valid sound."  Sorry, I don't have the specific error number, as I have that box checked whenever I need an embedded sound .
    The only way I can think that this could possibly happen is if your Symbol that references the Class is before the frame specified in your publish settings (or is the Main document Class). But my experience is that Classes that load before the N frame will embed everything they need on that frame regardless of settings.
    Can you provide more details on what you did? Honestly, I'd love to be able to do on purpose what you did by accident. Having sounds that don't play immediately would be a small price to pay to have more flexibility about where the definition is embedded for the project I'm working on.
    In case it wasn't clear from the above, I thought I'd restate: what you are seeing shouldn't be happening. The file should be compiled on whatever frame is the default compile frame in your swf, and should play immediately when you call play. That it doesn't says that somehow you've stumbled into an edge case.
    FWIW, I find that using the Embed metadata as you have with Flash Pro is extremely unreliable--often part of the sound will not get compiled into the swf, so the sound will cut off early. You will probably find yourself switching to making a swc from embedded library sounds in the end because of this problem (which is what I'm doing).
    Update:
    I just recreated the error you should be seeing with that box unchecked:
    ArgumentError: Error #2068: Invalid sound.
    at flash.media::Sound/play()
    You can do a web search for more information on this issue.

  • Playing a sound on load

    Can anyone tell me how to play a sound only once when load.
    At the present it is an exe. file, so It is asking me to download
    the file.... I just want it to play on load and I dont want to hear
    it again if refreshed it. Thank you.

    Macs don't know what to do with them....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Nancy O" <[email protected]> wrote in
    message
    news:fbhl2l$2om$[email protected]..
    >I concur with Mister Mustard and would add that using an
    .exe file on your
    > page for something like this is very bad practice.
    Executable files can
    > contain malware or viruses that could threaten visitors
    computers. If I
    > saw
    > that on an unknown site, I'd run like the wind and never
    come back.
    >
    > --Nancy O.
    > Alt-Web Design & Publishing
    > www.alt-web.com
    >
    >
    >
    >
    > "guillox1" <[email protected]> wrote in
    message
    > news:fbh8v0$j6f$[email protected]..
    >> Can anyone tell me how to play a sound only once
    when load. At the
    >> present
    > it
    >> is an exe. file, so It is asking me to download the
    file.... I just want
    > it to
    >> play on load and I dont want to hear it again if
    refreshed it. Thank you.
    >>
    >
    >

  • Help playing a sound file please...

    i am trying to play a sound file everytime a button is clicked. the sound will play the first time the button is clicked but wont play after that. how can i get the sound file to play everytime the button is clicked?? here's how i play the sound file...
    InputStream in = new FileInputStream(sound.wav);
    AudioStream as = new AudioStream(in);
    // in the button action event...
    AudioPlayer.player.start(as);
    i tried adding this line... AudioPlayer.player.stop(as);...before the...AudioPlayer.player.start(as); -- the sound file still only plays once
    any help appreciated...thanks

    Hi there,
    Is there a class AudioPlayer in the API or is it yours. Anyway, your class must implement AudioClip interface. Then call yourClass.play(as); You dont need to stop, each time you call play(), it restarts. Try and let me know.
    cheers

  • I have rented a video on my iphone but when I got to play it on the apple tv it is only playing the sound how do I fix this?

    I have rented a video and when I go to play it on apple tv from my iphone it only plays the sound, how do I fix this?

    if it's not iphone4s or later it does not support airplay mirror

  • How to play sound in servlet program

    How to play sound when a page is gernerated? Thank you for any suggestion.

    Why would you want to do that? Remember that the servlet runs on the web server, which is probably in a room full of computers. Nobody will be there to hear it, and if somebody does hear it they will just think it is a problem.
    Perhaps you wanted to play a sound when the page is loaded in the browser? That's an HTML/Javascript/browser question that might get an answer in a forum about those topics.

  • How to play sound from a proprietary format

    I would like to convert a small java applet to flex as3
    The current applet connects  to a remote server to receive audio in a proprietry compressed and encrypted format using a tcp connection (the data is encoded as text)
    It then decrypts, decompresses the audio and uses java sound to play it.
    Looking at the as3 classes all I could find is a sound object that seems to only play mp3 audio and a urlrequest object that is used to download (what about streaming) mp3 audio from a server.
    I am looking for a simple sample that will incorporate retreving data from a server (perhaps using the http service) into e.g. a byte array, and playing pcm audio from a byte array.
    Ideally it would be a small set of files (1?) that I can compile using mxmlc; I am not good with IDEs, linux command line is my thing
    Thanks

    Maciek, many thanks!
    Here's sample code showing how to stream audio in arbitrary format and play it
    // File: Player.as
    // When running from local storage (during developement)
    // compile mxmlc -use-network=false Player.as
    // otherwise loading the local raw audio file fails with error 2148
    // The input audio format is 16 bit little endian 44.1Khz mono.
    package
        import flash.display.Sprite;
        import flash.text.TextField;
        import flash.media.Sound;
        import flash.media.SoundChannel;
        import flash.events.Event;
        import flash.events.SampleDataEvent;
        import flash.net.URLRequest;
        import flash.net.URLStream;
        public class Player extends Sprite
            private var sourceUri:String = "audio.44.raw";
            private var sound:Sound = new Sound();
            private var soundChannel:SoundChannel = new SoundChannel();
            private var playing:Boolean;
            private var stream:URLStream;
            private var request:URLRequest;
            private var statusLine:TextField = new TextField();
            public function Player()
                statusLine.width = 400;
                statusLine.text = "Starting...";
                addChild(statusLine);
                getAudio();
                start();
            public function getAudio():void
                stream = new URLStream();
                request = new URLRequest(sourceUri);
                try {
                    stream.load(request);
                } catch (error:Error) {
                    statusLine.text = "Failed to load " + request.url + " : " + err!
            private function playCallback(event:SampleDataEvent):void
                var value:Number;
                var i:int, cnt:int;
                // Input is 16bit PCM, each sample occupies 2 bytes
                cnt = stream.bytesAvailable / 2;
                if (cnt >= 8192 || playing) {
                    playing = true;
                    statusLine.text = request.url + " : playing...";
                    if (cnt > 8192)
                        cnt = 8192;
                    for (i = 0; i < cnt; i++) {
                        // Convert 16bit little edndian pcm samples to numbers
                        value = stream.readUnsignedByte() + 256 * stream.readUnsign!
                        if (value > 32767)
                            value -= 65536;
                        value /= 10000; //Adjust the volume
                        // Input is mono, write to both channels
                        event.data.writeFloat(value);
                        event.data.writeFloat(value);
                    if (cnt < 2048)
                        statusLine.text = request.url + " : done...";              !
                else {
                    // Wait until enough data is bufferred
                    statusLine.text = request.url + " : buffering...";
                    for (i = 0; i < 8192; i++) {
                        event.data.writeFloat(0);
                        event.data.writeFloat(0);
            private function start():void
                soundChannel.stop();
                sound.removeEventListener(SampleDataEvent.SAMPLE_DATA,playCallback);
                playing = false;
                sound.addEventListener(SampleDataEvent.SAMPLE_DATA,playCallback);
                soundChannel = sound.play();

Maybe you are looking for

  • Problem with adding participation date as updateable field during HRBEN0001

    We have a need to update the participation date on our health plans (infotype 0167) during the enrollment process after modifying an adjustment reason (infotype 0378). We used SE84 to add the participation date (RPBEN_SA-PARDT) to screen 0100 of prog

  • RFC_ERROR_COMMUNICATION: Connect to message server host failed

    We are trying to create JCO destination and we are getting the below problem      com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM  TYPE=B MSHOST=sappw2ci GROUP=PUBLIC R3NAME=PW2 MSSERV=sap

  • Error when running BEx;  SQL Eror: 1722

    Hai,         I made a query on an ODS and when its executed, I get the following error and the query gets terminated. error SQL Eror: 1722 Abort System error:RSDRC/FORM DATA_GET_ODS ERROR IN RSDRO_READ_ODS_DATA ZMLO Abort System error in program SAPL

  • Question About Upgrading To Lion OS

    I have an iMac 27" which I got in 17-Jul. I want to upgrade to Lion OS from Snow Leapord v10.6.8.  My question is if I go to MAC App Store and pay $29.99 for Lion OS and install it, will it format my MAC or wipe out all of my data {photo's, mp3, vide

  • Changes of Free Characteristics Order

    Sometimes free characteristics switch places from one time to another when you do refresh of a query. We discovered it when we tried to copy an existing query (sheet 1) to sheet 2. How can one prevent this?? Thanks Sabine