Using the 3D Plane with external files

1. Start a new Flash MX movie and save it under the name 'scroller3d.fla'.

2. Create a new MovieClip and give it a name and linkage name, for example, 'mc2'.

3. Add this code to the first frame of 'mc2' movie:

this.createEmptyMovieClip("holder", 1); //create a holder in which to load the external file
System.security.allowDomain("www.flashloaded.com"); //use this to prevent security warnings in Flash MX 2004
holder.loadMovie("http://www.flashloaded.com/products/ultimatescroller/demo.swf"); //load the external file
holder._x = -385/2; //align it to the center: width/2
holder._y = -225/2; //height/2

Any content can be loaded from external files and be made into 3D. For example: swf, jpg, an flv containing graphics, animation, video, audio or navigation.

4. Go back to the main timeline and drag an instance of the 3DPlane from the Components Panel onto the stage.

5. Test your movie (ctrl-enter) to create an swf which will create the 'mc2' linkage for advanced live preview.

6. Enter the linkage name of the target movieclip in the content property of 3DPlane component ('mc2').

You should now see something like this:
(Note: you need an Internet connection to view this external file).

7. Test your movie and check that it works correctly.

You may notice that in the above example, if you try to interact with the content of the actual target movie, for example, in this case, you may try scroll the content, the scrollable content and the 3DPlane rotate together, making it difficult to control. See the section "Customizing the mouse behaviour and active area" for the solution for this.