Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
After opening a FLA that was exported from InDesign, we need to test the file to see how well it works. InDesign has a Preview panel, but with Flash we need to test the movie. Testing a movie is a quick export in the background. It is pretty much the same process as using the preview panel inside in InDesign. To test the movie inside Flash, we need to go to the Control menu and go to Test Movie > Test. We can also hit Command+Return on the Mac or Ctrl+Enter on the PC. When you test your movie for the first time, you receive a warning about a text language error. Don't worry about this. The end user will never see this and it just refers to the fact that we're using a brand-new text engine.
We are going to hit Don't show again, and then click OK and we never going to have to worry about this error. As soon as we test the movie, the screen is going to be flashing like crazy. The current movie is just playing like a quick flipbook, flashing from slide to slide to slide. This really is unusable to the end-user. Right now, we can't stop it. We have to add a Stop command. We are to close this file, and now we need to add a Stop command. To add a Stop command, we need to use some ActionScript. Now the first time you hear the word ActionScript you might get a little scared, but don't worry. Using ActionScript is very easy inside Flash Professional CS5.
What we need to do is come over to the Code Snippet panel and inside the Code Snippet panel to add a Stop command is as simple as a double-click. We need to go into the Timeline Navigation folder, and we are going to go to Stop at This Frame and double-click our mouse. When we double-click our mouse the Actions panel is going to pop up and put in the Stop command for us. You also notice that there's a brand- new layer called Actions and there is a tiny little 'a' right here. This just means we've added an ActionScript for this particular frame which happens to be the Stop command. We need to repeat this for every single frame so I am going to jump to next frame and repeat the process.
We'll just double-click. We'll go the next frame, double-click, fourth frame, double-click, and finally the fifth frame we are going to double-click. Now that we have this done, we've written our ActionScript. Let's test our movie one more time and you'll see that it stopped. We are looking at the first frame and it's ready for interaction. In fact, if we mouse over we even have our button working, and it's ready to show the preview of the next page. Unfortunately, when we click that portion isn't working it. Adding a Stop command is often the first step required when creating a Flash document. Without it the Flash movie would play endlessly.
Now that the Stop command has been added it's possible to add more interactivity, including buttons, movies, and animations.
Get unlimited access to all courses for just $25/month.Become a member
117 Video lessons · 43770 Viewers
119 Video lessons · 54813 Viewers
65 Video lessons · 14982 Viewers
113 Video lessons · 83067 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.