Home / Articles / Adobe Dreamweaver / Using the Image Viewer in Dreamweaver MX 2004

Using the Image Viewer in Dreamweaver MX 2004

Contents

  1. Using the Image Viewer

Article Description

In this article you will learn to use the Image Viewer Flash Element to create an interactive slideshow for your Web site with Macromedia's Dreamweaver MX 2004.

Flash Elements are a new feature in Dreamweaver MX 2004 that enable you to quickly add interactivity to your pages. The Image Viewer Flash Element creates a slide show interface that you can use to present a series of images. This interactive presentation format, which can be configured easily within Dreamweaver, gives you a variety of options including the ability to set captions and links for each image in the slide show.

NOTE

The Image Viewer is the only Flash Element that Dreamweaver MX 2004 initially contains. Additional Flash Elements may be created in the future by Macromedia or third-party developers and made available through the Dreamweaver Exchange.

1) Open lightshow.htm from the DWMX2004_Viewer folder. Choose the Flash Elements category on the Insert bar and click the Image Viewer button.

Figure 1Figure1 The Save Flash Element dialog box opens.

2) Type lightshow into the Save as text field and save the file into the DWMX2004_Viewer folder.

The Image Viewer Flash Element file is saved and Dreamweaver automatically adds the required .swf extension.

The Image Viewer appears in the document window as a large gray placeholder with the Flash icon in the center.

Figure 2Figure2

3) Click the Play button on the Property inspector.

Figure 3Figure3

The Image Viewer now appears in the document window with default settings. A control bar is located at the top of the Image Viewer, which contains a blank area to the left for a title; a text field that displays the number of the current image and allows the user to type in a number and jump to a different image; and three buttons—Back, Play/Stop, and Forward. Below the control bar is the image area.

Figure 4Figure4

4) In the Tag inspector, click the Color picker for frameColor and choose the #666666 gray.

You will do the majority of the configuration for the Image Viewer in the Tag inspector. The Tag inspector opens automatically when the Image Viewer is inserted and displays the initial default settings for this Flash Element. When the Image Viewer is selected the title of the Tag inspector panel will be Tag <object>.

TIP

If the Tag inspector is collapsed, click the Expand/Collapse button to the left of the name to expand it. If you do not see the Tag inspector, choose Window > Tag Inspector.

Figure 5Figure5

The frameColor option determines the color of the border that outlines the Image Viewer. The control bar uses several different shades of gray, and the #666666 gray color matches the darker shades. Once you select a color the Flash Element may automatically switch back to the placeholder image in the document window. In the following steps you'll continue to configure the Image Viewer before making it visible in the document window again.

5) In the Tag inspector, click the (No) value for the frameShow option to make menu buttons available. Click the menu that appears and select (Yes).

Figure 6Figure6

The frameShow option turns the border option on for the Image Viewer.

6) In the Tag inspector, click the value field for frameThickness and change it to 1, then press Return (Macintosh) or Enter (Windows) to apply the change. Click the Play button on the Property inspector to see the Image Viewer again in the document window.

The border is now set to a width of one pixel and you can see the gray outline around the Image Viewer.

The background color of the Image Viewer, defined by the bgColor option in the Tag inspector, is set to white by default. You should leave the background color set to white for this exercise.

7) Click the value field for the imageURLs option in the Tag inspector, then click the Edit Array Values button that appears at the right of the text field.

The imageURLs option defines the images that the Image Viewer will contain. You need to use this option to specify the location of the images.

NOTE

A series of values in Flash Elements is called an array. The Image Viewer uses arrays for the image, caption and URL options.

Figure 7Figure7

The Edit 'imageURLs' Array dialog box opens with three default images defined. Because there are no images with these file names in the Lights of the Coast project site, these default images are not functional.

Figure 8Figure8

8) Select the first image in the list and click the folder that appears to the right of it. Use the Select File dialog box to browse to the DWMX2004_Viewer/Images folder and select arena_photo.jpg.

The values, which are the paths to the images, will be contained in single quotes—these quotes must be included for the Image Viewer to work properly.

9) Repeat step 8 to replace the second and third default image values with the bonita_photo.jpg and bridge_photo.jpg images. Click the plus (+) button to another value field and select the fort_photo.jpg image. Continue to add additional value fields and set their sources to montara_photo.jpg, pigeon_photo.jpg, and reyes_photo.jpg. Click OK to close the Edit 'imageURLs' Array dialog box.

TIP

You can also press the Tab key to create add another item to the list when the insertion point is in the last value.

Figure 9Figure9

You now have seven images defined in the Image Viewer.

10) Click the value field for the imageCaptions option in the Tag inspector, then click the Edit Array Values button that appears at the right of the text field. Type 'Point Arena' in the Value text field. Press tab or use the plus (+) button to insert additional value fields while adding the following captions: 'Point Bonita', 'Golden Gate Bridge', 'Fort Point', 'Point Montara', 'Pigeon Point', 'Point Reyes'. Click OK.

Figure 10Figure10

Like the image values, the captions must contained in single quotes for the Image Viewer to work properly.

When creating captions you need to add caption text in the same order that the images were added. If your image and captions are not listed in the same order, your captions may not match up correctly with their corresponding images.

NOTE

You can control the color, font face and size of the captions using the captionColor, captionFont, and captionSize options on the Tag inspector, respectively. For this exercise you should leave the caption formatting options at their default settings.

11) Click the value field for the title option in the Tag inspector, then type Lighthouses into the text field and press Return (Macintosh) or Enter (Windows). Click the Play button on the Property inspector to see the Image Viewer again in the document window.

The title is placed in the space on the left of the control bar.

NOTE

You can control the color, font face and size of the title using the titleColor, titleFont, and titleSize options on the Tag inspector, respectively. For this exercise you should leave the title formatting options at their default settings.

By default, the transitions between images are set to Random. You can modify the transition effect and choose a single transition by clicking the transitionsType value text field and choosing an option from the menu. Leaving the transition value set to Random for this exercise will allow you to see the different transition effects when you preview the page in a browser or use the control bar buttons to view the images in Dreamweaver.

Your document should now look like the following example.

Figure 11Figure11

NOTE

Also by default, the first three images are linked to http://macromedia.com. You can add, change or remove links by clicking the imageLinks value text field and then clicking the Edit Array Values button. The Edit 'imageLinks' Array dialog box is like the ones you used to set the images and captions. Each URL must be contained by single quotes. Just like when adding captions, you need to take care to add links in the same order of the images so that the links correspond with the appropriate images. Targets define where the links will be opened and can be set through the imageLinkTarget option, the default is _blank which causes the links to open in a new window.

12) Use the Property inspector to change the width of the Image Viewer by typing 300 into the W text field. Press Return (Macintosh) or Enter (Windows) to apply the change.

Figure 12Figure12

The size of the image viewer in the document window is reduced.

13) Click off of the Image Viewer in the document window to deselect it. Save the document, preview it in the browser and test the Imager Viewer.

You must deselect the Image Viewer in order to save the document. You can close the lightshow.htm document when you are done viewing it in the browser.

Adobe Press Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Adobe Press and its family of brands. I can unsubscribe at any time.

Overview

Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Adobe Press products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information

To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email ask@peachpit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information

Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security

Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children

This site is not directed to children under the age of 13.

Marketing

Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information

If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out

Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.adobepress.com/u.aspx.

Sale of Personal Information

Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents

California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure

Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links

This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact

Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice

We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020