[SWFObject] javascript in flashvars text

Aran Rhee aran.rhee at qdc.net.au
Sun Jul 23 16:41:49 PDT 2006


Hi.

Do you actually need to pass in the whole <script> tags etc to loadVars ? 

You have a couple of options:

1. You should just be able to pass in the http link(s) (without the script
tags) and call a getURL on it to call the page(s) you need.
2. have a js function on yout html page holding the flash file and use the
flash/javascript integration kit (for Flash 6/7) or external interface
(F8/9) to call the function from within flash.

Cheers,
Aran

> -----Original Message-----
> From: swfobject-bounces at lists.deconcept.com 
> [mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of PM Zanetti
> Sent: Monday, 24 July 2006 4:03 AM
> To: swfobject at lists.deconcept.com
> Subject: [SWFObject] javascript in flashvars text
> 
> i am trying to pass the following information from my site 
> shopping cart into my flash movie flashvars with no success, 
> if i use an encoder to encode the entire string i get the 
> source code of the javascript in the movie
> 
> any suggestions on whether i can pull in this remote 
> javascript info with flashvars would be greatly appreciated
> 
> Items in Cart: <script type="text/javascript" src="http:// 
> shopping.netsuite.com/app/site/query/getcartitemcount.nl?c=423271"></ 
> script><br>
> Cart Total: <script type="text/javascript" src="http:// 
> shopping.netsuite.com/app/site/query/getcarttotal.nl?c=423271"
></script>
> 
> Pz
> 
> _______________________________________________
> SWFObject mailing list
> SWFObject at lists.deconcept.com
> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com



More information about the Swfobject mailing list