dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Need I write a URLDecoder class?

  1. #1
    Actionscript 3, postproduction georgecalgary's Avatar
    Join Date
    Jun 2005
    Location
    Toronto
    Posts
    229

    Need I write a URLDecoder class?

    I got XML response from server like this: %3C%3Fxml%20version=%221%2E0%22%20encoding%3D%22ut f%2D8%22%20%3F%3E

    It was encoded. Need I write a decoder to parse the XML or there's any method already available in AS3?

    Thanks,
    George

  2. #2
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    Well, there's definitely one already built into javascript, so if it comes down to that, you could access that through external interface.

    The js method is unescape(<string>)

    There should be one in actionscript too, but I didn't immediately find it. It's probably also unescape.

    Edit: Yup:
    http://www.adobe.com/support/flash/a...ionary812.html

  3. #3
    Actionscript 3, postproduction georgecalgary's Avatar
    Join Date
    Jun 2005
    Location
    Toronto
    Posts
    229
    Thanks a lot. It's a top level function in AS3.

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