2. The first frame in the second layer is written as code (AS2, AS3 can't write like this).
mymc.onEnterFrame = function() {
if (Key.isDown(Key。 Left)) {
mymc。 _ x-= 15;
}
if (Key.isDown(Key。 Right)) {
mymc。 _ x+= 15;
}
if (Key.isDown(Key。 Up)) {
mymc。 _ y-= 15;
}
if (Key.isDown(Key。 Downward)) {
mymc。 _ y+= 15;
}
};
Have pity on me. Give me some points. Oh, it makes no sense.