School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 306,988 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,950 people online right now. Registration is fast and FREE... Join Now!




Swap Images in Fireworks

 
Reply to this topicStart new topic

> Swap Images in Fireworks, Using Slices

firebolt
Group Icon



post 5 May, 2009 - 11:15 PM
Post #1


The example shown was created in Fireworks MX 2004 and the result may differ with other versions of Fireworks.

We will create a simple swap image tutorial example swaping a shape with different colors. To start off, we need to create our design. I have made 3 rectangular buttons left of a large rectangle which will become the swap image. The design will be simple like the below image.
Attached Image

Save the image as a .png and name it appropriately. Now we go over to the right, and focus on the Frames and History window. In the frames window, click on the small button at the top right which looks like a list and click duplicate frames.
Attached Image

In the opened window, just click ok and repeat the process again. Now you will have three Frames. Click on the second frame and you will see a blank page. Go to File, Import and find the image that you have used for the first frame. Repeat this for the third frame.


After we have created our design, we will need to create slices. Slices are used to link images, swap images, create the status bar message and other simple yet effective actions. To insert a slice, we right click the first button and click Insert Slice.
Attached Image

By default, a green shape of the same shape will now appear over the selected image. Do this for the other two images as well as the larger rectangle. However, the other two frames will not need to be altered. Refer to diagram.
Attached Image

Now we need to link the buttons to the main image viewer, the larger rectangle. What we do is simply select the slice and a small circle will appear in the center of the button slice. Click and hold and drag your mouse to the larger rectangle. A faint line will appear, like the below image, and that is to show a connection. Right after dragging, a message box will appear. It will ask to link the button to which frame. Select the frame corresponding to the button and click the More Options and in that, uncheck the Restore image on mouse out. Repeat for the other two frames.
Attached Image

To test it out, press F12 and it will open in a web browser.
Thanks.

Go to the top of the page
+Quote Post


Register to Make This Ad Go Away!


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 11/21/09 05:40AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month