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

Convert to actionscript 3.0

Participant ,
Feb 18, 2019 Feb 18, 2019

Copy link to clipboard

Copied

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.

TOPICS
ActionScript

Views

942

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

correct answers 1 Correct answer

Advisor , Feb 20, 2019 Feb 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

Votes

Translate

Translate
Participant ,
Feb 20, 2019 Feb 20, 2019

Copy link to clipboard

Copied

Why is it nobody who wants to answer and help me

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
Advisor ,
Feb 20, 2019 Feb 20, 2019

Copy link to clipboard

Copied

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

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
LEGEND ,
Feb 21, 2019 Feb 21, 2019

Copy link to clipboard

Copied

One possible reason is that your posting is somewhat vague with respect to what it is asking for.  It is not at all clear what you are asking at the end relative to class files.

If you are hoping someone will provide a conversion from AS2 to AS3, while there are a few folks who would probably do that, some of us like to think people learn more if they do the work after they get a little direction.

As far as a little direction goes...  look into the Event class, particularly the ENTER_FRAME event, as well as how AS3 relies heavily on the use of event listeners... adding and removing them as needed.

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
Participant ,
Feb 21, 2019 Feb 21, 2019

Copy link to clipboard

Copied

It is probably impossible to convert from actionscript 2.0 to actionscript 3.0 when it is different. I get do something else.

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
Advisor ,
Feb 21, 2019 Feb 21, 2019

Copy link to clipboard

Copied

Ned is an expert, member of Adobe since years, I personaly develop As2 As3 since 19 years now.

So the best for you is to learn how to, be wise and understand what's a programation language is.

As2 and As3 are quiet similar, but there are fundamental programming habits you should change.

there is a also a migration instructions that can help you to convert your code.

https://www.adobe.com/devnet/flash/articles/first_as3_application.html

I still have some As2 apps, but last 4 years I converted the half of my projects from as2 to as3, it's not automatic, you should know these 2 languages to do it.

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
Participant ,
Feb 21, 2019 Feb 21, 2019

Copy link to clipboard

Copied

Thanks for the information you give me.

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
Advisor ,
Feb 21, 2019 Feb 21, 2019

Copy link to clipboard

Copied

LATEST

You're welcome and good luck!

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