Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tell Target

Status
Not open for further replies.

Dayzee

Technical User
Apr 24, 2001
18
GB
howdy there

i have an assignment to do that involves a fair few falsh elements but what i am curious about is tell targets. i am not sure what they are.

I have created a scene where the user can open and close a curtin by clicking on a button. There if course is things inside but they are not important.

Would this open and closing curtin be classed as a tell target?

Thanks in advance for your help

Dayzee
 
I think (though I'm sure to be corrected if wrong :) ) that tellTarget is used to tell another movieClip what to do (or more technically applies a command to the given m/c instance), as the Flash help reference puts it..


This tellTarget statement controls the movie clip instance ball on the main Timeline. Frame 1 of the movie clip is blank and has a stop action so that it isn't visible on the Stage. When the button with the following action is clicked, tellTarget tells the playhead in the movie clip ball to go to frame 2 and play the animation that starts there.

on(release) {
tellTarget("ball") {
gotoAndPlay(2);
}
}


Which in English means that it is telling the target m/c 'ball' to goto and play frame 2.

=)

PetitPal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top