-
Video actions
actionCommand( "stopVideo", id);
// stops video with inserted id number
// id: NUMBER - video id number (required)actionCommand( "playVideo", id);
// plays video with inserted id number
// id: NUMBER - video id number (required)actionCommand( "disconnectVideo", id);
// completely removes video component for desire video id number. Useful when video is need to be replaced on the same Movie Clip.
// id: NUMBER - video id number (required)actionCommand( "seekToTimeVideo", id, sec);
// jumps to selected time (to the part you wish to jump, video needs to be loaded completely)
// id: NUMBER - video id number (required)
// sec: NUMBER - time in seconds (required)actionCommand( "seekToCueVideo", id, cuePoint);
// jumps to selected cuePoint (to the part you wish to jump, video needs to be loaded completely)
// id: NUMBER - video id number (required)
// cuePoint: STRING - the name of cuePoint (required)getEditionInstance( "flvPlayer", id);
// returns player object if player is on pause or has playing status. Otherwise it returns undefined. Useful when you need to control video by yourself
// id: NUMBER - video id number (required)
-
Video connect
actionCommand ("connectVideo", id, name, width, height, object);
// connects video and Movie Clip
// id: NUMBER - video id number (required)
// name: MovieClip - instance name of Movie Clip (required)
// width: NUMBER - video width (optional)
// height: NUMBER - video height (optional)// object: OBJECT - parameters collection (optional)
// autoPlayMode: Boolean - is video auto play
// autoPlayDelay: Number - pause before playing video
// stopAfterPlay: Boolean - stop on last frame when video is finished
// repeat: Boolean - loop
// advancedFullScreen: Boolean - fullscreen video
// hideFullScreenButton: Boolean - hide button for fullscreen video
// volume: Number (0-100) - sets audio volumeExample:
actionCommand("connectVideo", 1111, this.movie.video,680, 360, {advancedFullScreen:true, volume: 50});
// ADVANCED OPTIONS
// playButtonLinkage: String - Linkage ID for replacing start-play button (ID is set in the menu.swf - developers mode)
// callback: CallBackObject - event is triggerd everytime the state of the movie changes (play, pause, stop, buffering...)
// callbackAfterPlay:CallBackObject - event is trrigered after the end of the movie
// callbackOnStopButton:CallBackObject - event is trrigered when STOP button is pressed
// callbackBeforeFullScreen: CallBackObject - event is trrigered before the window switches to fullscreen mode
// callbackAfterFullScreen: CallBackObject - event is trrigered after the window switches to normal mode (from fullscreen)Example:
var callback = {scope: this, func: "showMessage", args:[]};
actionCommand("connectVideo",1111,this.movie.video,680,360,{autoPlayMode:true,callbackAfterPlay:callback} );How to run an animation after the movie plays through:
var callback = {scope: this, func: "myAnimation", args:[]};
actionCommand("connectVideo",1111,this.movie.video,400,300,{autoPlayMode:true,callbackAfterPlay:callback} );
function myAnimation() {
// her is my animation
// when movie plays through
}How to run an animation when "STOP button" is pressed or movie plays through:
var callback1 = {scope: this, func: "myAnimation1", args:[]};
var callback2 = {scope: this, func: "myAnimation2", args:[]};
actionCommand("connectVideo",1111,this.movie.video,400,300,{autoPlayMode:true,callbackOnStopButton:callback1,callbackAfterPlay:callback2} );
function myAnimation1 () {
// when stop is pressed
}
function myAnimation2 () {
// when movie plays through
} -
Download samples
Sample, for inserting FLV video into eDition publication. Click HERE.
Sample, for all calback events. Click HERE.
Example within eDition for callback event Click Here




