AS3 中是否有 class 告诉您 URL 协议的类型?

Is there a class in AS3 that tells you the type of the URL protocol?

AS3 或 Flex 中是否有 class 告诉您 URI 或 URL 所属的协议类型?我确定有一个 class 将 URL 分成不同的部分并将其分组为可用数据。

例如,如果 URL 是,"mailTo" 它将 return "mail" 协议。或者,如果 URL 是“http://www.google.com”,它将 return "url" 协议。沿着这些线的东西。

您可以在 Flex 库中使用 URLUtil