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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MC timeline function to act on multiple instances

Status
Not open for further replies.

misterjib

Technical User
Nov 7, 2006
8
GB
Hi people. I've got this on the timeline of an MC:

_root.seQ1MC.b_seQ1yes.onRelease = function(){
tickVar = _name;

//trace("local tickVar = " + tickVar);
//trace("this tickVar value = " + _root[tickVar]);

if(_root[tickVar] == true){
gotoAndStop("tickOn");
tick = 1; //tick is defined etc when the MC loads
}else if(_root[tickVar] == false){
gotoAndStop("tickOff");
tick = 0;
}
}

I want it to act on all the instances of the movieclip it is contained within. It is only acting upon the last of the instances that was loaded or had focus... I'm clearly missing something or am trying to achieve something that isn't capable of working... I look forward to your comments/suggestions
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top