<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=093140507-25112006><FONT face=Arial 
color=#0000ff size=2>John.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=093140507-25112006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=093140507-25112006><FONT face=Arial 
color=#0000ff size=2>Cool. I was unsure what type server side processing you 
were using on those variable tags, as there have been people using 
expression engine and other pre-processing modules which takes tags in 
various ways (some with quotes, some without).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=093140507-25112006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=093140507-25112006><FONT face=Arial 
color=#0000ff size=2>Glad all is well now.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=093140507-25112006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=093140507-25112006><FONT face=Arial 
color=#0000ff size=2>Cheers,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=093140507-25112006><FONT face=Arial 
color=#0000ff size=2>Aran</FONT></SPAN></DIV><BR>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> swfobject-bounces@lists.deconcept.com 
  [mailto:swfobject-bounces@lists.deconcept.com] <B>On Behalf Of </B>Lifestyle 
  Clubhouse administrator<BR><B>Sent:</B> Saturday, 25 November 2006 5:39 
  PM<BR><B>To:</B> swfobject@lists.deconcept.com<BR><B>Subject:</B> Re: 
  [SWFObject] Getting connection errors with my flash chat 
  program<BR></FONT><BR></DIV>
  <DIV></DIV>Thanks Aran for your help on this. The only change I had to make to 
  your code was putting quotes around the values and it worked like a 
  charm.<BR><BR>John<BR><BR>Aran Rhee wrote: 
  <BLOCKQUOTE cite=mid001701c71057$1152b2a0$6500a8c0@HYPERION type="cite"><PRE wrap="">John.

A few things.

1. The below are all parameters, not variables

