zope3 and flash - problems with urls

Zope3 take use of “++” signs to declare namespaces. I wanted to pass the URL of an XML File - which should be loaded from Flash - from JavaScript to Flash.

var location = myfile.xml
swfobject.addVariable(”target_path”, location)

but I had the problem, that Flash 7 has lost the “+” signs because they are special in URL encoding and got treated like a space sign. To make it work I hat to replace the + signs with the %2B

e.g.
location = location.split(”+”).join(”%2B”)
swfobject.addVariable(”target_path”, location)

after that it worked fine. For any strange reason, this is not neccesary with Flash 9

Leave a Reply