ABSTRACT

We have completed the basic classes for the database. We can perform a search and see the result in the form of a scrollable display. However, if we have a large number of displays, do we want to scroll all the way to the last display? To avoid that, we will introduce a “next so and so many” and “previous so and so many” system, whereby the user presses a button and can see the next row of displays. We limit the number of displays to 5, but that is completely up to the developer. We will add another feature, which is already familiar to us. We allow the user to press a button and have an XHTML page displayed that shows more details for a particular item. The third feature we will add is to allow the user to save all the searches. We use the shared object for that, which will save the data for a search on the user’s computer. This will give you an idea how to create a system to save data, and you will be able to use server-side scripts to allow saving data on a server. The scheme from Chapter 13 is now extended as shown in Figure 14.1. The new classes manipulate or interact with the houseDisplay MovieClips, including the class DisplaySaved, which triggers the display of saved items.