<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hello...<DIV>Thanks for the work made on swfObject...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I'm very new to all the scripts language I use in a photographer portofolio  site I'm working on.</DIV><DIV>I use php & mysql to retreive a list of datas (jpg files and other stuff )formated in xml.</DIV><DIV>I use a php session array to stock the value of the generated xml.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I'd like to pass the generated xml to the swf file using addvariable from SWFObject.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>to do so, I wrote this : </DIV><DIV>(I also use the scriptaculos lib, that's the raison why you'll see $('bloc_album') in the following lines)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><script></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">   </SPAN>function lp_show(){</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">          </SPAN>$('bloc_album').style.display='block';</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                       </SPAN>// <![CDATA[</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                                      </SPAN>var so = new SWFObject("site/tf_portfolio00.swf", "tf_portfolio00", "618", "600", "7", "#252525");</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                                       </SPAN>so.addVariable("sujet", <?php $_SESSION['t'] ?>); // this is where I would like to pass the xml datas to the .swf</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                                    </SPAN>so.write("album_reportages");</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                   </SPAN>// ]]></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN>}</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN>function lp_hide(){</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">          </SPAN>$('bloc_album').style.display='none';</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>}</DIV><DIV></script></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>You could see the "working on" version of the site at : </DIV><DIV>ha-lala.com/sierpinski/</DIV><DIV> </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>May be the wrong place to post this question?</DIV><DIV>if it is, you could tell me where to post...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>thanks</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>:) </DIV><DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Luc Perillat</DIV><DIV>ha-lala</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>web design</DIV><DIV>www.ha-lala.com</DIV><DIV><A href="mailto:lucperillat@g-mail.com">lucperillat@g-mail.com</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>06 86 62 66 01</DIV><DIV>05 61 53 78 31</DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></DIV></BODY></HTML>