PDA

View Full Version : htmlbox.swf Question


Cameleer
03-19-2009, 08:19 AM
I’m working on a jeep safari tour and using the htmlbox.swf to show information about the animals.
Now I would like to add a audio link that you can click on to hear the animal in the htmlbox, but I can’t figure out how.

This is the test page: http://www.indiavrtours.com/alwar/test.html

Here’s the html for the peacock htmlbox:
<img src="http://indiavrtours.com/alwar/images/Peacock.jpg" width="200" height="141" align="left" id="img1" hspace="5" vspace="5" />
<p align="left">
<font face="Times New Roman" size="12" color="#000000">
<b>The Indian Peafowl</b>
<br>
The male is called a peacock, the female a peahen.
The species is found in dry semi-desert grasslands,
scrub and deciduous forests. It forages and nests
on the ground but roosts on top of trees. It eats
seeds, insects, fruits, small mammals and reptiles.
</font>

<p align="left">

<object type="application/x-shockwave-flash" data="files/dewplayer-mini.swf?mp3=files/Peacock.mp3" width="160" height="20">
<param name="wmode" value="transparent" />
<param name="movie" value="files/dewplayer-mini.swf?mp3=files/Peacock.mp3" />
</object>

</p>

Cameleer
03-19-2009, 11:44 AM
Ok, I found a way of getting it to work. I put the onClick command for the mp3 audio in the xml file.
now I need to go back and make the changes.

<spot id="Mytext" url="files/htmlbox.swf" align="BL" pan="240" tilt="-33" alpha="0.0" scaleable="1"
visible="1" mouseChildren="1" width="400" height="140" multiline="1"
wordwrap="1" font="Arial" size="10" color="#0000FF" bgcolor="#FFFFE0" bordercolor="#FF0000"
onOver="alpha=1,200; scale=1.0,200" onOut="alpha=0.0,300; scale=0.5,400"
onClick="mp3.url=files/mp3player.swf?file=files/Peacock.mp3"
useHandCursor="0" htmlfile="peacock_info.html" />