topical media & game development
mashup-rmx-15-FlashComponent-RCaptionDO.ax
mashup-rmx-15-FlashComponent-RCaptionDO.ax
(swf
)
[ flash
]
flex
package
{
import flash.display.Sprite;
import fl.video.FLVPlaybackCaptioning;
import fl.video.FLVPlayback;
public class RCaptionDO extends Sprite
{
var cap:FLVPlaybackCaptioning;
var vid:FLVPlayback;
function RCaptionDO()
{
cap = new FLVPlaybackCaptioning();
vid = new FLVPlayback();
cap.flvPlayback = vid;
addChild( vid );
addChild( cap );
}
public function setupVideo( capSkin : String , capVidWidth : Number , capVidHeight : Number , capSource : String , flvSource : String ) : void
{
vid.skin = capSkin;
vid.setSize( capVidWidth , capVidHeight );
cap.source = capSource;
vid.play( flvSource );
}
}
}
(C) Æliens
18/6/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.