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??
[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]
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.