[SWFObject] Ampersands and addVariable Parameters

Geoff Stearns geoff at deconcept.com
Wed Nov 1 10:42:33 PST 2006


interesting... are you doing any other processing on the string after  
it enters the swf?

maybe you could just set the string manually inside your flash movie as

Tony%20%26%20Joe%27s%20Seafood%20Place

and then see how your app displays it?


On Nov 1, 2006, at 9:36 AM, Jim Blakeslee wrote:

> I am doing:
>
> so.addVariable("mapitlabel",escape("Tony & Joe's Seafood Place"));
>
> but the Flash is still seeing the string as just "Tony"
>
> see page here:
> http://www.georgetowndc.com/mapit.php?id=1102
>
>
> Geoff Stearns wrote:
>> you have to escape ant special chars:
>>
>> so.addVariable("url", escape("yoururlstring"));
>>
>> OR, if you are using double-byte chars (like most asian languages)  
>> you
>> can use encodeURIComponent() instead of encode.
>>
>>
>>
>>
>> On Oct 6, 2006, at 5:15 PM, Jose R. Rodriguez (JRVisuals,LLC) wrote:
>>
>>> Hi there,
>>>
>>>     Still searching the archives on this one but...
>>>
>>>     I'm having problems passing a parameter in via addVariable. The
>>> value ( a URL containing name/value pairs) is being truncated at the
>>> first ampersand.
>>>
>>>     Any ideas?
>>>
>>>     Many thanks,
>>>                             - JR
>>>
>>>
>>>
>>> *Jose R. Rodriguez : Founder / JRVisuals, LLC : *www.JRVisuals.com
>>> <http://www.jrvisuals.com/>* *||* *blog.JRVisuals.com
>>> <file:///C:/Documents%20and%20Settings/JRVisuals%20LLC/Application 
>>> %20Data/Microsoft/Signatures/blog.JRVisuals.com>_
>>> _
>>> 716.523.1219 mobile || 716.884.1000 office || 716.840.5909 fax
>>> || Josker420 aim
>>>  “Making the simple complicated is commonplace;
>>> making the complicated simple, awesomely simple, that's creativity.”
>>> —Charles Mingus
>>>
>>> _______________________________________________
>>> SWFObject mailing list
>>> SWFObject at lists.deconcept.com <mailto:SWFObject at lists.deconcept.com>
>>> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
>>
>> --------------------------------------------------------------------- 
>> ---
>>
>> _______________________________________________
>> SWFObject mailing list
>> SWFObject at lists.deconcept.com
>> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.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