<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">well you are on the right track...<DIV><BR class="khtml-block-placeholder"></DIV><DIV>the one difference you'll have with getQueryParamValue() is that it returns an empty string if the value isn't found, so instead of checking for null, you'll want to check for an empty string.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>you could modify your code in the flash movies like so:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>if (vol == null || vol == "") vol = 100;</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><DIV><DIV>On May 2, 2006, at 9:46 PM, Javier de Alfonso wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"> <DIV><FONT face="Verdana" size="1"><SPAN class="095495800-03052006">Hello, I need to set a variable called "vol" (volume) to 100 when first entering our homepage, and then allowing the visitor to change it with a slider, so I need to pass its value from page to page. (The web is made from several html pages with one flash in each).</SPAN></FONT></DIV> <DIV><FONT face="Verdana" size="1"><SPAN class="095495800-03052006"></SPAN></FONT> </DIV> <DIV><FONT><SPAN class="095495800-03052006"><SPAN class="095495800-03052006"><FONT face="Verdana" size="1"><SPAN class="095495800-03052006">Before the EOLAS issue I used the following html code in every page to get variables from the url:</SPAN></FONT></SPAN></SPAN></FONT></DIV><FONT> <DIV> <DIV> <DIV><FONT face="Verdana" size="1"><SPAN class="095495800-03052006"></SPAN></FONT> </DIV> <DIV><SPAN class="095495800-03052006"><FONT face="Verdana" size="1"><SCRIPT LANGUAGE="JavaScript"><BR><!--<BR>document.write(<BR>  '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n'+<BR>  ' codebase="</FONT><A href="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"><FONT face="Verdana" size="1">http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0</FONT></A><FONT face="Verdana" size="1">" width="975" height="580" ID="inquiero">\n'+<BR>  ' <param name=movie VALUE="index.swf'+document.location.search+'">\n'+<BR>  ' <param name=quality VALUE=best>\n'+<BR>  ' <param name=wmode VALUE=transparent>\n'+<BR>  ' <embed src="index.swf'+document.location.search+'"\n'+<BR>  '   quality=best wmode=transparent width="975" height="580" align="absmiddle"\n'+<BR>  '   type="application/x-shockwave-flash"\n'+<BR>  '   pluginspage="</FONT><A href="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">\n'"><FONT face="Verdana" size="1">http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>\n'</FONT></A><FONT face="Verdana" size="1">+  <BR>  '</OBJECT>');<BR>//--><BR></SCRIPT></FONT></SPAN></DIV> <DIV><FONT face="Verdana" size="1"><SPAN class="095495800-03052006"></SPAN></FONT> </DIV> <DIV><FONT face="Verdana" size="1"><SPAN class="095495800-03052006">and the following AS inside the flash:</SPAN></FONT></DIV> <DIV><FONT face="Verdana" size="1"><SPAN class="095495800-03052006"></SPAN></FONT> </DIV> <DIV><FONT face="Verdana" size="1"><SPAN class="095495800-03052006"><SPAN class="095495800-03052006">   if (vol==null) {vol=100};</SPAN></SPAN></FONT></DIV> <DIV><FONT face="Verdana" size="1"><SPAN class="095495800-03052006"><SPAN class="095495800-03052006"></SPAN></SPAN></FONT> </DIV> <DIV><FONT face="Verdana" size="1"><SPAN class="095495800-03052006"><SPAN class="095495800-03052006">So when first entering any page the value of "vol" was set to 100 if it wasn't passed from the url.</SPAN></SPAN></FONT></DIV> <DIV><FONT face="Verdana" size="1"><SPAN class="095495800-03052006"><SPAN class="095495800-03052006"></SPAN></SPAN></FONT> </DIV> <DIV><FONT face="Verdana" size="1"><SPAN class="095495800-03052006"><SPAN class="095495800-03052006">How should I use Geoff's SWFObject to achieve the same?</SPAN></SPAN></FONT></DIV> <DIV><SPAN class="095495800-03052006"><SPAN class="095495800-03052006"> <DIV><FONT face="Verdana" size="1"><SPAN class="095495800-03052006"><SPAN class="095495800-03052006"><SPAN class="095495800-03052006"></SPAN></SPAN></SPAN></FONT> </DIV> <DIV><SPAN class="095495800-03052006"><FONT face="Verdana"><FONT size="1"><SPAN class="095495800-03052006"><SPAN class="095495800-03052006">I </SPAN></SPAN>tried on every html:</FONT></FONT></SPAN></DIV> <DIV><FONT face="Verdana"><FONT size="1"><SPAN class="095495800-03052006">   </SPAN><SPAN class="095495800-03052006"><SPAN class="095495800-03052006"><SPAN class="095495800-03052006">so.addVariable("vol", getQueryParamValue ("vol"));</SPAN></SPAN></SPAN></FONT></FONT></DIV> <DIV><SPAN class="095495800-03052006"><SPAN class="095495800-03052006"><SPAN class="095495800-03052006"><FONT face="Verdana"><FONT size="1">and <SPAN class="095495800-03052006"><SPAN class="095495800-03052006"><SPAN class="095495800-03052006"><SPAN class="095495800-03052006"><SPAN class="095495800-03052006">inside every flash:</SPAN></SPAN></SPAN></SPAN></SPAN></FONT></FONT></SPAN></SPAN></SPAN></DIV> <DIV><FONT face="Verdana"><FONT size="1"><SPAN class="095495800-03052006"><SPAN class="095495800-03052006"><SPAN class="095495800-03052006">   <SPAN class="095495800-03052006"><SPAN class="095495800-03052006">if (vol==null) {vol=100}</SPAN></SPAN></SPAN></SPAN></SPAN><SPAN class="095495800-03052006"><SPAN class="095495800-03052006"><SPAN class="095495800-03052006"><SPAN class="095495800-03052006"><SPAN class="095495800-03052006">;</SPAN></SPAN></SPAN></SPAN></SPAN></FONT></FONT></DIV> <DIV><FONT face="Verdana"><FONT size="1"></FONT></FONT> </DIV> <DIV><FONT face="Verdana"><FONT size="1">B<SPAN class="095495800-03052006">ut "vol" always sets to 0.</SPAN></FONT></FONT></DIV> <DIV><FONT face="Verdana"><FONT size="1"><SPAN class="095495800-03052006"></SPAN></FONT></FONT><FONT face="Verdana" size="1"><SPAN class="095495800-03052006"></SPAN></FONT> </DIV></SPAN></SPAN></DIV></DIV></DIV> <DIV><FONT face="Verdana" size="1"><SPAN class="095495800-03052006">Could you give a hand here? Thank you in advance.</SPAN></FONT></DIV> <DIV><FONT face="Verdana" size="1"><SPAN class="095495800-03052006"></SPAN></FONT> </DIV> <DIV><FONT face="Verdana" size="1"><SPAN class="095495800-03052006">Javier.</SPAN></FONT></DIV> <DIV><FONT face="Verdana" size="1"><SPAN class="095495800-03052006">Madrid. Spain.</SPAN></FONT></DIV></FONT><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">SWFObject mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:SWFObject@lists.deconcept.com">SWFObject@lists.deconcept.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com">http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>