2 Basic questions about AS2

Hi,

my action script skills are (still) very limited and I have two basic questions because I’m kinda stuck here…

  1. Is it possible to run an ‘if’ statement after an ‘on release’ statement ?

e.g.


on (release){
     if (_root.a ==0){
        play();
}
}

Every time I try to run code like this nothing happens…

  1. I declared a function on frame 1 of my timeline (_root) and I have no problems calling that function and running it as long as the code that calls the function is on the timeline (_root) as well.

But if I try to call the function from within a movieclip that is placed on the timeline, the function won’t start…

Do I have to refer to the main timeline to call that function and if so how do I do that ?

e.g.

usually I just call my function with “fadedown();”

I tried “_root.fadedown();” but that doesn’t work…

Thanx for your help in advance !

Mike