l'ossature est :
pour la première image :
1 2 3 4 5
| onEnterFrame = function() {
if (Key.isDown(Key.ENTER)) {
gotoAndStop(2);delete onEnterFrame;};
if (Key.isDown(Key.SPACE)) {
gotoAndStop(2);delete onEnterFrame;}}; |
pour la deuxième :
1 2 3 4
| Frame2.onEnterFrame = function() {
if (this.Key.isDown(Key.ENTER)) {_root.gotoAndStop(3);delete this.onEnterFrame;}
if (this.Key.isDown(this.Key.SPACE)) {_root.gotoAndStop(3);delete this.onEnterFrame;}
}; |
pour la troisième :
onEnterFrame = function() { _root.gotoAndStop(4);}
Partager