Highlighted

I need help for my code

New Here ,
Apr 25, 2020

Copy link to clipboard

Copied

 
import flash.events.MouseEvent;
 
 
stop();
 
var offset:int = 10
 
var pp1StartX:int = 63
var pp1StartY:int = 71
var pp1EndX:int = 326
var pp1EndY:int = 160
 
pp1.buttonMode = true;
pp1.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp1.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp2StartX:int = 17
var pp2StartY:int = 185
var pp2EndX:int = 393.5
var pp2EndY:int = 160
 
pp2.buttonMode = true;
pp2.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp2.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp3StartX:int = 84
var pp3StartY:int = 290
var pp3EndX:int = 460.75
var pp3EndY:int = 161.85
 
pp3.buttonMode = true;
pp3.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp3.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp4StartX:int = 173
var pp4StartY:int = 160
var pp4EndX:int = 529.4
var pp4EndY:int = 161.85
 
pp4.buttonMode = true;
pp4.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp4.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp5StartX:int = 320
var pp5StartY:int = 28
var pp5EndX:int = 320
var pp5EndY:int = 227.5
 
pp5.buttonMode = true;
pp5.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp5.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp6StartX:int = 17
var pp6StartY:int = 395
var pp6EndX:int = 393.5
var pp6EndY:int = 227.25
 
pp6.buttonMode = true;
pp6.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp6.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp7StartX:int = 104
var pp7StartY:int = 200
var pp7EndX:int = 460.75
var pp7EndY:int = 228.65
 
pp7.buttonMode = true;
pp7.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp7.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp8StartX:int = 406
var pp8StartY:int = 36
var pp8EndX:int = 529.4
var pp8EndY:int = 230.5
 
pp8.buttonMode = true;
pp8.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp8.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp9StartX:int = 182
var pp9StartY:int = 281
var pp9EndX:int = 320
var pp9EndY:int = 301
 
pp9.buttonMode = true;
pp9.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp9.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp10StartX:int = 178
var pp10StartY:int = 370
var pp10EndX:int = 400
var pp10EndY:int = 301
 
pp10.buttonMode = true;
pp10.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp10.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp11StartX:int = 496
var pp11StartY:int = 44
var pp11EndX:int = 460.05
var pp11EndY:int = 301
 
pp11.buttonMode = true;
pp11.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp11.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp12StartX:int = 169
var pp12StartY:int = 60
var pp12EndX:int = 528.7
var pp12EndY:int = 301
 
pp12.buttonMode = true;
pp12.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp12.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp13StartX:int = 235
var pp13StartY:int = 44
var pp13EndX:int = 325
var pp13EndY:int = 365
 
pp13.buttonMode = true;
pp13.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp13.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp14StartX:int = 444
var pp14StartY:int = 112
var pp14EndX:int = 400
var pp14EndY:int = 364.2
 
pp14.buttonMode = true;
pp14.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp14.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp15StartX:int = 314
var pp15StartY:int = 107
var pp15EndX:int = 460.75
var pp15EndY:int = 364.2
 
pp15.buttonMode = true;
pp15.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp15.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp16StartX:int = 358
var pp16StartY:int = 434
var pp16EndX:int = 528.7
var pp16EndY:int = 365
 
pp16.buttonMode = true;
pp16.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp16.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
 
