0
Scene 1, Layer 'actionscript', Frame 1, Line 19, Column 6 1120: Access of undefined property counter
New Here
,
/t5/animate-discussions/scene-1-layer-actionscript-frame-1-line-19-column-6-1120-access-of-undefined-property-counter/td-p/14669825
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;
}
}
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/animate-discussions/scene-1-layer-actionscript-frame-1-line-19-column-6-1120-access-of-undefined-property-counter/m-p/14669899#M376331
Jun 08, 2024
Jun 08, 2024
Copy link to clipboard
Copied
what's counter?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Georgeous
AUTHOR
New Here
,
/t5/animate-discussions/scene-1-layer-actionscript-frame-1-line-19-column-6-1120-access-of-undefined-property-counter/m-p/14670398#M376337
Jun 09, 2024
Jun 09, 2024
Copy link to clipboard
Copied
I've bben following a tutorial and the tutorial shows counter
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/animate-discussions/scene-1-layer-actionscript-frame-1-line-19-column-6-1120-access-of-undefined-property-counter/m-p/14670647#M376338
Jun 09, 2024
Jun 09, 2024
Copy link to clipboard
Copied
is there an instance of "counter" on the stage?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Georgeous
AUTHOR
New Here
,
/t5/animate-discussions/scene-1-layer-actionscript-frame-1-line-19-column-6-1120-access-of-undefined-property-counter/m-p/14680391#M376503
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/animate-discussions/scene-1-layer-actionscript-frame-1-line-19-column-6-1120-access-of-undefined-property-counter/m-p/14680495#M376505
Jun 13, 2024
Jun 13, 2024
Copy link to clipboard
Copied
sure. keep use updated.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

