Unit 11 - Video

Working with Video

 

 

 

Code for main menu

//import Sound Mixer
import flash.media.SoundMixer;

//Put this in the function that does the navagations to pages

SoundMixer.stopAll();

Code for video thumbnail buttons. Do one for each thumbnail.

// set up thumbnail buttons

video_01_btn.addEventListener(MouseEvent.CLICK,playVid);

function playVid(evtObj:MouseEvent):void {
videoPlayer.source= "video/masada.flv";
videoPlayer.play();

}

Homework

s

Create your own web page with video inside using a navigation system that you design.