[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Instance of Symbol 34 MovieClip in Frame 1 (4.05 KiB) ●
onClipEvent (keyDown) {
s = new Sound();
if (Key.getCode() == 32) {
s.attachSound("space");
_root.TextSpace._visible = true;
}
if (Key.getCode() == 65) {
s.attachSound("a");
_root.TextA._visible = true;
}
if (Key.getCode() == 66) {
s.attachSound("b");
_root.TextB._visible = true;
}
if (Key.getCode() == 67) {
s.attachSound("c");
_root.TextC._visible = true;
}
if (Key.getCode() == 68) {
s.attachSound("d");
_root.TextD._visible = true;
}
if (Key.getCode() == 69) {
s.attachSound("e");
_root.TextE._visible = true;
}
if (Key.getCode() == 70) {
s.attachSound("f");
_root.TextF._visible = true;
}
if (Key.getCode() == 71) {
s.attachSound("g");
_root.TextG._visible = true;
}
if (Key.getCode() == 72) {
s.attachSound("h");
_root.TextH._visible = true;
}
if (Key.getCode() == 73) {
s.attachSound("i");
_root.TextI._visible = true;
}
if (Key.getCode() == 74) {
s.attachSound("j");
_root.TextJ._visible = true;
}
if (Key.getCode() == 75) {
s.attachSound("k");
_root.TextK._visible = true;
}
if (Key.getCode() == 76) {
s.attachSound("l");
_root.TextL._visible = true;
}
if (Key.getCode() == 77) {
s.attachSound("m");
_root.TextM._visible = true;
}
if (Key.getCode() == 78) {
s.attachSound("n");
_root.TextN._visible = true;
}
if (Key.getCode() == 79) {
s.attachSound("o");
_root.TextO._visible = true;
}
if (Key.getCode() == 80) {
s.attachSound("p");
_root.TextP._visible = true;
}
if (Key.getCode() == 81) {
s.attachSound("q");
_root.TextQ._visible = true;
}
if (Key.getCode() == 82) {
s.attachSound("r");
_root.TextR._visible = true;
}
if (Key.getCode() == 83) {
s.attachSound("s");
_root.TextS._visible = true;
}
if (Key.getCode() == 84) {
s.attachSound("t");
_root.TextT._visible = true;
}
if (Key.getCode() == 85) {
s.attachSound("u");
_root.TextU._visible = true;
}
if (Key.getCode() == 86) {
s.attachSound("v");
_root.TextV._visible = true;
}
if (Key.getCode() == 87) {
s.attachSound("w");
_root.TextW._visible = true;
}
if (Key.getCode() == 88) {
s.attachSound("x");
_root.TextX._visible = true;
}
if (Key.getCode() == 89) {
s.attachSound("y");
_root.TextY._visible = true;
}
if (Key.getCode() == 90) {
s.attachSound("z");
_root.TextZ._visible = true;
}
_root.Mouth._visible = true;
s.start();
}
onClipEvent (keyUp) {
_root.TextSpace._visible = false;
_root.TextA._visible = false;
_root.TextB._visible = false;
_root.TextC._visible = false;
_root.TextD._visible = false;
_root.TextE._visible = false;
_root.TextF._visible = false;
_root.TextG._visible = false;
_root.TextH._visible = false;
_root.TextI._visible = false;
_root.TextJ._visible = false;
_root.TextK._visible = false;
_root.TextL._visible = false;
_root.TextM._visible = false;
_root.TextN._visible = false;
_root.TextO._visible = false;
_root.TextP._visible = false;
_root.TextQ._visible = false;
_root.TextR._visible = false;
_root.TextS._visible = false;
_root.TextT._visible = false;
_root.TextU._visible = false;
_root.TextV._visible = false;
_root.TextW._visible = false;
_root.TextX._visible = false;
_root.TextY._visible = false;
_root.TextZ._visible = false;
_root.Mouth._visible = false;
}
onClipEvent (load) {
_root.TextSpace._visible = false;
_root.TextA._visible = false;
_root.TextB._visible = false;
_root.TextC._visible = false;
_root.TextD._visible = false;
_root.TextE._visible = false;
_root.TextF._visible = false;
_root.TextG._visible = false;
_root.TextH._visible = false;
_root.TextI._visible = false;
_root.TextJ._visible = false;
_root.TextK._visible = false;
_root.TextL._visible = false;
_root.TextM._visible = false;
_root.TextN._visible = false;
_root.TextO._visible = false;
_root.TextP._visible = false;
_root.TextQ._visible = false;
_root.TextR._visible = false;
_root.TextS._visible = false;
_root.TextT._visible = false;
_root.TextU._visible = false;
_root.TextV._visible = false;
_root.TextW._visible = false;
_root.TextX._visible = false;
_root.TextY._visible = false;
_root.TextZ._visible = false;
_root.Mouth._visible = false;
}