SWF::Builder::MovieClip - SWF movie clip object.
my $new_mc = $movie->new_movie_clip; my $mc_shape = $new_mc->new_shape ->moveto( ... )->lineto( ... )... $mc_shape->place; my $mc_i = $new_mc->place; $mc_i->on('EnterFrame')->r_rotate(10);
Movie clips are sub movies which can be included in other movie clips. They have their own timeline, child instances, and actions. An SWF::Builder::MovieClip object has character constructors and other methods for movies. See SWF::Builder. Each instance of movie clip objects can have clip actions.
returns a new movie clip.
Character constructors. See SWF::Builder.
returns the display instance of the movie clip. See SWF::Builder.
sets a clip action to the movie clip instance and returns SWF::Builder::ActionScript object for it. See SWF::Builder::ActionScript for the details of the actionscript. The method 'on' and 'onClipEvent' is same for movie clip instances.
Supported events are described as follows:
The movie clip is loaded.
Entering each frame.
The movie clip is unloaded.
The mouse is moved.
A mouse button is pressed.
A mouse button is released.
A key is pressed.
A key is released.
Data received.
The movie clip is initialized.
A mouse button is pressed while the mouse is inside the movie clip.
A mouse button is released while the mouse is inside the movie clip.
A mouse button is released while the mouse is outside the movie clip after the mouse button is pressed inside.
The mouse enters the movie clip while the mouse button is up.
The mouse leaves the movie clip while the mouse button is up.
The mouse enters the movie clip while the mouse button is down.
The mouse leaves the movie clip while the mouse button is down.
The key specified by $key is pressed. $key is an ascii character or one of the special keys as follows:
<Backspace> <Delete> <Down> <End> <Enter> <Home> <Insert> <Left> <PgDn> <PgUp> <Right> <Space> <Tab> <Up>
Copyright 2003 Yasuhiro Sasama (ySas), <ysas@nmt.ne.jp>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install SWF::Builder, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SWF::Builder
CPAN shell
perl -MCPAN -e shell install SWF::Builder
For more information on module installation, please visit the detailed CPAN module installation guide.