function startDragging(e:MouseEvent): void {
e.currentTarget.startDrag();
}
function stopDragging(e:MouseEvent):void {
e.currentTarget.stopDrag();
switch (e.currentTarget)  {
case pp1:
if (pp1.x < pp1EndX - offset || pp1.x > pp1EndX + offset || pp1.y < pp1EndY - offset || pp1.y > pp1EndY + offset){
 
pp1.x = pp1StartX;
pp1.y = pp1StartY;
} else {
pp1.x = pp1EndX;
pp1.y = pp1EndY;
checkGame();
 
}
break;
case pp2:
if (pp2.x < pp2EndX - offset || pp2.x > pp2EndX + offset || pp2.y < pp2EndY - offset || pp2.y > pp2EndY + offset){
 
pp2.x = pp2StartX;
pp2.y = pp2StartY;
} else {
pp2.x = pp2EndX;
pp2.y = pp2EndY;
checkGame();
 
}
break;
case pp3:
if (pp3.x < pp3EndX - offset || pp3.x > pp3EndX + offset || pp3.y < pp3EndY - offset || pp3.y > pp3EndY + offset){
 
pp3.x = pp3StartX;
pp3.y = pp3StartY;
} else {
pp3.x = pp3EndX;
pp3.y = pp3EndY;
checkGame();
 
}
break;
case pp4:
if (pp4.x < pp4EndX - offset || pp4.x > pp4EndX + offset || pp4.y < pp4EndY - offset || pp4.y > pp4EndY + offset){
 
pp4.x = pp4StartX;
pp4.y = pp4StartY;
} else {
pp4.x = pp4EndX;
pp4.y = pp4EndY;
checkGame();
 
}
break;
case pp5:
if (pp5.x < pp5EndX - offset || pp5.x > pp5EndX + offset || pp5.y < pp5EndY - offset || pp5.y > pp5EndY + offset){
 
pp5.x = pp5StartX;
pp5.y = pp5StartY;
} else {
pp5.x = pp5EndX;
pp5.y = pp5EndY;
checkGame();
 
}
break;
case pp6:
if (pp6.x < pp6EndX - offset || pp6.x > pp6EndX + offset || pp6.y < pp6EndY - offset || pp6.y > pp6EndY + offset){
 
pp6.x = pp6StartX;
pp6.y = pp6StartY;
} else {
pp6.x = pp6EndX;
pp6.y = pp6EndY;
checkGame();
 
}
break;
case pp7:
if (pp7.x < pp7EndX - offset || pp7.x > pp7EndX + offset || pp7.y < pp7EndY - offset || pp7.y > pp7EndY + offset){
 
pp7.x = pp7StartX;
pp7.y = pp7StartY;
} else {
pp7.x = pp7EndX;
pp7.y = pp7EndY;
checkGame();
 
}
break;
case pp8:
if (pp8.x < pp8EndX - offset || pp8.x > pp8EndX + offset || pp8.y < pp8EndY - offset || pp8.y > pp8EndY + offset){
 
pp8.x = pp8StartX;
pp8.y = pp8StartY;
} else {
pp8.x = pp8EndX;
pp8.y = pp8EndY;
checkGame();
 
}
break;
case pp9:
if (pp9.x < pp9EndX - offset || pp9.x > pp9EndX + offset || pp9.y < pp9EndY - offset || pp9.y > pp9EndY + offset){
 
pp9.x = pp9StartX;
pp9.y = pp9StartY;
} else {
pp9.x = pp9EndX;
pp9.y = pp9EndY;
checkgame();
 
}
break;
case pp10:
if (pp10.x < pp10EndX - offset || pp10.x > pp10EndX + offset || pp10.y < pp10EndY - offset || pp10.y > pp10EndY + offset){
 
pp10.x = pp10StartX;
pp10.y = pp10StartY;
} else {
pp10.x = pp10EndX;
pp10.y = pp10EndY;
checkGame();
 
}
break;
case pp11:
if (pp11.x < pp11EndX - offset || pp11.x > pp11EndX + offset || pp11.y < pp11EndY - offset || pp11.y > pp11EndY + offset){
 
pp11.x = pp11StartX;
pp11.y = pp11StartY;
} else {
pp11.x = pp11EndX;
pp11.y = pp11EndY;
checkGame();
 
}
break;
case pp12:
if (pp12.x < pp12EndX - offset || pp12.x > pp12EndX + offset || pp12.y < pp12EndY - offset || pp12.y > pp12EndY + offset){
 
pp12.x = pp12StartX;
pp12.y = pp12StartY;
} else {
pp12.x = pp12EndX;
pp12.y = pp12EndY;
checkGame();
 
}
break;
case pp13:
if (pp13.x < pp13EndX - offset || pp13.x > pp13EndX + offset || pp13.y < pp13EndY - offset || pp13.y > pp13EndY + offset){
 
pp13.x = pp13StartX;
pp13.y = pp13StartY;
} else {
pp13.x = pp13EndX;
pp13.y = pp13EndY;
checkGame();
 
}
break;
case pp14:
if (pp14.x < pp14EndX - offset || pp14.x > pp14EndX + offset || pp14.y < pp14EndY - offset || pp14.y > pp14EndY + offset){
 
pp14.x = pp14StartX;
pp14.y = pp14StartY;
} else {
pp14.x = pp14EndX;
pp14.y = pp14EndY;
checkGame();
 
}
break;
case pp15:
if (pp15.x < pp15EndX - offset || pp15.x > pp15EndX + offset || pp15.y < pp15EndY - offset || pp15.y > pp15EndY + offset){
 
pp15.x = pp15StartX;
pp15.y = pp15StartY;
} else {
pp15.x = pp15EndX;
pp15.y = pp15EndY;
checkGame();
 
}
break;
case pp16:
if (pp16.x < pp16EndX - offset || pp16.x > pp16EndX + offset || pp16.y < pp16EndY - offset || pp16.y > pp16EndY + offset){
 
pp16.x = pp16StartX;
pp16.y = pp16StartY;
} else {
pp16.x = pp16EndX;
pp16.y = pp16EndY;
checkGame();
 
}
}
}
 
