PDA

View Full Version : Having a problem with button animation


AaronClark
02-23-2005, 06:49 AM
My website:

http://www.nightvisionpgh.com

I can't get the media button to work properly. I created it over and over again exactly as I did the other buttons, but I'm obviously forgetting something, and I can't figure it out. The buttons are saved as movie clips. They should show up in the timeline when you load my flash file. The accompanying actionscript is in the timeline with the buttons, right up top. If anyone wants to pick apart my website and help me figure it out, here's the link

http://www.nightvisionpgh.com/earthtones.fla

This is frustrating the hell out of me, because I've re-tried everything a ton of times and I have no clue what's wrong with it. Any help would be appreciated!

Tilly
02-23-2005, 04:41 PM
I've downloaded your fla, and I've got it working now... check the path of your clips in the action panel by pressing the target path button, you'll see the mediabtn twice, once between brackets...this means the btn has no instance name assigned. Assign one via the panel, et voila, your button works!

AaronClark
02-23-2005, 07:55 PM
I'm not following you on where I'm supposed to do this at. When I actually click on the button with the black arrow and look at the instance name, it has "btn_mcmedia" assigned to it already. Sorry, I'm still new to all of this stuff.

The target path button is the one that looks like crosshairs correct? Once I click that button what am I supposed to do with the "insert target path" dialog box that pops up?

jessup
02-24-2005, 07:47 AM
k here is your problem

... on your timeline u have a tween for the btn_mcmedia button... the last keyframe and till the end of your timeline the instance name is btn_mcmedia fine great rock on

but the first keyframe of that tween, there is no instance name... once u put btn_mcmedia in for its instance name in the properties panel the button works fine....

Tilly was correct u simply forgot to assign an instance name in the first key frame of your tween. just paste btn_mcmedia and it works.....


good luck

AaronClark
02-24-2005, 08:07 PM
AWESOME! Thank you guys. I knew it was something simple like that.