Join Paul Trani for an in-depth discussion in this video Accessing the input data, part of Creating a First Web Site with Flash Professional CS5.
Once you have your input text fields in place, you then need to check to make…sure the user actually entered in information in these fields before sending…out the information.…So I'm going to select this contact form right here.…I'll just double click on it, so I'm inside of this Contact movie clip.…And let's just confirm a couple of these instance names.…For this first text field, it is called theName, then we have theEmail, then…we have theMessage.…
So those are the three text fields that I'm just going to check when you…click on the Send button.…But really what I need to do is I need to take this graphic and convert it into a button.…So I'll just select a graphic, drag it into the Library, and let's call it send…button, make sure the Type is of Button, and I'll click OK.…All right, with that button still selected, I can give it an instance name of send_btn.…Okay, so when you click on send_btn, I want to just check those fields.…
So I'm going to use code snippets to get me started with the code structure.…
- Understanding web design
- Creating buttons and web graphics in Photoshop
- Formatting text with the Text Layout Framework
- Using the Timeline
- Creating a custom looping animation
- Loading images in a gallery
- Creating invisible buttons
- Adding music and video to a site
- Customizing video playback controls
- Optimizing and publishing a web site
Skill Level Beginner
Q: I followed all the steps and suggestions in the "Adding a progress bar" video, but when I add the progress bar to my web site, I can’t remove it once the index.swf file loads up. The progress bar remains on the homepage and the rest of the pages. How do I make it disappear once the site loads?
A: To make it disappear, just make sure the progress bar is only in frame 1. If it’s on its own layer, then right-click on the 2nd frame in that same layer and select "Insert Blank Keyframe." That will make it disappear.
Q: Despite following the steps in the "Adding a progress bar" video, I cannot figure out how to keep the progress bar from appearing on a movie that has finished loading. How can I make the progress bar disappear?
A: Just add the red line below to the preloader.fla file. This will make the progress bar invisible: