You can use the
loadClip()
MovieClipLoader listener objects are passed to the loading target movie clip instance as a
parameter. Alternatively, you can create a different
you load.
Use
MovieClipLoader.unloadClip()
or to cancel a load operation that is in progress.
MovieClipLoader.getProgress()
not report the actual
files are local. When you use the Bandwidth Profiler feature in the authoring environment,
MovieClipLoader.getProgress()
report the download at the actual download rate, not at the reduced bandwidth rate that the
Bandwidth Profiler provides.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
- The absolute or relative URL of the SWF or JPEG file to be loaded. A relative
url:String
path must be relative to the SWF file at level 0. Absolute URLs must include the protocol
reference, such as http:// or file:///. Filenames cannot include disk drive specifications.
- The target path of a movie clip, or an integer specifying the level in Flash
target:Object
Player into which the movie will be loaded. The target movie clip is replaced by the loaded
SWF file or image.
Returns
- A Boolean value. The return value is
Boolean
otherwise the return value is
Example
The following example shows you how to use the
creating handler for the
The following code should either be placed directly into a frame action on a timeline, or
pasted into a class that extends MovieClip.
Create a handler method for the
public function onLoadInit(mc:MovieClip):Void {
trace("onLoadInit: " + mc);
}
534
ActionScript classes
method to load one or more files into a single movie clip or level;
to remove movies or images loaded with this method
and
MovieClipLoaderListener.onLoadProgress
and
bytesLoaded
bytesTotal
and
MovieClipLoaderListener.onLoadProgress
.
false
event and then making the request.
onLoadInit
onLoadInit
MovieClipLoader
values in the Authoring player when the
if the URL request was sent successfully;
true
MovieClipLoader.loadClip
event.
object for each file that
do
method by
Need help?
Do you have a question about the FLASHLITE2 ACTIONSCRIPT-LANGUAGE and is the answer not in the manual?