<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I have a page on my site that loads various sounds
into a flash file. I use flv files, but you could just as easily embed the
audio files in the swf, and just send the value to tell the flash movie
which sound to play instead sending the actual source location of the file,
like I do. Its not asthetically pleasing yet, but t</FONT><FONT face=Arial
size=2>he working page is here:</FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.frankcaliendo.org/index.php?page=downloads&subpage=cellPhoneRingers">http://www.frankcaliendo.org/index.php?page=downloads&subpage=cellPhoneRingers</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm not sure which version of Flash this requires,
but I'm not using full communication, just controlling the flash file, which I
think was available starting around release 6.x. So the javascript sends a
variable to the flash file and then tells it to play. Inside the flash
file, the code simply stops on the first frame when it first loads. When
its told to play via javascript, it plays the next frame, which plays the
sound. Then a line of script returns the playhead to the first
frame and stops play, where it is ready for the new variable and to be told
to play again (I can send this code, if I'm not clear).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Below is the javascript.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><script></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> function
getFlashMovieObject(movieName){<BR> if
(window.document[movieName]) <BR>
{<BR> return
window.document[movieName];<BR> }<BR> if
(navigator.appName.indexOf("Microsoft Internet")==-1)<BR>
{<BR> if (document.embeds &&
document.embeds[movieName])<BR> return
document.embeds[movieName]; <BR> }<BR> else
// if (navigator.appName.indexOf("Microsoft
Internet")!=-1)<BR> {<BR> return
document.getElementById(movieName);<BR> }<BR>
}<BR> <BR> function changeFlashRinger(){<BR> var
flashMovie=getFlashMovieObject("ringerPreviewPlayer");<BR>
flashMovie.SetVariable("/:loadclip",
document.ringerForm.ringerSelect[document.ringerForm.ringerSelect.selectedIndex].value);<BR>
flashMovie.Play();<BR> }</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></script></FONT></DIV>
<DIV><FONT face=Arial size=2><form name="ringerForm"> </FONT></DIV>
<DIV><FONT face=Arial size=2> <select name="ringerSelect"
onChange="changeFlashRinger()"><BR> <option
value="<A
href='http://www.frankcaliendo.net/multimedia/ringers/flv/AdamSandler1.flv">AdamSandler1</option'>http://www.frankcaliendo.net/multimedia/ringers/flv/AdamSandler1.flv">AdamSandler1</option</A>><BR>
<option value="<A
href='http://www.frankcaliendo.net/multimedia/ringers/flv/AdamSandler2.flv">AdamSandler2</option'>http://www.frankcaliendo.net/multimedia/ringers/flv/AdamSandler2.flv">AdamSandler2</option</A>><BR>
</select> <BR></form></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=jdgiotta@gmail.com href="mailto:jdgiotta@gmail.com">John Giotta</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=swfobject@lists.deconcept.com
href="mailto:swfobject@lists.deconcept.com">swfobject@lists.deconcept.com</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, September 08, 2006 8:08
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [SWFObject] Toggling a flash
file</DIV>
<DIV><BR></DIV>So, constructing a controller/container SWF to load and mute
the sound file SWF would be out of the question?<BR>
<P>
<HR>
<P></P>_______________________________________________<BR>SWFObject mailing
list<BR><A
href="mailto:SWFObject@lists.deconcept.com">SWFObject@lists.deconcept.com</A><BR><A
href="http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com">http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com</A><BR></BLOCKQUOTE></BODY></HTML>