[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] Re: Programming click on Button - you can hear Sound -

From: Jens Stolze
Subject: [Swftools-common] Re: Programming click on Button - you can hear Sound - How to do?
Date: Sun, 19 Mar 2006 14:24:17 +0100
User-agent: Mozilla Thunderbird 1.0.7 (X11/20051017)


looking something like a "Nippelboard"
(http://tvtotal.prosieben.de/downloads/) or a "weed-o-mat"

Here is one of my first approach. It ends with compiling error.

# -------------------------------------
.button knopf
    .show knopfnormal as=idle
    .show knopfdrueber as=hover
    .show aktiverbereich as=area
    .show knopfgedrueckt as=pressed
    .sound sound1 "ruhe-bitte.wav"

    play sound1

# -------------------------------------
.put knopf

# ---------- button10.sc ---------------------------

If I exchange "play sound1" with "getURL("ruhe-bitte.swf", GET);", it
will work but it is loading this in a new windowm but I want to work
with only one window... ;-(


after many, many inquiries I found a working solution at http://www.flashhilfe.de/forumflash_0_000_0_89046_89057.html#89057
My new approach:

        meinSound = new Sound();
        meinSound.loadSound("ruhe-bitte.mp3", true);
        meinSound.onSoundComplete = function() {
                meinSound.loadSound("ruhe-bitte.mp3", false); 

Also using a
function would be a smarter way programming this.


cu,     Jens Stolze

PS: It is only working with an mp3-File, not with the same sound converted as WAV or SWF. Any hints?

PPS: It is not exactly the solution I want, because this code loads an external MP3-file. How would I get it internal?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]