PDA

View Full Version : Why doesn't this work


jefuchs
12-18-2001, 02:01 AM
I just started learning Flash last week. I created a simple animated logo for my homepage which displays my picture when the mouse passes over my name and my wife's picture when passing over her's. I did this by making a button which shows the picture as part of the button when rolled over. But I wanted to improve on this.

I re-did the logo moving the picture animations out of the button and onto the timeline. On roll over, the pictures should show. Easy, right?

Here's the problem. When the mouse rolls over my wife's name, nothing happens unless I have already rolled over my name. Macho hierarchy aside, this should not happen. It works fine as long as my name is the first one touched. It should work equally well on both. I suspect it has something to do with which one is first on the timeline, but that makes no sense. The gotoandplay action should just go to and play.

What am I doing wrong

You can download the file at

http://www.geocities.com/jefuchs/not-good.fla

Billy T
12-18-2001, 06:56 AM
you have 2 keyframes on the layer with the buttons

in the frame where the timeline stops, you have actions on your button but not on the other

remove the first keyframe and drag the keyframe next to it back one frame

cheers

jefuchs
12-19-2001, 01:44 PM
Exactly right, Billy. Thanks.

I need to spend more time using basic Flash features before I dive into actionscript, I guess.

Billy T
12-19-2001, 01:56 PM
sure...

try to avoid animating buttons like that - you end with keyframes all over the place...some with actions and some without etc

if you need to animate them then put them in a movieclip first, give them the actions in there, and then put the movieclip on the stage and animate that

cheers

Ricod
12-19-2001, 01:57 PM
And while you're at it, u may want to check out the forum rules.