This happens in F8 as well, so its a macromedia thing

OK i have a huge problem:
A while back while learning about how functions work in AS 2.0 i understood that i can call a function before declaring it and it should work.

This works within the same frame:

Code:
test_function();

function test_function() {
  trace("test");
}
What i dont get is if i have 2 layers and i declare the function on the bottom layer and call it in the top layer (the one above), it doesn't work.
I have to switch the layer order to get this working

Is this a bug i have or just macromedia stupidity?

How can flash not recongnize a function if its on the same frame in the timeline, just a different layer?