MovieClip.loadMovie( ) Method

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference
MovieClip.loadMovie( ) Method Flash 5; Flash 6 adds .jpg loading and security restrictions

load an external .swf file into the Player
mc.loadMovie(url) mc.loadMovie(url, method)

Arguments

url

A string specifying the location of the external .swf or .jpg file to load.

method

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

Description

The MovieClip.loadMovie( ) method is an alternative to the global loadMovie( ) function. When invoked as a MovieClip method, loadMovie( ) does not take a target parameter; it loads the .swf or .jpg from url into mc. The MovieClip method syntax is less prone to user error than its global function counterpart because no target parameter is required.

For usage instructions, see the global loadMovie( ) function.

See Also

loadMovie( ), loadMovieNum( ), MovieClip.getURL( ); Section 13.7

     
       About Safari   |   Terms of Service   |   Privacy Policy   |   Contact Us   |   Help   |   Submit a Problem
    Copyright 2002 O'Reilly & Associates, Inc. All rights reserved.
    1005 Gravenstein Highway North
    Sebastopol, CA 95472
     


    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