Combined Code
frame 1 {
Stage.showMenu = false;
_focusrect = false;
}
frame 1 {
function ghost() {
gpoint += 10;
}
function decghost() {
gpoint = 0;
}
}
button 7 {
on (release) {
_root.ghost();
_root.gotoAndPlay('chara2');
}
}
frame 2 {
gpoint = 0;
}
frame 3 {
if (gpoint >= 240) {
_root.gotoAndPlay('chara4');
} else {
_root.gotoAndPlay('chara1');
}
}
frame 4 {
this.gotoAndPlay(_currentframe - 1);
}
frame 9 {
if (gpoint >= 240) {
_root.gotoAndPlay('chara4');
} else {
_root.gotoAndPlay('chara2');
}
}
button 14 {
on (release) {
_root.ghost();
_root.gotoAndPlay('chara3');
}
}
frame 10 {
this.gotoAndPlay(_currentframe - 1);
}
frame 15 {
if (gpoint >= 240) {
_root.gotoAndPlay('chara4');
} else {
_root.gotoAndPlay('chara3');
}
}
button 19 {
on (release) {
_root.ghost();
_root.gotoAndPlay('chara1');
}
}
frame 16 {
this.gotoAndPlay(_currentframe - 1);
}
frame 50 {
this.stop();
getURL('http://www.lomando.com/main.html', '_self');
}
button 25 {
on (release) {
_root.decghost();
_root.gotoAndPlay('chara1');
}
}