function checkGame(): void {
if (pp1.x == pp1EndX && pp1.y == pp1EndY && pp2.x == pp2EndX && pp2.y == pp2EndY && pp3.x == pp3EndX && pp3.y == pp3EndY && pp4.x == pp4EndX && pp4.y == pp4EndY && pp5.x == pp5EndX && pp5.y == pp5EndY && pp6.x == pp6EndX && pp6.y == pp6EndY && pp7.x == pp7EndX && pp7.y == pp7EndY && pp8.x == pp8EndX && pp8.y == pp8EndY && pp9.x == pp9EndX && pp9.y == pp9EndY && pp10.x == pp10EndX && pp10.y == pp10EndY && pp11.x == pp11EndX && pp11.y == pp11EndY && pp12.x == pp12EndX && pp12.y == pp12EndY && pp13.x == pp13EndX && pp13.y == pp13EndY && pp14.x == pp14EndX && pp14.y == pp14EndY && pp15.x == pp15EndX && pp15.y == pp15EndY && pp16.x == pp16EndX && pp16.y == pp16EndY )
gotoAndPlay(7);
}
 
 
 
My error is:
Scene 1, Layer 'Layer_1_copy', Frame 6, Line 264, Column 6 1180: Call to a possibly undefined method checkgame.

 

 

Thanks,

I'm a beginner so please use simple language.

 

Views

125

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

I need help for my code

New Here ,
Apr 25, 2020

Copy link to clipboard

Copied

 
import flash.events.MouseEvent;
 
 
stop();
 
var offset:int = 10
 
var pp1StartX:int = 63
var pp1StartY:int = 71
var pp1EndX:int = 326
var pp1EndY:int = 160
 
pp1.buttonMode = true;
pp1.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp1.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp2StartX:int = 17
var pp2StartY:int = 185
var pp2EndX:int = 393.5
var pp2EndY:int = 160
 
pp2.buttonMode = true;
pp2.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp2.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp3StartX:int = 84
var pp3StartY:int = 290
var pp3EndX:int = 460.75
var pp3EndY:int = 161.85
 
pp3.buttonMode = true;
pp3.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp3.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp4StartX:int = 173
var pp4StartY:int = 160
var pp4EndX:int = 529.4
var pp4EndY:int = 161.85
 
pp4.buttonMode = true;
pp4.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp4.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp5StartX:int = 320
var pp5StartY:int = 28
var pp5EndX:int = 320
var pp5EndY:int = 227.5
 
pp5.buttonMode = true;
pp5.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp5.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp6StartX:int = 17
var pp6StartY:int = 395
var pp6EndX:int = 393.5
var pp6EndY:int = 227.25
 
pp6.buttonMode = true;
pp6.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp6.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp7StartX:int = 104
var pp7StartY:int = 200
var pp7EndX:int = 460.75
var pp7EndY:int = 228.65
 
pp7.buttonMode = true;
pp7.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp7.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp8StartX:int = 406
var pp8StartY:int = 36
var pp8EndX:int = 529.4
var pp8EndY:int = 230.5
 
pp8.buttonMode = true;
pp8.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp8.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp9StartX:int = 182
var pp9StartY:int = 281
var pp9EndX:int = 320
var pp9EndY:int = 301
 
pp9.buttonMode = true;
pp9.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp9.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp10StartX:int = 178
var pp10StartY:int = 370
var pp10EndX:int = 400
var pp10EndY:int = 301
 
pp10.buttonMode = true;
pp10.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp10.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp11StartX:int = 496
var pp11StartY:int = 44
var pp11EndX:int = 460.05
var pp11EndY:int = 301
 
pp11.buttonMode = true;
pp11.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp11.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp12StartX:int = 169
var pp12StartY:int = 60
var pp12EndX:int = 528.7
var pp12EndY:int = 301
 
