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

Definition flash.event could not be found

New Here ,
May 07, 2014 May 07, 2014

import flash.utils.Timer;

import flash.event.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(count==1)

  {

  var tween6:Tween = new Tween(mc3,"alpha",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;

}

this is what i get ....

Scene 1, Layer 'Action Script', Frame 1, Line 21172: Definition flash.event:TimerEvent could not be found.
TOPICS
ActionScript
692
Translate
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

correct answers 1 Correct answer

Community Expert , May 07, 2014 May 07, 2014

that should be:

import flash.events.TimerEvent;

Translate
Community Expert ,
May 07, 2014 May 07, 2014

that should be:

import flash.events.TimerEvent;

Translate
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 ,
May 07, 2014 May 07, 2014

Thank you so much i was about to throw the i mac out thee widow ....lol

Translate
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 ,
May 07, 2014 May 07, 2014
LATEST

i understand that!

some things are just hard to see and the longer you look, the less you see.

Translate
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