PDA

View Full Version : Music Button Issue


robrockyeah13
02-05-2008, 10:14 AM
I made a button like this to switch on/off the music:

<spot id="audiobutton"
alt="Audio On/Off"
static="1"
salign="BL"
staticX="748"
staticY="-30"
depth="0"
alpha="1"
url="audio.png"

onclick="makeSoundGoOff;"

makeSoundGoOff ="audio.soundVolume=0;onClick=makeSoundGoOn;"
makeSoundGoOn ="audio.soundVolume=1;onClick=makeSoundGoOff;"


/>

so, i have some music in some pano like spots with mp3spot plugin, but this button works only in the first music spot i meet in my panorama path, not at all in the others... this is strange 'casue this button isn't linked to something, it's global!!!!

HansNyberg
02-06-2008, 11:57 AM
I had the same problem and unfortunatelly it could not be solved.
You have to link the button to each pano.
See this thread.
http://flashpanoramas.com/forum/showthread.php?t=662

This means that you have to close the sound for each pano.
Of course if people do not like sound they can just mute the sound on the computer.

Hans

clodomi
02-18-2008, 11:12 AM
Hello to All !
I try to build my own Flash hotspot for FPP. But without success!
My hotspot in Flash contains a button which when you click on it, plays a MP3 and display an image in the same time. Then when the MP3 ends the displayed image is hidden automaticaly thanks to the "onSoundComplete" AS2 command.
I have Flash CS3 to build it but I only know (a few) ActionScript 2, not the 3.
My swf works very fine if it plays by itself, not if it's included in FPP! :confused:
In FPP, when I click on my hotspot, the image is displayed and there isn't any sound :???:
So I think that maybe some AS2 commands are not working in FPP (who is in AS3): "attachSound" seems to be ignored :(
Any advice please?

Bonjour а tous !
J'essaye de construire mon propre hotspot en Flash pour FPP. Mais sans succиs !
Mon hotspot en Flash contient un bouton qui quand vous cliquez dessus, joue un MP3 et affiche une image en mкme temps. Puis quand le MP3 se termine, l'image affichйe est cachйe automatiquement grвce а la commande AS2 "onSoundComplete".
J'ai Flash CS3 pour construire cela, mais je ne connais (qu'un peu) ActionScript 2, pas le 3.
Mon SWF marche bien si il joue seul, mais pas si il est inclus dans FPP :confused:
Dans FPP, quand je clic sur mon Hotspot, l'image est affichйe mais il n'y a pas de son :???:
Je pense que peut кtre quelques commandes en ActionScript 2 ne marchent pas dans FPP qui lui est en AS 3 : "attachSound" semble ignorй :(
Quelques suggestions SVP?