Project Builder 1

Ultimate Tours wants to add pages to their website that will provide information for the Package Tour of the month.  The information will include the destination, features for various types of accomodations, and costs per week.  Ultimate Tours would like the pages to be interactive and allow the visitor to enter a name (which is displayed later), enter the number of adults (used to calculate the cost) going on the trip and select the type of accomodations (used to calculate the cost).  It would also like the pages to have some visual interest beyhond just a series of text and numbers so that it is engaging to the visitor.

Sample Solution

  1. Open ultimatetours8.fla (the file you created in Chapter 8 Project Builder 1) and save it as ultimatetours9_your username.fla to your Flash C9 server folder
  2. Change the Flash Publish Settings to Player 6
  3. Create a second page that will be displayed when the visitor clicks the sun navigation button on the home page--the second page is a movie clip
    [Hint:  To create a movie clip page, create a new movie clip symbol  and use the edit window to design the page--then return to the main Timeline, insert a keyframe where the new page will appear, drag the movie clip from the Library panel and align it on the Stage]
  4. Refer to the Sample Solution as you include the following on the second page--be sure to include all elements and to check spelling and punctuation
    a.  A background that is the same as the home page but that has been dimmed (e.g., set the brightness to 55)
    b.  A heading with the destination, Cozumel
    c.  A static text box with the text, 'Enter your name:' followed by an input text field that allows the visitor to enter a name
    d.  A static text box with the text, 'Enter number of adults:' followed by an input text field that allows the visitor to enter a number (the number of adults going on the trip)
    e.  Two buttons used to display the features of each type of accomodation (Deluxe and Standard)--when the Deluxe button is clicked a list of features appears and a variable is assigned a value that is checked when the calculation for the package cost is calculated--when the Standard button is clicked a different list of features appears and the same variable is assigned a different value that is checked when the package cost is calculated
    f.  A continue button that displays a third page
  5. Include the following on the third page
    a.  Same background and heading as on the second page
    b.   A dynamic text field that displays a message (such as Welcome) followed by the name from the input text field on page 2
    c.  A static text block that displays the words 'Total cost:  $'
    d.  A dynamic text field that follows the words 'Total cost:  $' and  displays a number that is calculated from the number of adults times the rate for the type of accommodation selected (2000 for Deluxe and 1500 for Standard)
    e.  The selected accomodation type and list of features
    f.  A home button that when clicked displays the home page
  6. The hierarchy for the movie clips follows:
    a.  The entire second page is a movie clip
          - The Deluxe room features
          - The Standard room features
  7. Buttons and their functions include:
    a.  A Deluxe button
          - Displays the features of the Deluxe accommodation
          - Assigns a value to a variable that is checked with the if statement in the Package Price button

    on (release) {
    with (this.RMfeatures) {
        gotoAndStop(2);
        room = "del";
    }
}

b.  A Standard button
      - Displays the features of the Standard accommodation
      - Assigns a value to a variable that is checked with the if statement in the Package Price button

               on (release) {

    with (this.RMfeatures) {
        gotoAndStop(3);
        room = "std";
    }
}

c.  A "Click to see your Package Price" button
      - Displays the Welcome text and name entered into the input field
      - Uses if statements to determine accommodation amount (2000 or 1500) to use in the calculation for the package cost
      - Calculates the package cost by multiplying the accommodation amount times the number of adults from the input text field
      - Calculates the display of the package cost in the dynamic text field
      - Jumps to a frame that displays the appropriate objects

               on (release) {

    nameout = "Welcome, "+guestin;
    if (room == "del") {
        pr = "2000";
    }
    gotoAndPlay(2);
    if (room == "std") {
        pr = "1500";
    }
    gotoAndPlay(3);

    {
        costout = adultsin*pr;
    }
}

d.  Home button
      - Displays the home page

  1. Save your work, then compare it to the Sample Solution
  2. Publish the movie
  3. Post to the Hulk server