SayMedia总览

1 sayMedia有一个类包,需要的类都在里面。

2 video._activated

alwaysShowControls=false;

autoPlay=false;

autoRewind=false;

bgAlpha:Number;

bgColor:unit;

video.file :String

controlsLocked:Boolean

ctaKey:String

loopVideo:Boolean

externalControls:String

hideControls()

lockControls(a:Boolean);

currentTime:Number(get)

debug:Boolean

videoKey:String

isPlaying:Boolean

doVideoCTA();

duration:Number(get);

endState();

normalState() 

rewindVideo()

playVideo()

video.activate()-----deactivate()

vid.addEventListener("stopped", video_complete);//视频结束调用函数

function video_complete(e){

     isVideoStop = true;

    endCard.animHover.gotoAndPlay(2)

}

3 组件:

video

Slideshow 

4 常用代码

_currentName=root.loaderInfo.url.substring(0,root.loaderInfo.url.lastIndexOf('/'))+'/products.swf';

 this.getChildByName("detailMain_mc")).disposeVideo()

transitionIn()  transitionOut()  Interact()//移入 移出 点击

5外部链接 直接将影片剪辑的名字命名为 link_ 比如 link_bgClick

6 slideshow取得screen里的播放器:MovieClip(slideshow.currentSwf.content).screenContent.vid

原文地址:https://www.cnblogs.com/1000pen/p/2742270.html