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.
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
Copy link to clipboard
Copied
Why is it nobody who wants to answer and help me
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
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.
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.
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.
Copy link to clipboard
Copied
Thanks for the information you give me.
Copy link to clipboard
Copied
You're welcome and good luck!