More information about the Underscore mailing list

[_] actionscript video embedding

Alex Stanhope listalex at lightenna.com
Tue Jun 19 15:39:25 BST 2007

>
> This worked okay for me:
>

Hi Tim, thanks for replying.  I tried your exact code below (copying the 
skin into the output dir) and it didn't work for me, which points to a 
problem with my setup.  I'm testing in Flash 8 Professional (ctrl + return) 
and I get an output window with a white background, a blue triangle but no 
video.  When you say it works for you, I'm presuming you get the video of 
the water.

> /*
>  * start (ActionScript in frame 1)
>  */
>
> import mx.video.*;
>
> var fish = this.createEmptyMovieClip('fish',200);
> with(fish)
> {
>    moveTo(0,0);
>    beginFill(0x0000FF)
>    lineTo(163,200);
>    lineTo(93,280);
>    lineTo(0,280);
>    endFill();
> }
>
> var flvPlayback = fish.attachMovie("FLVPlayback", "flvPlayback",
> fish.getNextHighestDepth(), {width:320, height:240, x:100, y:100});
> flvPlayback.skin = "ClearOverPlaySeekMute.swf"
> flvPlayback.contentPath = "http://www.helpexamples.com/flash/video/
> water.flv";
>
> // end
>
> I copied "ClearOverPlaySeekMute.swf" into the same location as the
> swf I was outputting.
>
> Tim.
>
> -- 
> underscore_ list info/archive -> http://www.under-score.org.uk
>