Test Movie
When we complete writing code, the next step is compiling it. This ensures that the program is correct and working. To compile, select 'test movie' from the control menu. (02 Tip: instead of using the menu, simply press Control/Command-Enter.) A new panel opens up and streams the video. But this requires the right procedure to make sure that the movie is played. One must also remember that if only one files is open (main.fla for instance) then the same file is compiled. But when multiple files are open and you're in some other file, then the compiler compiles the file which is specified in 'Target' (found at the top right of the .as file.)
Video Transcript
00:00Every time when we add some code, we're going to go into our control
00:04test movie and now again our menus are a bit wonky, so I'm going to select my
00:11window again and go to control test movie. Control test movie is where I'm going to actually publish myself.
00:17I'm going to actually compile the code and see what happens. Right now if I test the movie, I'm just going to see an empty Swift.
00:25So it's exporting my Swift movie and you see that nothing really is going on.
00:31But that's going to change real soon.
00:33Any time I would click on my command enter on my Mac, it's going to compile my movie.
00:42I just have to make sure that I'm linked to the right FLA, so as long as I have only one file open,
00:47if I'm in the FLA, it's going to compile this FLA.
00:50If I'm in the AS file, it's going to compile whatever the target is in my main.FLA.
