Probably it’s because I’ve written It, but, where’s the error?
function getTotalVideoFrame ():int {
if (video.current > 0) {
var frames:int = 0;
for (i:int = 0; i < video.current; i ++) {
frames += video.chapters[i].frames;
}
frames = frames + getCurrentVideoFrame ();
return frames;
}
return getCurrentVideoFrame ();
}
the error:
Scene 1, Layer 'as3', Frame 1, Line 1051 1084: Syntax error: expecting in before colon.
Scene 1, Layer 'as3', Frame 1, Line 1051 1084: Syntax error: expecting rightbrace before rightparen.
if I comment the for statement everything go right, I must be spent to be unable to see the error.
I think you are missing
varin yourforloop: