PDA

View Full Version : script adaptation


theUmGuy
03-12-2008, 03:56 PM
I have copied this code from a friend to play a mc, But I would like to adapt it for rollOver and rollOut capabilities from another mc? Thank You

buttons._visible = true;
for (var i = 0; i<4; i++) {
buttons["but"+i].num = i;
buttons["but"+i].onPress = function() {
pageAnim.gotoAndPlay("T"+this.num);
pageAnim.animationDone = function() {
pageAnim.stop();
};
};
}

mHeinen
03-18-2008, 12:09 PM
I have copied this code from a friend to play a mc, But I would like to adapt it for rollOver and rollOut capabilities from another mc? Thank You

buttons._visible = true;
for (var i = 0; i<4; i++) {
buttons["but"+i].num = i;
buttons["but"+i].onPress = function() {
pageAnim.gotoAndPlay("T"+this.num);
pageAnim.animationDone = function() {
pageAnim.stop();
};
};
}

Can you repeat your question with a tiny-little bit more info?

Cheers,
mHeinen

ps; copy + paste scripts is asking for trouble... Do it by hand and you understand every single line of code...