Using advanced live previewThe most powerful feature of the 3DPlane is the "advanced live preview". It allows you to see the final picture of the 3D component directly in the Flash editor. Let's see how useful it is. 1. Start a new Flash MX movie. Save it as 'butterfly.fla'. 2. If you are using Flash MX, please skip to step 3. If you are using Flash MX 2004: Copy the file called '3D PlaneLive.swf', that was included with your download, and paste it in the same folder where you just saved 'butterfly.fla'. This file is necessary for the advanced live preview to work in Flash MX 2004. You do not need to upload the '3D PlaneLive.swf' file when you publish your site. It is used for the design process only. 3. Change the FPS to 30 to see smooth 3D motion (advisable for all movies in this tutorial). 4. Create a new MovieClip. Give it a name and linkage name 'mc1' as shown below.
5. Add any content into the 'mc1' movieclip. Let it be a bitmap of a butterfly in this case.
6. Go back to your main timeline and drag an instance of the 3DPlane from the Components Panel and drop it onto the stage. After you add the 3DPlane component in your movie but before you enter the target movieclip name in the 3DPlane properties, you need to compile your movie (create an swf file). This is necessary in order to share your library objects for the live preview. You can do this simply by testing your movie inside of Flash (Ctrl-Enter on Windows or Alt-Enter on Mac). 7. Click on the 'content' text field and enter the movieclip linkage name ('mc1').
You should now see the content of your 'mc1' movieclip on the stage.
Test your movie again to check that the final movie looks the same. Try drag and spin the butterfly with your mouse to check that the 3D engine is working correctly. You can change the location of the "advanced live preview" files on the third page of the 3DPlane properties (button '3' on the left side of the the 3DPlane properties window)
Library: This is the full path and name of the swf file for the current movie.
|