mafness
03-06-2007, 09:42 PM
I have a movie clip, serving as a button... when you (press) the button it enters a "hit" state... said button has two other buttons with it, that when clicked fade out the hit state of the previously pressed button...
my question is, how would I trigger that effect, through a seperate movie clip that doesnt fall with in the same movie clip as the 3 buttons...
here is the code of the buttons...
on (press) {
if (_parent._parent.menuHolder<>this._name) {
this.gotoAndStop("fadeOut");
_parent._parent.menu[_parent._parent.menuHolder].gotoAndPlay("fadeOut");
_parent._parent.menuHolder = this._name;
_parent._parent.movie.loadMovie(this._name+".swf");
_parent._parent.clickSound.start();
_root.bgColor.fadeColor(0x708C0E);
}
}
and here is where I would like to add the "FadeOut" action upon press
elementBg.onPress = function() {
_parent._parent.newWindow(950,450, "project.swf", "project"+menuNum, bgColor);
_root.currentProject = identifier;
}
my question is, how would I trigger that effect, through a seperate movie clip that doesnt fall with in the same movie clip as the 3 buttons...
here is the code of the buttons...
on (press) {
if (_parent._parent.menuHolder<>this._name) {
this.gotoAndStop("fadeOut");
_parent._parent.menu[_parent._parent.menuHolder].gotoAndPlay("fadeOut");
_parent._parent.menuHolder = this._name;
_parent._parent.movie.loadMovie(this._name+".swf");
_parent._parent.clickSound.start();
_root.bgColor.fadeColor(0x708C0E);
}
}
and here is where I would like to add the "FadeOut" action upon press
elementBg.onPress = function() {
_parent._parent.newWindow(950,450, "project.swf", "project"+menuNum, bgColor);
_root.currentProject = identifier;
}