all groups > macromedia flash sitedesign > march 2005 >
You're in the

macromedia flash sitedesign

group:

help quick


help quick Liebs66
3/31/2005 5:07:47 PM
macromedia flash sitedesign: well im using dot syntax and i have a "badguy" movie clip and after a certain
amount of time he attacks and when the attack happens i would like another
movie clip that is the health move to the next frame were one health bar is down

is there a way to make another movie clip do something from another movie clip

basicly this is the code i used

guyMC1.guyBTN.onPress = function(){
this._parent.gotoAndPlay("die");
};

now i want the health movie clip to go to the next frame but i dont want to
press it to make it happen

i know its a lot but i want to make sure you understand what i want
Re: help quick Liebs66
4/1/2005 4:58:46 PM
Re: help quick myselfandi
4/2/2005 11:38:44 PM
try something like :

guyMC1.guyBTN.onPress = function(){
_parent.gotoAndPlay('die');
_root.healthMC.nextFrame(); // or _root.healthMC.gotoAndStop(frame)

};
Re: help quick Liebs66
4/7/2005 2:56:27 PM
guyMC1.guyBTN.onPress = function(){
_parent.gotoAndPlay("die");
_root.healthMC.nextFrame(); // or _root.healthMC.gotoAndStop(frame)

};


ok i understand this script it works just great but what i want to happen
dosent happen when i press the certain button i want it to happen when a
certain frame is reached in the movie clip
AddThis Social Bookmark Button