MovieClip.getURL( ) Method

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference
MovieClip.getURL( ) Method Flash 5

load a document into a browser window
mc.getURL(url) mc.getURL(url, window) mc.getURL(url, window, method)

Arguments

url

A string specifying the location of the document to load or external script to run.

window

An optional string, specifying the name of the browser window or frame into which to load the document. Can be a custom name or one of the four presets: "_blank", "_ parent", "_self", or "_top".

method

An optional string literal specifying the method by which to send the variables from mc to an external script. Must be either the literal "GET" or "POST"; no other expression is allowed.

Description

The MovieClip.getURL( ) method is an alternative to the global getURL( ) function. This MovieClip method form is useful only if variables are being sent via url to a server-side script, in which case getURL( ) sends the variables from mc, which does not have to be the current timeline. For general usage instructions, see the global getURL( ) function. For an object-oriented means of sending variables to a server, see LoadVars.send( ).

See Also

getURL( ), LoadVars.send( )



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net