/ Published in: ActionScript 3
                    
                                        
Here's how I was able to capture the HREF of a page using actionscript
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
//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;
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                