Tell targets and animated rollovers

hello,

I would like to achieve a similar effect like that found in this tutorial:

http://www.kirupa.com/developer/flash5/telltarget.htm

But I’m using flash MX 2004 and I’ve read that tell targets are deprecated. How do I do this in flash MX 2004 the correct way? What has replaced tell targets??

sorry if this question seems basic…

[AS]on (rollOver) {
mcInstanceName.gotoAndPlay(“frame_label”);
}[/AS]It’s not that much different, you just place the Movie Clip’s Instance Name before the gotoAndStop/Play command.

In that tutorial’s case it would be:[AS]on (release) {
cheese.gotoAndPlay(1);
}[/AS]

Thanks! Thats easy enough. two questions than.

  1. What code would I write if I wanted to stop the cheese animation when I click the same button?

  2. How would I create animated button? kind of like that found on the following sites:
    http://www.zenfestival.com/ (the home, contact and sound buttons)
    http://www.void.pt/void.php?lng=en (the main navigation buttons)

When I say how do I create buttons like these sites, what I mean is how do I create a button where the button itself is animated on a rollover?

Q. #1) I’m not sure how to do that using the same button, though I’m pretty sure there’s a way. Obviously you could do it using two buttons, but that’s not what you asked for… try doing a search, I’m positive its been asked before.

Q. #2) zenfestival.com - This one’s pretty simple: The way it’s set up is they put a Movie Clip on the OVER frame/state of the buttons. So when the user mouses over the button (Over state) the MC within the button is played continuously. And they used a Mask in the MC too.

void.pt - In this one it looks like they used a Movie Clip as a button, which means it’s simply a MC with Button actions on it (on rollOver, rollOut). You have different “sections” in the MC. One section is the rollover, the other is the “rollout” and so on. This is the script you would use on the Movie Clip:[AS]on (rollOver) {
this.gotoAndPlay(“frameLabel”);
}[/AS]The only difference in ActionScript here is that instead of using Instance Names to target the MC, since you’re placing the actions on the clip itself you would target it by using this.

Hope this helps.