| |
|
HOW TO CREATE AND LOAD AN EXTERNAL/SUB MOVIE |
| 2. |
Open up your Library (ctrl L). |
| 3. |
Create an empty movie symbol. |
| 4. |
Drop the movie symbol where you would like the movie to play - on the main timeline. The movie symbol will appear as a single dot in Flash. This is a placeholder for the movie file, representing the upper left hand corner of the loaded file. |
| 5. |
Select the movie symbol and view the "Properties" panel for this movie symbol. Now give this instance of the movie symbol a name, in the field containing <Instance Name> . This is the name you will use to reference the movie clip when loading in external files. |
| 6. |
Using the instance name for the movie symbol you assigned in the previous step, you can now set up Actionscript for loading in external files. You can trigger this Actionscript to run using a button, so that the external load is user-initiated.
on (release){
loadMovie(_level0.moviePath, "[instance name]");
}
For example, if our movie symbols instance name was "videoAd":
on (release){
loadMovie(_level0.moviePath, "videoAd");
}
|
 |
| 7. |
General Tips:
- In the above ActionScript, _level0.moviePath will correspond to a variable which we will set up in our ad system. This allows us to host your video file and declare the path to that file in our Flash code, which prevents us from having to edit your Flash files. In testing, you may substitute "_level0.moviePath" with a direct reference to your outside movie file (for example, "video.swf"), but prior to submitting the creative this ActionScript should be set up as _level0.moviePath to avoid requiring revisions.
- Your outside movie file will appear within your Flash file just as it appears outside of that file. If you wish to crop it a certain way, you may want to place a masking layer above.
- Movies loaded in this fashion are progressively downloaded; the larger the movie's file size, the longer the delay between the user-initiated play and when the video begins playing. For the best user experience, try to keep the video's file size as low as possible. This can be achieved by lowering the frame rate or by using various methods of compression.
|
|