[SWFObject] xml

Aran Rhee aran.rhee at qdc.net.au
Sun May 21 04:02:35 PDT 2006


Anthony,

You just add the vars one at a time using the addVariable function. Your
swfObject would be constructed something like this:

var so = new SWFObject("quickquoteform.swf", "coffeexml", "429", "1010",
"7", "#ffffff");
so.addVariable("xmlfile", "quickquoteform.xml");
so.addVariable("w", 429);
so.addVariable("h", 1010);
so.addParam("scale", "noscale");
so.addParam("salign", "lt");
so.write("flashcontent");

(where "so" is the name of your swfObject, and "flashcontent" is the div you
are writing to) 

> -----Original Message-----
> From: swfobject-bounces at lists.deconcept.com 
> [mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of 
> Anthony Connelly
> Sent: Sunday, 21 May 2006 12:50 PM
> To: swfobject at lists.deconcept.com
> Subject: [SWFObject] xml
> 
> This is output from a program that makes a form. I am having 
> trouble translating it for SWFobject because of my lack of 
> knowlege when it comes to Flashvars and xml. Could someone 
> show me make this code work with SWFobject?
> 
> <object
> classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
> 
> codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/
> flash/swflash.cab#version=7,0,0,0"
>  width="429" height="1010" id="coffeexml"
> align="middle">
>             <param name="movie"
> value="quickquoteform.swf"/>
>             <param name="quality" value="high" />
>             <param name="FlashVars"
> VALUE="xmlfile=quickquoteform.xml&w=429&h=1010"/>
>             <param name="scale" value="noscale" />
>             <param name="salign" value="lt" />
>             <param name="bgcolor" value="#ffffff" />
>             <embed src="quickquoteform.swf"
> FlashVars="xmlfile=quickquoteform.xml&w=429&h=1010"
> quality="high" bgcolor="#ffffff" width="429"
> height="1010"
>  name="coffeexml" scale="noscale" salign="lt"
> align="middle" type="application/x-shockwave-flash"
> 
> pluginspage="http://www.macromedia.com/go/getflashplayer"
> /></embed>
>           </embed>
>             </embed>
>         </object>
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection 
> around http://mail.yahoo.com 
> _______________________________________________
> SWFObject mailing list
> SWFObject at lists.deconcept.com
> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com




More information about the Swfobject mailing list