# 2 Basic questions about AS2

**URL:** <https://forum.kirupa.com/t/2-basic-questions-about-as2/240141>\
**Category:** Uncategorized\
**Created:** [September 29, 2007, 6:29pm UTC](https://forum.kirupa.com/t/2-basic-questions-about-as2/240141 "2007-09-29T18:29:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ultra](https://avatars.discourse-cdn.com/v4/letter/u/a587f6/32.png) [@Ultra](https://forum.kirupa.com/u/Ultra)\
**Post date:** [September 29, 2007, 6:29pm UTC](https://forum.kirupa.com/t/2-basic-questions-about-as2/240141/1 "2007-09-29T18:29:23Z")

</div>

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.

```auto

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
