A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: URL encode?

  1. #1
    Member
    Join Date
    Sep 2000
    Posts
    62

    URL encode?

    Is there a way to URL encode a string in a variable? I have strings containing things like ampersands that need to be converted to %26 and similar.

  2. #2
    Senior Member k/smaert's Avatar
    Join Date
    Dec 2003
    Posts
    210
    Flash uses 'escape' and 'unescape' to url-encode/decode files.

    url_encoded_string = escape(string);

    clean_string = unescape(url_encoded_string);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center