• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

"The Matrix" cascading code

Community Beginner ,
Oct 26, 2017 Oct 26, 2017

Copy link to clipboard

Copied

Hi... I found this great tutorial for "Matrix" cascading code in Flash, but the code has errors. The full tutorial and code is at Flash Matrix - Animated Code Effect ...

Here's the part of the code w/ the problem (lines 75 - 88):

if(this.ind < this.myCodes.length and this.delay != 0){

this.ind++;

this.delay--;

} else {

this.ind = 0;

this.delay = this.myCodes.length;

}

When I test it I get error:

Scene 1, Layer 'Layer 1', Frame 1, Line 75, Column 35     1084: Syntax error: expecting rightparen before and.

When I placed the rightparen before and, I get error:

Symbol 'one_pod', Layer 'Actions', Frame 1, Line 80, Column 3    1083: Syntax error: else is unexpected.

... and haven't found a fix for the else... I'm not a good actionscripter so kind of hit a wall here... Any ideas?

Thanks!

(I emailed the author re/ this but he hasn't responded...)

TOPICS
ActionScript

Views

531

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
community guidelines
Community Expert ,
Oct 27, 2017 Oct 27, 2017

Copy link to clipboard

Copied

LATEST

"and" in your if-statement should be "&&"

Votes

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
community guidelines