Section 1
//MainTimeline (OCVIDEO_fla.MainTimeline)
package OCVIDEO_fla {
import flash.events.*;
import flash.display.*;
public dynamic class MainTimeline extends MovieClip {
public var replayb:MovieClip;
public var pauseb:MovieClip;
public var playb:MovieClip;
public var vid:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1);
}
function frame1(){
pauseb.visible = false;
playb.addEventListener(MouseEvent.CLICK, playvid);
pauseb.addEventListener(MouseEvent.CLICK, pausevid);
replayb.addEventListener(MouseEvent.CLICK, replay);
}
public function replay(_arg1:MouseEvent):void{
vid.gotoAndPlay(2);
}
public function pausevid(_arg1:MouseEvent):void{
vid.stop();
playb.visible = true;
pauseb.visible = false;
}
public function playvid(_arg1:MouseEvent):void{
vid.gotoAndPlay((vid.currentFrame + 1));
playb.visible = false;
pauseb.visible = true;
}
}
}//package OCVIDEO_fla
Section 2
//video_1 (OCVIDEO_fla.video_1)
package OCVIDEO_fla {
import flash.display.*;
public dynamic class video_1 extends MovieClip {
public function video_1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package OCVIDEO_fla