# Stupid easy questions

**URL:** <https://forum.kirupa.com/t/stupid-easy-questions/186794>\
**Category:** Uncategorized\
**Created:** [April 24, 2006, 5:40pm UTC](https://forum.kirupa.com/t/stupid-easy-questions/186794 "2006-04-24T17:40:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kpxnamja](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@kpxnamja](https://forum.kirupa.com/u/kpxnamja)\
**Post date:** [April 24, 2006, 5:40pm UTC](https://forum.kirupa.com/t/stupid-easy-questions/186794/1 "2006-04-24T17:40:51Z")

</div>

hey I have several “noob-ed” questons:

1. Is there any way to do an “if-” statement on a frame?

2. \*If I want to create a timer, (this game will be played from a cd) what will dynamically display the time, what will be the best option?  
getTimer()? or a setInterval? What’s the pro’s / con’s of both?

3. I seem to have a depth issue where a mc seems to over lap the other mc even though perspective wise it shouldn’t _(sorry bad wording)_ basically how do I intertwine two mc top/bottom? I hear “swap-” something does the job?

sorry for the handful of questions… thanks.

---

<div class="post-metadata">

**Author:** ![KIERIOSHIMOTO](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@KIERIOSHIMOTO](https://forum.kirupa.com/u/KIERIOSHIMOTO)\
**Post date:** [April 24, 2006, 6:02pm UTC](https://forum.kirupa.com/t/stupid-easy-questions/186794/2 "2006-04-24T18:02:48Z")

</div>

yer how are you going to use the if statement on the frame? usually if you used an if statement on the frame it would be inside a function created on the frame.

---

<div class="post-metadata">

**Author:** ![KIERIOSHIMOTO](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@KIERIOSHIMOTO](https://forum.kirupa.com/u/KIERIOSHIMOTO)\
**Post date:** [April 24, 2006, 6:09pm UTC](https://forum.kirupa.com/t/stupid-easy-questions/186794/3 "2006-04-24T18:09:06Z")

</div>

i dont know about your depth thing but you time, i found an example on [http://www.n99creations.com](http://www.n99creations.com).

---

<div class="post-metadata">

**Author:** ![Joppe](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Joppe](https://forum.kirupa.com/u/Joppe)\
**Post date:** [April 24, 2006, 6:33pm UTC](https://forum.kirupa.com/t/stupid-easy-questions/186794/4 "2006-04-24T18:33:29Z")

</div>

\_root.movieclip.swapDepths(_number_ or \_getNextHighestDepth)

---

<div class="post-metadata">

**Author:** ![kpxnamja](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@kpxnamja](https://forum.kirupa.com/u/kpxnamja)\
**Post date:** [April 24, 2006, 7:27pm UTC](https://forum.kirupa.com/t/stupid-easy-questions/186794/5 "2006-04-24T19:27:00Z")

</div>

ah thanks for the reply, but I have a follow up…

For the if statement on a frame, If I wanted to say compare something would this work?

function test(x) {  
if (x==0)  
do this;  
}

test(0);

## without a handler?

For the swap method,

```
_root.movieclip.swapDepths(*number* or _getNextHighestDepth)

```

is 0 the highest in rank?

---

<div class="post-metadata">

**Author:** ![Nich](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@Nich](https://forum.kirupa.com/u/Nich)\
**Post date:** [April 24, 2006, 8:30pm UTC](https://forum.kirupa.com/t/stupid-easy-questions/186794/6 "2006-04-24T20:30:30Z")

</div>

0 is lowest  
As far as I know, anyhting that you draw/drag on to the stage manually gets a negative depth value.

---

<div class="post-metadata">

**Author:** ![KIERIOSHIMOTO](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@KIERIOSHIMOTO](https://forum.kirupa.com/u/KIERIOSHIMOTO)\
**Post date:** [April 25, 2006, 2:51am UTC](https://forum.kirupa.com/t/stupid-easy-questions/186794/7 "2006-04-25T02:51:45Z")

</div>

> [@kpxnamja](#):
>
> ah thanks for the reply, but I have a follow up…
> 
> For the if statement on a frame, If I wanted to say compare something would this work?
> 
> function test(x) {  
> if (x==0)  
> do this;  
> }
> 
> test(0);
> 
> ## without a handler?
> 
> For the swap method,
> 
> ```
> _root.movieclip.swapDepths(*number* or _getNextHighestDepth)
> 
> ```
> 
> is 0 the highest in rank?

try it…

function test();  
if (5=\>20){  
trace (“5 is equal to less then ten”);  
}  
test ();
