Note2Self: Seems I always end up forgetting the proper syntax and want to do¬† something that never works. Just a reminder to myself and anyone that ends up here from google…

var url:String = “www.YOUR_DOMAIN_HERE/a path that needs to be encoded”;
var encodedUrl:String = escape( url );
trace( encodedUrl );
var decodedUrl:String = unescape( encodedUrl );
trace( decodedUrl );