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

Scene 1, Layer 'actionscript', Frame 1, Line 19, Column 6 1120: Access of undefined property counter

New Here ,
Jun 08, 2024 Jun 08, 2024

Copy link to clipboard

Copied

All my codes works except for 1 for actioscript 3 in animate. i get an error Scene 1, Layer 'actionscript', Frame 1, Line 19, Column 6 1120: Access of undefined property counter. I am not too sure what to replac counter with. Here is my code
 
import flash.utils.Timer;
import flash.events.TimerEvent;
import fl.transitions.Tween;
import fl.transitions.easing.*;
 
mc1.alpha = 0;
mc2.alpha = 0;
mc3.alpha = 0;
 
 
var timer:Timer = new Timer(500,27);
timer.addEventListener(TimerEvent.TIMER,timerListener);
timer.start();
 
function timerListener(event:TimerEvent):void
{
if(timer.currentCount == 1)
{
if(counter==1)
{
var tween6:Tween = new Tween(mc3,"alhpa",Strong.easeOut,1,0,1,true);
}
var tween1:Tween = new Tween(mc1,"alpha",Strong.easeOut,0,1,2,true);
}
 
if(timer.currentCount ==10)
{
var tween2:Tween = new Tween(mc1,"alpha",Strong.easeOut,1,0,1,true);
var tween3:Tween = new Tween(mc2,"alpha",Strong.easeOut,0,1,2,true);
}
 
if(timer.currentCount == 19)
{
var tween4:Tween = new Tween(mc2,"alpha",Strong.easeOut,1,0,1,true);
var tween5:Tween = new Tween(mc3,"alpha",Strong.easeOut,0,1,2,true);
}
 
if(timer.currentCount == 27)
{
timer.reset();
timer.start();
var count = 1;
}
}

Views

100

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 ,
Jun 08, 2024 Jun 08, 2024

Copy link to clipboard

Copied

what's counter?

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
New Here ,
Jun 09, 2024 Jun 09, 2024

Copy link to clipboard

Copied

I've bben following a tutorial and the tutorial shows counter

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
Community Expert ,
Jun 09, 2024 Jun 09, 2024

Copy link to clipboard

Copied

is there an instance of "counter" on the stage?

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
New Here ,
Jun 13, 2024 Jun 13, 2024

Copy link to clipboard

Copied

No they isn't, I have to look through the tutorial again or try n figure it out. Thank you

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
Community Expert ,
Jun 13, 2024 Jun 13, 2024

Copy link to clipboard

Copied

LATEST

sure.  keep use updated.

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