# Hey lost!.. =)

**URL:** <https://forum.kirupa.com/t/hey-lost/8636>\
**Category:** flash\
**Created:** [November 25, 2002, 6:05pm UTC](https://forum.kirupa.com/t/hey-lost/8636 "2002-11-25T18:05:47Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raydred](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/raydred/32/65_2.png) [@Raydred](https://forum.kirupa.com/u/Raydred)\
**Post date:** [November 25, 2002, 6:05pm UTC](https://forum.kirupa.com/t/hey-lost/8636/1 "2002-11-25T18:05:47Z")

</div>

Lost i remember you saying that a MC can have the "On(press) and on(rollOver) button events… is that correct? if so, whats the exact code, and if its not correct, then… uhh… my friend wanted to know (that way i dont look dumb hehehehe oh wait… ) hehe =)

Lemme know man thanks =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 25, 2002, 6:10pm UTC](https://forum.kirupa.com/t/hey-lost/8636/2 "2002-11-25T18:10:42Z")

</div>

Well there are 2 ways.

1. Instead of onClipEvent handlers you can use on handlers

```auto
on (release){
//do this
}

```

Just like on a button.

2)On a frame (or inside an onClipEvent handler) you can do this…

```auto
_root.yourClip.onRelease = function(){
//do this
}

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 25, 2002, 6:22pm UTC](https://forum.kirupa.com/t/hey-lost/8636/3 "2002-11-25T18:22:54Z")

</div>

You can´t mix different handlers in the same script.

=)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 25, 2002, 6:26pm UTC](https://forum.kirupa.com/t/hey-lost/8636/4 "2002-11-25T18:26:40Z")

</div>

Cool!! Thanks alot =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 25, 2002, 6:31pm UTC](https://forum.kirupa.com/t/hey-lost/8636/5 "2002-11-25T18:31:25Z")

</div>

ok another question,

Is there a way to get the top level of a loaded movie?

Ex:

We all know \_root is the root of everything…

now when i load a movie into say,

\_root.loadThis

and the movie i loaded has an MC called insideMc, then the path becomes

\_root.loadThis.insideMc

Is there a way to get the top level of the Movie that is loaded, i mean the loaded movie’s root?

I tried \_parent, but it gets that object…

and im dealing with dynamic stuff that i cant really manually tell how deep an mc can get… =) any ideas?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 25, 2002, 6:33pm UTC](https://forum.kirupa.com/t/hey-lost/8636/6 "2002-11-25T18:33:30Z")

</div>

oh raydred! I saw your post count!

> Posts: 784392011.983

I was like whatttaaa?  
lol

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 25, 2002, 6:37pm UTC](https://forum.kirupa.com/t/hey-lost/8636/7 "2002-11-25T18:37:15Z")

</div>

lol i decided to get kinda clever and see how many people noticed lol =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 25, 2002, 6:56pm UTC](https://forum.kirupa.com/t/hey-lost/8636/8 "2002-11-25T18:56:29Z")

</div>

“Anyone? Anyone?..”

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 25, 2002, 7:01pm UTC](https://forum.kirupa.com/t/hey-lost/8636/9 "2002-11-25T19:01:37Z")

</div>

> \*Originally posted by Raydred \*  
> **ok another question…**

WhaaaT??? Can you explain it better?

=)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 25, 2002, 7:11pm UTC](https://forum.kirupa.com/t/hey-lost/8636/10 "2002-11-25T19:11:24Z")

</div>

not really but i can try =)

what i want to get is the root of the loaded Movie, not the root of the entire thing…

I have movie1… and im loading in Movie2…

Movie 2 has an MC and its absolute path is…

\_root.McinsideofMovie2.

when i load in movie 2, the absolute path becomes

\_root.LoadedMc.McinsideofMovie2.

But this thing im building is dynamic…

I want to get the \_root of Movie2 so i can build code thats relative.

I used \_parent, but its not working the way i want it to…

thats the best that i can explain it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 25, 2002, 7:41pm UTC](https://forum.kirupa.com/t/hey-lost/8636/11 "2002-11-25T19:41:48Z")

</div>

Did you try just \_root.loadedMovie ??

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 26, 2002, 12:11am UTC](https://forum.kirupa.com/t/hey-lost/8636/12 "2002-11-26T00:11:16Z")

</div>

raydred what happened to the little treasure chest? fish ball kept me amused for hours.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 26, 2002, 12:15am UTC](https://forum.kirupa.com/t/hey-lost/8636/13 "2002-11-26T00:15:27Z")

</div>

It is still there. It is an “easter egg” in his footer, you just have to find it :evil:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 26, 2002, 5:37pm UTC](https://forum.kirupa.com/t/hey-lost/8636/14 "2002-11-26T17:37:34Z")

</div>

lol i cant believe people like fish ball! lol

I didnt put any effort in coding it =) perhaps i should =)

But actually I have a game coming on soon =)

* * *

Back to my problem,

I could to a \_root.loadedMovie, but im trying to control MC’s within MC’s and sometimes i neeed the path…

I suppose i could get the path and parse it etc…

its more work than its worth so… i’ll figure out another way lol =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 27, 2002, 5:41am UTC](https://forum.kirupa.com/t/hey-lost/8636/15 "2002-11-27T05:41:46Z")

</div>

isn’t there a command that will return the entire path of an object?

not sure if that could be used to solve the problem or not… but I certainly remember something about that.

though I’m not sure if I understand the question either.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 27, 2002, 4:57pm UTC](https://forum.kirupa.com/t/hey-lost/8636/16 "2002-11-27T16:57:39Z")

</div>

Im just looking for an objects path, relative to the movie itself, and not the movie in which its loading.

\_parerent.mc will work, but what if its like 6 levels?

\_parent.\_parent.\_parent.\_parent.\_parent.\_parent.mc

i want to do something like this…

\_ThisMovieRoot.whatever.whatever.mc

instead of \_root.Loadedmc.loadedMovie.whatever.whatever.mc;

never mind, i cant explain this any further lol , thanks for all your help =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 27, 2002, 5:32pm UTC](https://forum.kirupa.com/t/hey-lost/8636/17 "2002-11-27T17:32:42Z")

</div>

Now I understand you, sorry for the delay…

Use \_level !

example: When you press a button on the main movie, you want to play the movieclip **ball** in the movie loaded in the **level 2** , the code for the button shoud look like this:

on (press) {  
\_level2.ball.play();  
}

Got it?

=)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 27, 2002, 6:40pm UTC](https://forum.kirupa.com/t/hey-lost/8636/18 "2002-11-27T18:40:59Z")

</div>

would that work from the loaded movie all by itself (like if i want to test it before i load it in…)

?

Also, does \_levels have control on where they are at (the x y values) ?

Levels seems like it’ll work, but if the mc’s give me better control i’ll stick with em =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 27, 2002, 6:56pm UTC](https://forum.kirupa.com/t/hey-lost/8636/19 "2002-11-27T18:56:47Z")

</div>

the nice thing is that they are absolute.

=)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 27, 2002, 7:08pm UTC](https://forum.kirupa.com/t/hey-lost/8636/20 "2002-11-27T19:08:39Z")

</div>

Hmm…

_smile_

HMMMMMM…

So… hmm…

Alright, im understanding that…

but how do you position it?

\_level32.\_x = 5;

?? like dat?

[Next page](https://forum.kirupa.com/t/hey-lost/8636.md?page=2)
