This is a message.

Load plugins at runtime

Load plugins only when you need them

standalone demo

These plugins can be official Flowplayer plugins or they can be any Flash object that are coded with ActionScript. Both of these plugin types can be moved, resized and faded in & out. Here you can see a random SWF loaded in at the third second into the playback. The screen is animated simultaneously.

Typically this kind of animation is performed upon onFinish event but here we do it earlier so the effect will be shown earlier. The benefit of using the loadPlugin method this way is that you will only download files from the server only when they are needed. For large plugins this is really a necessity.

Configuration

The SWF is loaded with the loadPlugin method. You can supply optional plugin configuration as the third argument to this method. For random SWF objects this configuration can only consist of display properties.

flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.18.swf", {
// do not start automatically
clip: {
autoPlay: false,
autoBuffering: true,
 
// make things happen on 3rd second
onCuepoint: [3000, function() {
 
// load plugin from the server
this.loadPlugin("hello", "/media/swf/hello-world.swf", {
left: 0
});
 
// animate screen to top right corner
this.getScreen().animate({
top:5,
right: 5,
width: 200,
height: 130
}, 2000);
 
}]
}
 
});

JavaScript