Adobe Flash/Animate. Interactive foundation

Alejandra Jarabo
MAT 116

Media Arts & Technologies. Santa Barbara City College
LOADING AN EXTERNAL MOVIE 2

   

REMINDER:

This is how Loading external swf files into a main flash movie works: You build the basic interface for your project, with the content that is going to be needed to "beging rolling". You build other big scenes on the side: slide-shows, big Movie-clip symbols, high-resolution version of pictures, long sound-track sounds, and other media.
You build those on separate Flash documents (that produce separate swf files).

The "Main Interface swf file" (the mother file), will appear on the web embedded in a html document. Those 2 elements would be normally placed in a folder that goes straight ahead to the Server (Root folder).You will also place the swf files that will be loaded into the main one in THAT same folder.

The external swf (your Slide-show) does not carry the background color when it gets called inside a Main movie.
If the content excedes the Stage area (a big image zooming in, a text moving across the Stage from side to side)will be seen when loaded into a main swf.

   

THE EXTERNAL FILES:


In this page I am going to show you a simple way of placing all the external files together.
Your content for the different external movies might have already exist in separate Flash projects. In that case, you just put all the "fla" files together in a folder, export them to "swf" format one by one, and copy the all the swf files into the SAME folder where your Main-Interface movie, the root folder were the ("main swf" and the html file are located).

Given how frecuently you need to export those movies (2 to 5 times: you have forgotten to add something, you need to recompress or update a graphic, you have exported the movie with the wrong Stage-size, suddenly the script doesn't work...), I tend to reconstruct all those content-movies in just one Flash-document. This way I make sure that all external files have the same Stage dimensions and I cut down the chances of loosing files in the Production process.
To do this, select all the timeline in the original fla, copy frames, create a new scene in the destinatiin file, paste frames.

If you follow this method, place each content section in a separate scene.
Export the movies with the "Test scene command", change the name of the automatic document created for the scene, whith whatever desciptive name you need (this is the name that the main Movie will use to call it in the script).

Follow the description of how to use 1 flash project to organize all the external movies:

     

STEP 1.

Place
the movies
inside
different
scenes.

I have created a flash movie called "Movies_individual.fla".This movie has 4 scenes.
You can better control the scenes with the "Scene panel". show at: Window>Design panels>Scene.

Each scene has a Mask layer that masks all the Layers, this way we make sure that the movie is going to show INSIDE the 400 X 300 pixels windowwhen we play it loaded in the Main-movie.

 

 

 

 

 

 

 

STEP 2.

Export
each
scene

Export each scene using Control>test Scene.
This will automatically generate an swf file of your scene in the same folder where your "Fla" is located.

The name of this new file will be "Movies_individual_Scene3.swf", and it would correspond to
1.the name of the movie,
2.underscore sign,
3."Scene" and number, or the name of the scene.

   

STEP 3.

 

Go to the folder where your flash project is located and change the name of the new file (Movies_individual_scene3.swf), for something shorter and more descriptive.

Remember: No spaces, no extra dots, or special charaters.

   
STEP 4.

Make sure that the Main movie (in my case LOAD_EXT_MOTHER) has the correct names for the external movies in the Behavior-script.

Test the project by opening the "swf" of the Main movie in flash player, or dragging the html document to a Internet Browser (Fire fox, Safari, Internet Explorer, Netscape...)

If you don't know how to create a html document for your Main movie, open the movie in Flash and go to
FILE > PUBLISH
Flash will create an simple html document, with the same background color of your project, and placed in the upper-left corner of the page.

     
     

 

To see the main movie calling the external swf files on demand> click here