Search

Embedding & Controlling Flash Video With Actionscript

0 views

Of late, there's no questioning the ubiquity of flash video on the web: Google, Yahoo, YouTube, etc.. Given this presence (and consequent validity) more folks and more folks are entering into Flash development. Thus, the trend in web video is a boon to development, but in what vein? Inherently, video needs a method of playback; a VCR, if you will. Flash player is (technically) our VCR, though it needs a bit of molding, as it comes "buttonless." By this, I mean that one cannot simply embed a video and immediately have playback. Through Flash 8, Adobe provides a fairly simple method for importing clips. One adds pre-designed buttons and sliders by attaching a "skin" through an "import video" wizard. Options then include: streaming said flv from a Flash Communications server or offering it as a progressive download. Either way, an swf file is created, referencing the "skin" and the flv, effectively creating a "dedicated player" of sorts. This swf contains a hard link to that flv file (or stream) and the skin file forever... so for each production you'll have to manage three individual files! Sound a bit messy? The real power of Flash video is in the hands of Actionscript developers. While most tinkerers can embed a video, it's simply not a flexible or sophisticated method. What if you need to control playback via function calls? Nearly impossible. What happens when something changes? A reprocessing of all previously published swfs! What about a customized GUI? Anyone who's seen

Share this article

Comments (0)

Please sign in to leave a comment.

No comments yet. Be the first to comment!