pp12.buttonMode = true;
pp12.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp12.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp13StartX:int = 235
var pp13StartY:int = 44
var pp13EndX:int = 325
var pp13EndY:int = 365
 
pp13.buttonMode = true;
pp13.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp13.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp14StartX:int = 444
var pp14StartY:int = 112
var pp14EndX:int = 400
var pp14EndY:int = 364.2
 
pp14.buttonMode = true;
pp14.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp14.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp15StartX:int = 314
var pp15StartY:int = 107
var pp15EndX:int = 460.75
var pp15EndY:int = 364.2
 
pp15.buttonMode = true;
pp15.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp15.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
var pp16StartX:int = 358
var pp16StartY:int = 434
var pp16EndX:int = 528.7
var pp16EndY:int = 365
 
pp16.buttonMode = true;
pp16.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
pp16.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
 
 
function startDragging(e:MouseEvent): void {
e.currentTarget.startDrag();
}
function stopDragging(e:MouseEvent):void {
e.currentTarget.stopDrag();
switch (e.currentTarget)  {
case pp1:
if (pp1.x < pp1EndX - offset || pp1.x > pp1EndX + offset || pp1.y < pp1EndY - offset || pp1.y > pp1EndY + offset){
 
pp1.x = pp1StartX;
pp1.y = pp1StartY;
} else {
pp1.x = pp1EndX;
pp1.y = pp1EndY;
checkGame();
 
}
break;
case pp2:
if (pp2.x < pp2EndX - offset || pp2.x > pp2EndX + offset || pp2.y < pp2EndY - offset || pp2.y > pp2EndY + offset){
 
pp2.x = pp2StartX;
pp2.y = pp2StartY;
} else {
pp2.x = pp2EndX;
pp2.y = pp2EndY;
checkGame();
 
}
break;
case pp3:
if (pp3.x < pp3EndX - offset || pp3.x > pp3EndX + offset || pp3.y < pp3EndY - offset || pp3.y > pp3EndY + offset){
 
pp3.x = pp3StartX;
pp3.y = pp3StartY;
} else {
pp3.x = pp3EndX;
pp3.y = pp3EndY;
checkGame();
 
}
break;
case pp4:
if (pp4.x < pp4EndX - offset || pp4.x > pp4EndX + offset || pp4.y < pp4EndY - offset || pp4.y > pp4EndY + offset){
 
pp4.x = pp4StartX;
pp4.y = pp4StartY;
} else {
pp4.x = pp4EndX;
pp4.y = pp4EndY;
checkGame();
 
}
break;
case pp5:
if (pp5.x < pp5EndX - offset || pp5.x > pp5EndX + offset || pp5.y < pp5EndY - offset || pp5.y > pp5EndY + offset){
 
pp5.x = pp5StartX;
pp5.y = pp5StartY;
} else {
pp5.x = pp5EndX;
pp5.y = pp5EndY;
checkGame();
 
}
break;
case pp6:
if (pp6.x < pp6EndX - offset || pp6.x > pp6EndX + offset || pp6.y < pp6EndY - offset || pp6.y > pp6EndY + offset){
 
pp6.x = pp6StartX;
pp6.y = pp6StartY;
} else {
pp6.x = pp6EndX;
pp6.y = pp6EndY;
checkGame();
 
}
break;
case pp7:
if (pp7.x < pp7EndX - offset || pp7.x > pp7EndX + offset || pp7.y < pp7EndY - offset || pp7.y > pp7EndY + offset){
 
pp7.x = pp7StartX;
pp7.y = pp7StartY;
} else {
pp7.x = pp7EndX;
pp7.y = pp7EndY;
checkGame();
 
}
break;
case pp8:
if (pp8.x < pp8EndX - offset || pp8.x > pp8EndX + offset || pp8.y < pp8EndY - offset || pp8.y > pp8EndY + offset){
 
pp8.x = pp8StartX;
pp8.y = pp8StartY;
} else {
pp8.x = pp8EndX;
pp8.y = pp8EndY;
checkGame();
 
}
break;
case pp9:
if (pp9.x < pp9EndX - offset || pp9.x > pp9EndX + offset || pp9.y < pp9EndY - offset || pp9.y > pp9EndY + offset){
 
pp9.x = pp9StartX;
pp9.y = pp9StartY;
} else {
pp9.x = pp9EndX;
pp9.y = pp9EndY;
checkgame();
 
}
break;
case pp10:
if (pp10.x < pp10EndX - offset || pp10.x > pp10EndX + offset || pp10.y < pp10EndY - offset || pp10.y > pp10EndY + offset){
 
pp10.x = pp10StartX;
pp10.y = pp10StartY;
} else {
pp10.x = pp10EndX;
pp10.y = pp10EndY;
checkGame();
 
}
break;
case pp11:
if (pp11.x < pp11EndX - offset || pp11.x > pp11EndX + offset || pp11.y < pp11EndY - offset || pp11.y > pp11EndY + offset){
 
pp11.x = pp11StartX;
pp11.y = pp11StartY;
} else {
pp11.x = pp11EndX;
pp11.y = pp11EndY;
checkGame();
 
}
break;
case pp12:
if (pp12.x < pp12EndX - offset || pp12.x > pp12EndX + offset || pp12.y < pp12EndY - offset || pp12.y > pp12EndY + offset){
 
pp12.x = pp12StartX;
pp12.y = pp12StartY;
} else {
pp12.x = pp12EndX;
pp12.y = pp12EndY;
checkGame();
 
}
break;
case pp13:
if (pp13.x < pp13EndX - offset || pp13.x > pp13EndX + offset || pp13.y < pp13EndY - offset || pp13.y > pp13EndY + offset){
 
pp13.x = pp13StartX;
pp13.y = pp13StartY;
} else {
pp13.x = pp13EndX;
pp13.y = pp13EndY;
checkGame();
 
}
break;
case pp14:
if (pp14.x < pp14EndX - offset || pp14.x > pp14EndX + offset || pp14.y < pp14EndY - offset || pp14.y > pp14EndY + offset){
 
pp14.x = pp14StartX;
pp14.y = pp14StartY;
} else {
pp14.x = pp14EndX;
pp14.y = pp14EndY;
checkGame();
 
}
break;
case pp15:
if (pp15.x < pp15EndX - offset || pp15.x > pp15EndX + offset || pp15.y < pp15EndY - offset || pp15.y > pp15EndY + offset){
 
pp15.x = pp15StartX;
pp15.y = pp15StartY;
} else {
pp15.x = pp15EndX;
pp15.y = pp15EndY;
checkGame();
 
}
break;
case pp16:
if (pp16.x < pp16EndX - offset || pp16.x > pp16EndX + offset || pp16.y < pp16EndY - offset || pp16.y > pp16EndY + offset){
 
pp16.x = pp16StartX;
pp16.y = pp16StartY;
} else {
pp16.x = pp16EndX;
pp16.y = pp16EndY;
checkGame();
 
}
}
}
 
