Skip to main content
Inspiring
February 18, 2019
Answered

Convert to actionscript 3.0

  • February 18, 2019
  • 1 reply
  • 1459 views

I've got into trouble this code from actionscript 2.0 in a .fla file.

stop();

var tf:TextFormat = new TextFormat();

tf.font="Arial Black";

tf.bold = true;

tf.size = 30;

//tf.color = 0x55FF55;

rotateIn = function() {

      if(this.frameCount++ > this.delay) {

          this.onEnterFrame = function() {

              this.frameCount += 2;

              var n:Number = 30 - (this.frameCount - this.delay);

              this.filters = [new BlurFilter(n, n, 1)];

              this._visible = true;

              this._alpha = 100 - (n * 3);

              if(n < 1) {

                  this._alpha = 100;

                  this.onEnterFrame = undefined;

              }

          }

      }

  }

var frameCounter:Number = 0;

this.onEnterFrame = function() {

    if(frameCounter++ % 70 == 0){

//if(frameCounter++ >= 70 == 0)

        m.removeMovieClip();

        m = TextScript.createEffect(this, "Text Text Text", 50, 10, tf, 2, rotateIn);

        //delete this.onEnterFrame;

    }

}

With bold style I want help with
How do I get with class .as file in an actionscript 2.0 .fla file to an actionscript 3.0 with .fla file to be linked together.

This topic has been closed for replies.
Correct answer Robert Mc Dowell

I think it's better you start to learn by yourself As3, as you know As2 it won't be complicated. there are pdf, books for that

1 reply

peorAuthor
Inspiring
February 20, 2019

Why is it nobody who wants to answer and help me

Robert Mc Dowell
Robert Mc DowellCorrect answer
Legend
February 20, 2019

I think it's better you start to learn by yourself As3, as you know As2 it won't be complicated. there are pdf, books for that