Question
button that runs 2 actionscripts
bc.onRollOver = function() {
if (_root.section != "images/bc_sample.jpg") {
_root.section = "images/bc_sample.jpg";
_root.transition.gotoAndPlay("closing");
}
};
Above is the code I have on frame 2. It allows my button bc to work.
It works fine, but I want button bc to do two things.
// FIRST THING //
bc.onRollOver = function() {
if (_root.section != "images/bc_sample.jpg") {
_root.section = "images/bc_sample.jpg";
_root.transition.gotoAndPlay("closing");
}
};
//AND//
// SECOND THING //
bc.onRollOver = function() {
if (_root.section != "images/bc_self.jpg") {
_root.section = "images/bc_self.jpg";
_root.trans2.gotoAndPlay("close");
}
};
HOW DO I TIE THEM TOGETHER SO THE BUTTON "bc" does both.
I am not very good at flash and I do not know how to make this work.
if (_root.section != "images/bc_sample.jpg") {
_root.section = "images/bc_sample.jpg";
_root.transition.gotoAndPlay("closing");
}
};
Above is the code I have on frame 2. It allows my button bc to work.
It works fine, but I want button bc to do two things.
// FIRST THING //
bc.onRollOver = function() {
if (_root.section != "images/bc_sample.jpg") {
_root.section = "images/bc_sample.jpg";
_root.transition.gotoAndPlay("closing");
}
};
//AND//
// SECOND THING //
bc.onRollOver = function() {
if (_root.section != "images/bc_self.jpg") {
_root.section = "images/bc_self.jpg";
_root.trans2.gotoAndPlay("close");
}
};
HOW DO I TIE THEM TOGETHER SO THE BUTTON "bc" does both.
I am not very good at flash and I do not know how to make this work.