A simple way to bypass this problem is using the global function encodeURI().
Check out the docs:
I'll give a simple example on how to use it:
var urlrequest : URLRequest = new URLRequest();
urlrequest.url = "http://twitter.com/intent/tweet?text=" + encodeURI( completeURL );
navigateToURL( urlrequest, "_blank" );
Hope it helps someone out there to spare some development time ;)
No comments:
Post a Comment