<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=750204723-23052006><FONT face=Arial
color=#0000ff size=2>Sibrand.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750204723-23052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=750204723-23052006><FONT face=Arial
color=#0000ff size=2>Did you pass in all the vars required? In your query string
example you also have an active and allowDomainUrl variable.
Swf</FONT></SPAN><SPAN class=750204723-23052006><FONT face=Arial color=#0000ff
size=2>Object is creating the flashvars just like the normal object/embed tag
method would be, so if adding your variables as a flashVars string works
normally, it should also work using swfObject.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750204723-23052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=750204723-23052006><FONT face=Arial
color=#0000ff size=2>If you look in the actual swfObject code, all it is
doing is something like this:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750204723-23052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=750204723-23052006><FONT face=Arial
color=#0000ff size=2>// splits all the vars you added through
addVariable() from an array back into a string concatted with an
ampersand</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750204723-23052006><FONT face=Arial
color=#0000ff size=2>theVars =
this.getVariablePairs().join("&");</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750204723-23052006><FONT face=Arial
color=#0000ff size=2>// adds the string to flashvars during object
creation<BR>"flashvars=\""+theVars+"\"";</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750204723-23052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=750204723-23052006><FONT face=Arial
color=#0000ff size=2>Anyway, if you are happy with appending a query string,
then that's cool. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750204723-23052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=750204723-23052006><FONT face=Arial
color=#0000ff size=2>BTW - On player 6.0r47 you cannot use a query string to
load data if the file is being viewed locally (browser on local machine / cdrom
etc) (could be others too, so just be careful with your local testing
before putting on the web). Just to be safe, I'd put the same string into
flashVars as well.</FONT></SPAN></DIV>
<DIV><SPAN class=750204723-23052006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=750204723-23052006><FONT face=Arial color=#0000ff
size=2>Aran</FONT></SPAN></DIV>
<DIV dir=ltr align=left><BR></DIV>
<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>Sibrand
Hoekstra<BR><B>Sent:</B> Tuesday, 23 May 2006 5:47 PM<BR><B>To:</B>
swfobject@lists.deconcept.com<BR><B>Subject:</B> Re: [SWFObject] passing
variables<BR></FONT><BR></DIV>
<DIV></DIV>this is weird, because in the original version, they also include
an xml like this: <BR><PRE> thing.swf?urlXML=/data/xml/nav.xml&kleur01=ff00000 </PRE>when i
wanted to load the xml through addVariable("urlXML",
"/data/xml/nav.xml");<BR>my menu[built by xml] wouldn't show up.<BR>i am
now using the huge strings like this:<BR><PRE id=line72><<SPAN class=start-tag>script</SPAN><SPAN class=attribute-name> type</SPAN>=<SPAN class=attribute-value>"text/javascript"</SPAN>>
var so = new SWFObject("/stones/nav/nav.swf?urlXML=data/xml/nav.xml&active=1&allowDomainURL=<A class=moz-txt-link-freetext href="http://www.buyways.nl&kleur01=FF0000&kleur02=960000&kleur03=FF6000&kleur04=808080">http://www.buyways.nl&kleur01=FF0000&kleur02=960000&kleur03=FF6000&kleur04=808080</A>" , "nav", "450", "100", "6", "#ffffff");
so.write("navigation_main");
</<SPAN class=end-tag>script</SPAN>></PRE>and it works as
well.<BR><BR>(this is ok for me; now i won't have to go through every object
tag to cut n paste each variable passed throughout the whole app :')
)<BR><BR>Thanks anyway for you responses!<BR><BR>Sibrand<BR><BR><BR>Aran Rhee
wrote:
<BLOCKQUOTE cite=mid004201c67df8$61c80e20$2000a8c0@HYPERION type="cite"><PRE wrap="">Sibrand
When you addVariable("kleur01", "FF0000"), it is equivalent to adding
kleur01 through flashVars. Do one addVariable call for each var you want to
add and all should be well..
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
Sibrand Hoekstra | Buyways B.V.
Sent: Monday, 22 May 2006 7:17 PM
To: <A class=moz-txt-link-abbreviated href="mailto:swfobject@lists.deconcept.com">swfobject@lists.deconcept.com</A>
Subject: [SWFObject] passing variables
Hello List,
I am working on an application where the flashcontent is
delivered by an external party.
the swf needs to get some colors and other data, and this is
passed [a little ugly imho] as follows:
<embed
src="/stones/nav/nav.swf?urlXML=data/xml/nav.xml&active=1&kleu
</PRE></BLOCKQUOTE><PRE wrap=""><!---->r01=FF0000&kleur02=960000&kleur03=FF6000&kleur04=808080" [...] > />
</PRE>
<BLOCKQUOTE type="cite"><PRE wrap="">My question, how do i pass these variables using the almighty
swfObject.
i'm afraid addVariable("kleur01", "FF0000"); won't work as
they aren't FlashVars, right?
Thanks in advance,
Sibrand
--
Sibrand Hoekstra BuyWays BV T +31 50 3118123
<A class=moz-txt-link-abbreviated href="mailto:sibrand@buyways.nl">sibrand@buyways.nl</A> Friesestraatweg 217c F +31 50 3118124
<A class=moz-txt-link-freetext href="http://www.buyways.nl">http://www.buyways.nl</A> 9743 AD Groningen M +31 6 41910167
_______________________________________________
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>