Why put actions in its own layer...?

why…?

I am confused.

be more precise. . . .

Well, in a lot of tutorials, I see AS’s in their own layers, a layer without any elements except for the AS and the layer is usually named “actions”. Why would you do that? What advantages are there to doing that?

I think the only advantage of doing that is to keep your timeline organized. When you’re working on a massive project, it’s nice to have all the actions on it’s own layer instead of being scattered all over on the other layers.

and whats wrong with organization? =)

I do the same thing. For instance, if I wanted to make a movieClip with it’s own actions, if a graphic never changes, You can just put it in all of the frames. With the actions, they need to be keyframes and, knowing me, I could screw up the graphic object if I move/add/delete frames of actions on the same layer in the timeline.

(-:

I put all my stop(); actions on their own layer and the gotoAndPlay’s on another layer. That’s how organized I am. :stuck_out_tongue:

Another thing is that Director has its own ‘layer’ for handling actions at the top of all the other layers in the timeline. Anyone with a Director background (like me), a MM program which has be around for a while before Flash, will just instinctively throw things in their own layer at the top there.

I usually have 3 constant layers in my Flash movies. Border, Actions and Frame Labels… followed by any content layers - with that usually a background layer at the very bottom too.
:slight_smile:

so all it is is organization? Does it ever change anything or require a change?

change anything? not really. Order does matter though. Script in higher layers always get run first. So if you have your code scattered and then decide to switch some layers around, you might inadvertently change the operation order of some scripts screwing you up. Keeping them in one layer makes it easy to find, access and maintain order of.

ahhhh, I C o_O thank you all.

*Originally posted by senocular *
**I usually have 3 constant layers in my Flash movies. Border, Actions and Frame Labels… followed by any content layers - with that usually a background layer at the very bottom too.
:slight_smile: **
I do the same exactly :slight_smile: Actually, I’ve recently split my code layer into 3: one for the variables init, one for the functions, and one for the function calls… :crazy: