|
Using Video |
|
Step 1
Create a new file in Adobe Flash (or your preferred SWF Authoring tool) and set the canvas size to 640x480. Select Frame 1, expand the Actions window and enter the following code:
myVideo = new mdm.WMP6 (0, 0, 320, 240, "myClip.mpg")
To load a video file into a custom size and position requires just one {mdm}Script™ constructor which has 5 parameters; X Position, Y Position, Width, Height and File. With {mdm}Script™, using constructors like the one above means you can create several instances and refer to them quickly and easily by their object name. In the example above, the name is "myVideo".
The above code assumes that there is a video file called "myClip.mpg" in the same folder as your projector. You can also specify an absolute path in the "file" parameter.
We have set the position to 0,0 which is the X,Y location from the Top Left hand corner of our movie. The Width and Height have been set to 320x240.