Forum Topic: AS 3.0 will it slow down?

(139 views • 7 replies)

This topic is 1 page long.

<< < > >>
Winking

Vexagon

Reply To Post Reply & Quote

Posted at: 9/20/09 07:47 AM

Vexagon LIGHT LEVEL 11

Sign-Up: 02/11/09

Posts: 246

Since AS3 is so much better (really) I dropped AS 2.0 forever.
Though AS3 is a lot more typing work, so, will it slow down my games by seperating the script to multiple layers? This will keep it more organized.

if (script == "ActionScript 3.0") {
return happyFace;
}

BBS Signature

None

AnalogStick

Reply To Post Reply & Quote

Posted at: 9/20/09 08:12 AM

AnalogStick LIGHT LEVEL 07

Sign-Up: 10/13/06

Posts: 947

Yes, but not noticeably.


None

Vexagon

Reply To Post Reply & Quote

Posted at: 9/20/09 08:28 AM

Vexagon LIGHT LEVEL 11

Sign-Up: 02/11/09

Posts: 246

good to know

if (script == "ActionScript 3.0") {
return happyFace;
}

BBS Signature

None

dELtaluca

Reply To Post Reply & Quote

Posted at: 9/20/09 09:09 AM

dELtaluca LIGHT LEVEL 20

Sign-Up: 04/16/04

Posts: 5,562

NO NO NO:

Please Analog-Stick, in future rather than saying what you 'think' or 'assume' is right, just say nothing at all.

Vexagon:

Layers are simply an abstraction of the flash IDE, it makes no difference to the compiled flash whether you have 1 layer, or 10 million layers, the layers are simply an abstraction to help with controlling the depths at which graphics are ordered, and in terms of any actionscript over the layers, will control the order of execution of the scripts.

In short, the answer is NO.

My social worker says im special!

BBS Signature

None

Paranoia

Reply To Post Reply & Quote

Posted at: 9/20/09 09:30 AM

Paranoia DARK LEVEL 34

Sign-Up: 04/22/05

Posts: 9,697

At 9/20/09 09:09 AM, dELtaluca wrote: In short, the answer is NO.

It probably should go without saying, but higher levels execute first as well:

trace("Layer 1");
// ---
trace("Layer 2");
// ---
Outputs:
Layer 1
Layer 2
BBS Signature

Elated

Vexagon

Reply To Post Reply & Quote

Posted at: 9/20/09 09:36 AM

Vexagon LIGHT LEVEL 11

Sign-Up: 02/11/09

Posts: 246

Even better to know =D
I already thought so.
Though I usually work with 3 layers, bg, game and fg.
Keeps the movie organized =D

if (script == "ActionScript 3.0") {
return happyFace;
}

BBS Signature

None

LeechmasterB

Reply To Post Reply & Quote

Posted at: 9/20/09 10:22 AM

LeechmasterB EVIL LEVEL 16

Sign-Up: 04/01/05

Posts: 942

If you use AS 3.0 then you should use classes and a document class. Forget about timeline code and layers and all those silly ideas.


None

Vexagon

Reply To Post Reply & Quote

Posted at: 9/20/09 02:05 PM

Vexagon LIGHT LEVEL 11

Sign-Up: 02/11/09

Posts: 246

I should but for now I'll stick with the timeline.

if (script == "ActionScript 3.0") {
return happyFace;
}

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 03:48 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!