• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Adding a Behavior

In these next steps, you will identify the frame that is associated with each month. The process is as easy as dragging from one slice and dropping onto another.

Select the slice for January.

The center marker (the behavior handle) makes it easy to add the interactivity to this button. If you are familiar with Dreamweaver, you'll recognize the icon that appears when you click the slice. In Fireworks, you use this handle to point to the slice over the image you want to swap out when the user rolls over the button.

Drag the behavior handle from the January slice to the slice on the image to create the disjointed rollover.

You'll see a blue line connecting the two slices, and the Swap Image dialog box will appear.

In the Swap Image dialog box, choose the frame that stores the rollover image. For this exercise, the January image is drawn in Frame 2, so choose Frame 2. Click OK.

Repeat steps 1 through 3 for the slices on the remaining months.

As you drag the behavior handles on the slices to the image slice, remember that Frame 1 contains the starting image. The month number (1 through 12) corresponds to the frame number plus one. Therefore, January goes in Frame 2, February goes in Frame 3, and so on.

Save your file; then click the Preview tab to see your rollovers.

Roll over each month and see if the starting image changes to a new image. When you roll over another month, the image swaps to that month's image. When you roll off the months, the image returns to the starting image.

If you have the same image in two months, then you chose the same frame in the Swap Image dialog box. Click the Original tab and redo those months. Just drag the behavior handles as you did originally and choose a new frame number.



Not a subscriber?

Start A Free Trial

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint