Current location - Music Encyclopedia - Chinese History - A question about FLASH. Urgent!
A question about FLASH. Urgent!
1, put a movie symbol instance name mymc in the first frame of the first floor.

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.