# Levels/target challenge

**URL:** <https://forum.kirupa.com/t/levels-target-challenge/312>\
**Category:** flash\
**Created:** [July 13, 2002, 4:56am UTC](https://forum.kirupa.com/t/levels-target-challenge/312 "2002-07-13T04:56:54Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![niisa](https://avatars.discourse-cdn.com/v4/letter/n/9dc877/32.png) [@niisa](https://forum.kirupa.com/u/niisa)\
**Post date:** [July 13, 2002, 4:56am UTC](https://forum.kirupa.com/t/levels-target-challenge/312/1 "2002-07-13T04:56:54Z")

</div>

I had this code from the tutorial and it does not work when the button is inside a movieclip, it works fine when it is attached to a button on the main timeline. I am putting this on a layer that only consists of code.

title\_mc.onPress = function() {  
\_root.createEmptyMovieClip(“topic\_bg”, 1);  
loadMovie(“topic1.swf”, “\_root.topic\_bg”);  
\_root.topic\_bg.\_x = 0;  
\_root.topic\_bg.\_y = 0;  
};

Whats wrong?

---

<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:** [July 13, 2002, 1:28pm UTC](https://forum.kirupa.com/t/levels-target-challenge/312/2 "2002-07-13T13:28:42Z")

</div>

The movie loads all right… Is it a problem of position ?

pom :asian:

---

<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:** [July 14, 2002, 9:48am UTC](https://forum.kirupa.com/t/levels-target-challenge/312/3 "2002-07-14T09:48:23Z")

</div>

It does not load, the buttons is inside a movieclip. But if I put the button in the main timeline and not inside the movieclip; it works fine. It loads at the correct layer/position.

The buttons is not working when it is inside the movieclip!

---

<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:** [July 14, 2002, 4:25pm UTC](https://forum.kirupa.com/t/levels-target-challenge/312/4 "2002-07-14T16:25:33Z")

</div>

It does for me. Attach your fla.

pom :asian:

---

<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:** [July 15, 2002, 1:41am UTC](https://forum.kirupa.com/t/levels-target-challenge/312/5 "2002-07-15T01:41:53Z")

</div>

Attached is the file that I am working with. And inside it you’ll see the movieclip buttons and a button that is just a button. that button works, but the movieclip does not.  
Thanks for looking at it coz I am due to a dateline.

---

<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:** [July 15, 2002, 4:03am UTC](https://forum.kirupa.com/t/levels-target-challenge/312/6 "2002-07-15T04:03:26Z")

</div>

Very cool navigation, my man. Nice work, I love it. I hope you don’t mind if I keep the fla, and that I get inspiration from it in the future 🙂

Anyway, concerning your trouble, it’s a problem of targetting. Just put

```auto
large.title1_mc.onPress = function() {

```

And by the way, it’s usually a good thing to put all your functions at the same place, otherwise it can be very difficult to see how everything works.

Cheers.

pom :asian:

---

<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:** [July 15, 2002, 4:09am UTC](https://forum.kirupa.com/t/levels-target-challenge/312/7 "2002-07-15T04:09:41Z")

</div>

It works, finally!  
You’re the guy man!  
The fla, take it. I copied the original from some tutorial but I tweak a little bit for my purpose.

Thanks a lot,man!

---

<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:** [July 15, 2002, 4:21am UTC](https://forum.kirupa.com/t/levels-target-challenge/312/8 "2002-07-15T04:21:40Z")

</div>

By the way, where are you in Malaysia ? Cos I’m studying in Singapore right now, and I’ve been there a bit. Just curious.

pom :asian:

---

<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:** [July 15, 2002, 5:55am UTC](https://forum.kirupa.com/t/levels-target-challenge/312/9 "2002-07-15T05:55:39Z")

</div>

I am in Jalan Kuchai Lama,Kuala Lumpur. It is close to the old airport in Sungei Besi area.  
Interesting though, I did spent about 4 months working in Redhill and at that time I stayed in the company’s hostel in Yishun.  
What a small world!  
What do u study BTW?

---

<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:** [July 15, 2002, 6:13am UTC](https://forum.kirupa.com/t/levels-target-challenge/312/10 "2002-07-15T06:13:33Z")

</div>

Computer and Electrical engineering in NTU. I started today ! But the real stuff comes this evening, with my first postgraduate course. Makes me sweat. Or maybe it’s the heat…

What are you doing ?

pom :asian:

---

<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:** [July 15, 2002, 6:23am UTC](https://forum.kirupa.com/t/levels-target-challenge/312/11 "2002-07-15T06:23:18Z")

</div>

Multimedia Design in a Feng Shui company. NTU is a good place to be. Wish you all the best! You can do it man!  
Best of all make yourself proud, have your private victories! They need not to be Public Victory coz you know who you are and that is really important!

---

<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:** [July 15, 2002, 6:29am UTC](https://forum.kirupa.com/t/levels-target-challenge/312/12 "2002-07-15T06:29:00Z")

</div>

Thanks ! And keep up the good work (and show us when you’re done…).

pom :asian:
