Download » AS3 Class

URL (URL)

Navigates to a url or sends data to a url

Method summary

Method Description
go(url:String, data:Object, method:String, window:String) : void Navigate to a URL
send(url:String, data:Object, method:String) : void Sends a URL request to a server, but ignores any response.
download(url:String, filename:String) : void Downloads a file and displays “Save File” dialog before downloading.

go(url:String, data:Object, method:String, window:String) : void

Usage

URL.go('http://google.com/search', {q: 'illumifi interactive'}, 'GET', '_parent');

Parameters

url:String

- The URL to navigate to

data:Object
- An object containing data to be transmitted with the URL request.

method:String
- Controls the HTTP form submission method. You can enter one of the following values:

  • GET
  • POST

window:String
- The browser window or HTML frame in which to display the document indicated by the request parameter. You can enter the name of a specific window or use one of the following values:

  • _self specifies the current frame in the current window.
  • _blank specifies a new window
  • _parent specifies the parent of the current frame
  • _top specifies the top-level frame in the current window

If you don’t specify a value for this parameter the ‘_parent’ value is used

Returns

Nothing.

Description

Navigate to a URL


send(url:String, data:Object, method:String) : void

Usage

URL.send('http://yourdomain.com', {q: 'illumifi interactive'}, 'POST');

Parameters

url:String
- The URL to navigate to

data:Object
- An object containing data to be transmitted with the URL request.

method:String
- Controls the HTTP form submission method. You can enter one of the following values:

  • GET
  • POST

Returns

Nothing.

Description

Sends a URL request to a server, but ignores any response.


download(url:String, filename:String) : void

Usage

URL.download('http://dev.illumifi.net/wp-content/uploads/2010/04/XMLLoader_as3_class_1.0.0.zip');

Parameters

url:String
- The file to download

filename:String
- The new name of the file. This can be null.

Returns

Nothing.

Description

Downloads a file and displays “Save File” dialog before downloading.



You must be logged in to post a comment.