10. Select Frame 1 in the Timeline and (Web hosting ratings)
10. Select Frame 1 in the Timeline and enter the following code in the Script pane of the Actions panel: myEvent2 = new Object(); myForm2 = new Object(); myForm2.click = function(myEvent2){ if (myEvent2.target.selected){ gotoAndPlay(20); } } myCheckBox.addEventListener( click ,myForm2); stop(); You can replace myForm2, myEvent2, and myCheckBox with any names that you like. myCheckBox in this example is the instance name of your check box. You might not need the stop() action in the last line of the code, depending on what you want your movie to do. We assume in this example that you want the movie to wait in Frame 1 for the user to press a button or mark the check box, so for that you would want to stop the action in Frame 1. Lines 1 and 2 of the preceding code create new little bundles of methods and properties named myEvent2 and myForm2. Line 8 adds an event listener to myForm so that when you mark the check box named myCheckBox, the code in Lines 3, 4, 5, 6 and 7 causes Flash to go to Frame 20 and start playing there. An event listener is a little bit of software that checks for events generated by one object and notifies a second object when they occur. So the code in Line 8 sets up an event listener that notifies a function named myForm2 whenever myCheckbox has been clicked. In the code in Lines 3, 4, and 5, whenever myForm2 receives a message that myCheckbox has been clicked, myForm2 checks to see if myCheckbox was selected or deselected, and if myCheckbox was selected, then Flash goes to frame 20 and starts playing there. Lines 4 and 5 of the code show an example of how to set the Flash playhead to move to another section of the movie if the viewer selects the check box. You can replace this line with other ActionScript code to make the movie do something else when the viewer selects the check box. Using combo boxes in a Flash movie A combo box is text box that shows the current selection, combined with a drop-down list of possible selections. To use combo boxes in your Flash movie, follow these steps: 262 Part V: The Movie and the Web
From our experience, we are can tell you that you can find a reliable and cheap webhost service at Java Web Hosting services.