/ Published in: ActionScript 3
Expand |
Embed | Plain Text
// this is used to pass reference to the video size, to dynamically change the playback component size to the video dimensions // in the actionscript var thisVidWidthVar:String; var thisVidHeightVar:String; var thisVidSrc:String; var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters; // check to see if var exists, so it doesn't throw errors otherwise if (paramObj.thisVidSrc){ thisVidSrc = String(paramObj.thisVidSrc); thisVidWidthVar = String(paramObj.thisVidWidth); thisVidHeightVar = String(paramObj.thisVidHeight); } // object params <param name="FlashVars" value="thisVidSrc=videosrc.flv&thisVidWidth=640&thisVidHeight=480"></param> // flashVars on embed <embed flashVars="thisVidSrc=videosrc.flv&thisVidWidth=640&thisVidHeight=480" src="vidPlayer/videoplayer.swf" quality="high" bgcolor="#000000" width="640" height="480" name="videoplayer" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
You need to login to post a comment.
