same hotspot triggers sound on/off - help

  • hey! :)

    i want to enter a szene and first of all there should be no sound
    then i have a hotspott wich triggers on/off sound
    my code looks like this

    ---------------------------------------------------------------------------------------------
    <plugin name="soundinterface"
    url="plugins/soundinterface.swf"
    keep="true" preload="false"
    visible="true" enabled="true" handcursor="true" capture="true" children="true"
    zorder="0"
    alpha="1.00" blendmode="normal"
    smoothing="true"
    align="" edge=""
    x="" y="" ox="" oy=""
    width="400" height="300"
    crop="" ondowncrop="" onovercrop=""
    scale="1" scale9grid="" scalechildren="false"
    rotate="0"
    parent=""
    mask=""
    onloaded="playsound(sounds, radio.mp3, 0);"
    onover=""
    onhover=""
    onout=""
    ondown=""
    onup=""
    onclick=""
    effect=""
    mute="true"
    rootpath="sounds"
    volume="1"
    />

    <hotspot name="bt2"
    url="sounds/button1.png"
    keep="false"
    ath="-52.782022247858436" atv="7.641661798274216"
    zoom="false" distorted="true"
    width="50" height="50"
    scale="1.0522960772671814" scale9grid="" scalechildren="false" rotate="0"
    rx="-13.875" ry="-2.2624999999999886" rz="2.817720030996638"
    edge="center" ox="" oy=""
    crop="" ondowncrop="" onovercrop=""
    visible="true" enabled="true" handcursor="true" capture="true" children="true"
    zorder="0"
    alpha="1.00" blendmode="normal" smoothing="true"
    refreshrate="auto"
    onloaded=""
    onover="set(alpha,1);"
    onhover="showtext(Radio an/aus ,buttonstyle);"
    onout=""
    ondown=""
    onup=""
    onclick="pausesoundtoggle(sounds);"
    details="8"
    effect=""
    flying="0"
    inverserotation="false"
    />
    -------------------------------------------------------------------------------------

    pls need help!

    thx sebastian

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!