# \[FMX\] What executes when?

**URL:** <https://forum.kirupa.com/t/fmx-what-executes-when/96429>\
**Category:** Uncategorized\
**Created:** [December 9, 2003, 9:57am UTC](https://forum.kirupa.com/t/fmx-what-executes-when/96429 "2003-12-09T09:57:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bjarne\_BZR](https://avatars.discourse-cdn.com/v4/letter/b/ecc23a/32.png) [@Bjarne\_BZR](https://forum.kirupa.com/u/Bjarne_BZR)\
**Post date:** [December 9, 2003, 9:57am UTC](https://forum.kirupa.com/t/fmx-what-executes-when/96429/1 "2003-12-09T09:57:42Z")

</div>

Ello there!

I’m making a 4 level parralax scrolling platform game in Flash MX, and I’ve run into a problem:

It seems that I cant predict in what order the ActionScript is executed… I’m not even sure there is a guarantee that it WILL be executed :cyclops:

So, can anyone tell me:

1. In what order is ActionScript:s executed? By layer, creation time, load time, z value of movie clip? I cant find any logic to it!
2. Can I be certain that the code is executed? If not, when won’t it be? :upset:

Thanx
