GotoAndPlay ne fonctionne pas
Bonjour tout le monde,
J'essai d'utiliser l'instruction gotoandplay(149) mais celle-ci ne donne rien.
Voici mon code:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| BTN_DVR.onPress = function() {
dragging = true;
};
BTN_DVR.onRelease = function() {
dragging = false;
};
BTN_DVR.onReleaseOutside = function() {
dragging = false;
};
_root.onEnterFrame = function() {
with (BTN_DVR) {
if (dragging) {
with (BTN_DVR) {
// drag the joystick
_x = _parent._xmouse;
if (_x<220) {
_x = 220;
gotoAndPlay(214);
}
if (_x>330) {
_x = 330;
}
}
} else {
// snap back to center when the joystick is released
BTN_DVR._x = 220;
}
}
}; |
Est ce quelqu'un peut me dire pourquoi? Merci beaucoup