Copying the video to create a reflection


show more Copying the video to create a reflection provides you with in-depth training on Web. Taught by Todd Perkins as part of the Flash CS3 Professional Beyond the Basics show less
please wait ...

Copying the video to create a reflection

Now we'll take our bitmap object and have it play along with the video on the stage. If you're following along, I'm working in 07_Copying_Video.fla in the Chapter 08 folder in the Exercise Files folder. Let's select the first keyframe in the actions layer. Open the Actions panel by pressing Option+F9 on the Mac or F9 on the PC. At the very bottom of your code let's add an event listener to the stage. So type staged.addEventListener and the event will be Event.ENTER_FRAME, all caps. We'll run a function called drawReflection.

And below the variables that we created, let's define the draw reflection function. Create a function called drawReflection. It will receive an event with a type of Event. And this function and we'll simply call videoData, capital D, dot draw and we'll pass in video_mc. Now this is doing the same thing that we did in my code on line 9, where we connect the content of our video on the stage to our bitmap data object. And this is red...

Copying the video to create a reflection
Video duration: 1m 35s 5h 21m Intermediate

Viewers:

Copying the video to create a reflection provides you with in-depth training on Web. Taught by Todd Perkins as part of the Flash CS3 Professional Beyond the Basics

Subject:
Web
Software:
Flash Professional
Author:
please wait ...