|
|||||||||||||||||||||||||
|
|
slideplayer.api.ISlideController Interface
The ISlideController interface is exposed by each standalone
slide. It provides the following methods.
SamplesThe following example illustrates how to load a flash slide and get its ISlideController interface.
import slideplayer.api.*;
System.security.allowDomain("*");
// create a movie clip where slide will be loaded
var slideMC1:MovieClip = this.createEmptyMovieClip("slide1", 1);
// load slide with name slide1.swf into slideMC1 movie clip
var ml:MovieClipLoader = new MovieClipLoader();
ml.addListener(this);
ml.loadClip("slide1.swf", slideMC1);
var g_slideController:ISlideController;
// this function is invoked by MovieClipLoader when the loaded Flash slide is initialized
function onLoadInit(target:MovieClip):Void
{
// now we can get ISlideController interface and access its methods
g_slideController = target.getSlideController();
}
DemoThe following demo illustrates standalone slide loading and playback control via IPlaybackController interface. See alsoIHyperlinksManager
Interface |
|||||||||||||||||||||||
|
|||||||||||||||||||||||||