so.addVariable("allowScriptAccess", "always");
so.addVariable("movie", "<?=$ray_dir?>ray_chat_loader.swf");
so.addVariable("quality", "high");
so.addVariable("wmode", "transparent");
so.addVariable("base",
  </PRE>
    <BLOCKQUOTE type="cite"><PRE wrap="">"<A class=moz-txt-link-freetext href="http://">http://</A><?=$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME
    </PRE></BLOCKQUOTE><PRE wrap=""><!---->'])?>/");

The should be added like the below:

so.addParameter("allowScriptAccess", "always");

*** BTW you don't need movie param, as this is already created for you in
your swf constructor call. ***


2. FlashVars is one variable with "&" delimited values in normal embedd, but
in swfObject you pass name value pairs seperately (it constructs the
flashVars for you from the pairs). So the vars you want to add would be
something like:

so.addVariable("ID", <?=$ID?>);
so.addVariable("NickName", <?=$NickName?>);
so.addVariable("url", <?=$ray_xml?>);
so.addVariable("lang_url", <?=$ray_lang?>);


Cheers,
Aran

  </PRE>
    <BLOCKQUOTE type="cite"><PRE wrap="">-----Original Message-----
From: <A class=moz-txt-link-abbreviated href="mailto:swfobject-bounces@lists.deconcept.com">swfobject-bounces@lists.deconcept.com</A> 
[<A class=moz-txt-link-freetext href="mailto:swfobject-bounces@lists.deconcept.com">mailto:swfobject-bounces@lists.deconcept.com</A>] On Behalf Of 
Lifestyle Clubhouse administrator
Sent: Saturday, 25 November 2006 2:21 PM
To: <A class=moz-txt-link-abbreviated href="mailto:swfobject@lists.deconcept.com">swfobject@lists.deconcept.com</A>
Subject: [SWFObject] Getting connection errors with my flash 
chat program

I can't get SWFObject to work with my flash-based chat 
program. Here's the original working code:

<object classid=<A class=moz-txt-link-rfc2396E href="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"</A> 
codebase=<A class=moz-txt-link-rfc2396E href="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">"http://fpdownload.macromedia.com/pub/shockwave/cabs/
flash/swflash.cab#version=8,0,0,0"</A> 
width="730" height="515" id="ray_chat" align="middle"> <param 
name="allowScriptAccess" value="always" /> <param 
name="movie" value="<?=$ray_dir?>ray_chat_loader.swf" /> 
<param name="quality" value="high" /> <param name="wmode" 
value="transparent" /> <param name="base" 
value="<A class=moz-txt-link-freetext href="http://">http://</A><?=$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIP
    </PRE></BLOCKQUOTE><PRE wrap=""><!---->T_NAME'])?>/" 
  </PRE>
    <BLOCKQUOTE type="cite"><PRE wrap="">/>
<param name="FlashVars" 
value="ID=<?=$ID?>&NickName=<?=$NickName?>&url=<?=$ray_xml?>&l
    </PRE></BLOCKQUOTE><PRE wrap=""><!---->ang_url=<?=$ray_lang?>" 
  </PRE>
    <BLOCKQUOTE type="cite"><PRE wrap="">/>
<embed
        src="<?=$ray_dir?>ray_chat_loader.swf"
        id="ray_chat"
        quality="high"
        wmode="transparent"
        bgcolor="#ffffff"
        width="730" height="515"
        name="ray_chat"
        align="middle"
        allowScriptAccess="always"
        
base="<A class=moz-txt-link-freetext href="http://">http://</A><?=$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT
    </PRE></BLOCKQUOTE><PRE wrap=""><!---->_NAME'])?>/"
  </PRE>
    <BLOCKQUOTE type="cite"><PRE wrap="">        
FlashVars="ID=<?=$ID?>&NickName=<?=$NickName?>&url=<?=$ray_xml
    </PRE></BLOCKQUOTE><PRE wrap=""><!---->?>&lang_url=<?=$ray_lang?>"
  </PRE>
    <BLOCKQUOTE type="cite"><PRE wrap="">        
pluginspage=<A class=moz-txt-link-rfc2396E href="http://www.macromedia.com/go/getflashplayer">"http://www.macromedia.com/go/getflashplayer"</A> /> </object>


And here's the new code with SWFObject:

        <script type="text/javascript">
          var so = new SWFObject("<?=$ray_dir?>ray_chat_loader.swf",
"ray_chat", "730", "515", "8", "#ffffff");
          so.addVariable("allowScriptAccess", "always");
          so.addVariable("movie", "<?=$ray_dir?>ray_chat_loader.swf");
          so.addVariable("quality", "high");
          so.addVariable("wmode", "transparent");
          so.addVariable("base",
"<A class=moz-txt-link-freetext href="http://">http://</A><?=$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME
    </PRE></BLOCKQUOTE><PRE wrap=""><!---->'])?>/");
  </PRE>
    <BLOCKQUOTE type="cite"><PRE wrap="">         so.addVariable("FlashVars",
"ID=<?=$ID?>&NickName=<?=$NickName?>&url=<?=$ray_xml?>&lang_ur
    </PRE></BLOCKQUOTE><PRE wrap=""><!---->l=<?=$ray_lang?>"); 
  </PRE>
    <BLOCKQUOTE type="cite"><PRE wrap="">          so.write("flashcontent");
        </script>

The script loads up, but I get a connection error with my 
chat server. 
I've experimented with adding "getQueryParamValue" to the 
"base" and "FlashVars" variables, but that didn't work.

Any ideas? Thanks in advance.

John


_______________________________________________
SWFObject mailing list
<A class=moz-txt-link-abbreviated href="mailto:SWFObject@lists.deconcept.com">SWFObject@lists.deconcept.com</A>
<A class=moz-txt-link-freetext href="http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com">http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com</A>
    </PRE></BLOCKQUOTE><PRE wrap=""><!---->
_______________________________________________
SWFObject mailing list
<A class=moz-txt-link-abbreviated href="mailto:SWFObject@lists.deconcept.com">SWFObject@lists.deconcept.com</A>
<A class=moz-txt-link-freetext href="http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com">http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com</A>



  </PRE></BLOCKQUOTE><BR></BLOCKQUOTE></BODY></HTML>