PDA

View Full Version : Simple Flash Question


321
2005-02-02, 10:28 PM
Normally I wouldn't make a thread like this but, I've asked on IRC for three days now, looked at tutorials but couldn't find what I needed, and tried to find it out myself and it's due on Monday for school.

I have a picture of a tree and I want to make it so that when you hover over a certain part of the tree the name of that part will appear like if you hover over the top "crown" will apear on the screen.

Thanks for your reading and please help if you can.

Firefly
2005-02-02, 10:39 PM
You don't even need Flash for this, you can use rollovers in Macromedia Fireworks, a sister program to Flash.

321
2005-02-02, 10:53 PM
You don't even need Flash for this, you can use rollovers in Macromedia Fireworks, a sister program to Flash.

The only programs we are allowed to use are Flash and Photoshop :(.

Firefly
2005-02-02, 10:58 PM
Okay standby, writing up now.

Firefly
2005-02-02, 11:29 PM
-Trace the shape of each section of the tree you would like to have highlighted with the pen and other line tools. ( Do not fill the section)

-After you draw each section group it together.

-Once all the sections are drawn, right click and convert each to a button.

-Depending on how many sections you have to the tree there will be that many keyframes added in the timeline window. Do this by selecting the frames and right-clicking them select convert to keyframe.

-Add the discription text on each of the frames for your differents items.

-Right-click the buttons and add this code in the "Actions" window

on (rollOver) {
gotoAndStop(XX);
}
on (rollOut) {
gotoAndStop(1);
}


*note xx needs to be replaced with the desired frame number for the frame with the description of the part.*

-The code will make the desired text be displayed when the mouse is over the button and when the mouse moves it will return to the home frame or to the othe part of the tree selected.

Firefly
2005-02-02, 11:34 PM
http://www.theblackwidowcompany.net/imagez/consoleimagez/treez

In this directory you will find a.fla file and an .swf file. They are demos.

321
2005-02-02, 11:54 PM
When I highlight the highlight appears behind the image is this normal?

Mag-Mower
2005-02-03, 09:45 AM
321, what are you doing?

321
2005-02-03, 08:41 PM
Thank you Firefly it works :).