next up previous contents
Next: onMovieLoaded Up: Events Previous: Events   Contents


onGetMovie

Description

SWFKit triggers the event while it's about to load the main movie.


Syntax

Application.onGetMovie = function (movie)


Parameters

movie
An object which has a "value" property. You can specify the path name of your movie to this property.


Remarks

Generally, SWFKit loads the first movie in the movie list. But if this event handler returns true and "movie.value" is assigned with a movie name, SWFKit will load it instead.


Example

Tells SWFKit to load the "test.swf" in attachment list as the main movie

Application.onGetMovie = function (movie)
{
    movie.value = getAdditionalFile("test.swf");
    return true;
}




Copyright ©2000-2007 Shanghai TopCMM Software Technologies. All Rights Reserved.