[SWFObject] flashvars htm
Geoff Stearns
geoff at deconcept.com
Wed Oct 11 14:14:48 PDT 2006
sure, it's always going to be text, as there is no 'html' format -
once you get the text, you can set it as the .htmlText of a textfield
and the textfield will display it as html.
On Oct 11, 2006, at 5:08 PM, PM Zanetti wrote:
>>
>>
>> sure you can pass in html:
>>
>> so.addVariable("somehtml", "<p>hello this is a paragraph!</p>");
>>
>> you just have to be sure and escape all the strange characters that
>> might pop up in there, so you can use escape() or encodeURIComponent
>> () with it if you want:
>>
>> so.addVariable("somehtml", escape("<p>hello this is a paragraph!</
>> p>"));
>>
>
> I must be doing something wrong this does not work for me i get the
> html tags passed through as text as well
> as in the following, i would get a result that includes the tags in
> the text box
>
>
>
> <div id="welcome"></div>
> <script type="text/javascript">
> // <![CDATA[
>
> var so = new SWFObject("templates/welcome.swf", "site navigation",
> "540", "320", "7", "");
> so.addVariable("flashVarText", escape("<p>hello this is a paragraph!
> </p>"));
> so.addParam("wmode", "transparent");
> so.write("welcome");
>
> // ]]>
> </script>
>
> _______________________________________________
> SWFObject mailing list
> SWFObject at lists.deconcept.com
> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
More information about the Swfobject
mailing list