Packageorg.samchon.library.utils
Classpublic class URL
InheritanceURL Inheritance Object

URL is a utility class gathering interaction functions with web (browser-side containing Flex SWF file).



Public Properties
 PropertyDefined By
  THIS_URL : String
[static] [read-only] Get the URL which is containing Flex swf file Alert) MOVIE_URL doesn't contain the URLVariables
URL
Public Methods
 MethodDefined By
  
[static] Close the browser, literally
URL
  
getMovieName():String
[static] Get the "movie" property from URLVariables in URL
URL
  
getParameters():URLVariables
[static] Get the URLVariables (GET method) from URL ex) http://samchon.org/simulation/index.html?movie=montecarlo&type=4&code=005930 ---- -> returns "movie=montecarlo&type=4&code=005930";
URL
  
[static] Create a new window having same movie
URL
  
goWindow(movie:String):void
[static] Navigate this window to another movie
URL
  
navigateToURL(url:String, method:String = _self):void
[static] Flash's original navigateToURL does not act in Internet Explorer. Instead, URL::navigateToURL calls the javascript's window.open
URL
Property Detail
THIS_URLproperty
THIS_URL:String  [read-only]

Get the URL which is containing Flex swf file

Alert) MOVIE_URL doesn't contain the URLVariables


Implementation
    public static function get THIS_URL():String
Method Detail
closeWindow()method
public static function closeWindow():void

Close the browser, literally

getMovieName()method 
public static function getMovieName():String

Get the "movie" property from URLVariables in URL

Returns
String
getParameters()method 
public static function getParameters():URLVariables

Get the URLVariables (GET method) from URL

ex) http://samchon.org/simulation/index.html?movie=montecarlo&type=4&code=005930

---- -> returns "movie=montecarlo&type=4&code=005930";

Returns
URLVariables
goNewWindow()method 
public static function goNewWindow():void

Create a new window having same movie

goWindow()method 
public static function goWindow(movie:String):void

Navigate this window to another movie

Parameters

movie:String

navigateToURL()method 
public static function navigateToURL(url:String, method:String = _self):void

Flash's original navigateToURL does not act in Internet Explorer.

Instead, URL::navigateToURL calls the javascript's window.open

Parameters

url:String
 
method:String (default = _self)