ActionScript 3 As3:捕获HREF,路径名,主机,userAgent

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ActionScript 3 As3:捕获HREF,路径名,主机,userAgent相关的知识,希望对你有一定的参考价值。

//Here's a list of helpful items to capture
var pageURL:String      = ExternalInterface.call('window.location.href.toString');
var pageHost:String     = ExternalInterface.call('window.location.hostname.toString');
var pagePath:String     = ExternalInterface.call('window.location.pathname.toString');
var pageProtocol:String = ExternalInterface.call('window.location.protocol.toString');
var userAgent:String    = ExternalInterface.call('window.navigator.userAgent.toString');
var platform:String     = ExternalInterface.call('window.navigator.platform.toString');
 

private function getQueryString():String
{
     var query:String = ExternalInterface.call("window.location.pathname.toString");
     //ExternalInterface.call("window.location.href.toString");
     return query;
}

以上是关于ActionScript 3 As3:捕获HREF,路径名,主机,userAgent的主要内容,如果未能解决你的问题,请参考以下文章

[ActionScript 3.0] AS3.0根据当天日期获取明天,后天...日期

[ActionScript 3.0] AS3 对XML的操作,创建删除增加节点方法

[ActionScript 3.0] AS3 获取某年某月的天数(Get number of days in a month)

Actionscript,AS3,MXML,Flex,Flex Builder,Flash Builder,Flash,AIR,Flash Player之关系

ActionScript 3 AS3 SWFtrospection(as3swf)

ActionScript 3 AS3 TextField和StyleSheet示例(在ActionScript中创建)