function checkGame(): void {
if (pp1.x == pp1EndX && pp1.y == pp1EndY && pp2.x == pp2EndX && pp2.y == pp2EndY && pp3.x == pp3EndX && pp3.y == pp3EndY && pp4.x == pp4EndX && pp4.y == pp4EndY && pp5.x == pp5EndX && pp5.y == pp5EndY && pp6.x == pp6EndX && pp6.y == pp6EndY && pp7.x == pp7EndX && pp7.y == pp7EndY && pp8.x == pp8EndX && pp8.y == pp8EndY && pp9.x == pp9EndX && pp9.y == pp9EndY && pp10.x == pp10EndX && pp10.y == pp10EndY && pp11.x == pp11EndX && pp11.y == pp11EndY && pp12.x == pp12EndX && pp12.y == pp12EndY && pp13.x == pp13EndX && pp13.y == pp13EndY && pp14.x == pp14EndX && pp14.y == pp14EndY && pp15.x == pp15EndX && pp15.y == pp15EndY && pp16.x == pp16EndX && pp16.y == pp16EndY )
gotoAndPlay(7);
}
 
 
 
My error is:
Scene 1, Layer 'Layer_1_copy', Frame 6, Line 264, Column 6 1180: Call to a possibly undefined method checkgame.

 

 

Thanks,

I'm a beginner so please use simple language.

 

Views

126

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 25, 2020 0
Adobe Community Professional ,
Apr 25, 2020

Copy link to clipboard

Copied

Hi.

 

It's because in line 264 you wrote checkgame (lower case g) instead of checkGame (uppercase G).

 

Please let us know if you still have any further questions.

 

 

Regards,

JC

__________________________________________
HTML5, JSFL, and AS3 samples: http://bit.ly/2mJgDoG

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 25, 2020 0