# Load movie something?

**URL:** <https://forum.kirupa.com/t/load-movie-something/4643>\
**Category:** Uncategorized\
**Created:** [August 15, 2002, 3:33am UTC](https://forum.kirupa.com/t/load-movie-something/4643 "2002-08-15T03:33:21Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![chalkboard2](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@chalkboard2](https://forum.kirupa.com/u/chalkboard2)\
**Post date:** [August 15, 2002, 3:33am UTC](https://forum.kirupa.com/t/load-movie-something/4643/1 "2002-08-15T03:33:21Z")

</div>

simple question here, just cant seem to figure it out. i want it so that when someone clicks a button, an animation goes. kinda like when a button is clicked and a little box comes up and it gets bigger in size. an example is at [www.superhere.net](http://www.superhere.net) …when you click the words on the bottom, a box pops up. im making this simple question really complicated, haha. all i want is a box (movie clip) to pop up when i click a button. ive tried putting it in both keyframes of the _down_ and _hit_ frames but nothing seems to work. help me out if you can heh.

---

<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:** [August 15, 2002, 6:51am UTC](https://forum.kirupa.com/t/load-movie-something/4643/2 "2002-08-15T06:51:33Z")

</div>

You need to make the animation an MC on its own - seperate from the button. Then when you place the MC on stage give it an instance name, like “window”. Then go to your button and insert a telltarget code such as this:

on (release) {  
tellTarget ("\_root.window") {  
play();  
}  
}

This tells the button when a user clicks it to play the animation called “window” on the main stage. This is a very simple explanation. Hope it helps, post any more questions you may have.  
Peace

PS be sure you have a stop action in the MC named “window” so it doesnt play on its own.

---

<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:** [August 15, 2002, 6:09pm UTC](https://forum.kirupa.com/t/load-movie-something/4643/3 "2002-08-15T18:09:20Z")

</div>

ok so i made the mc and added the actionscript to the button, but where would i place the mc? just on the main stage? or in one of the keyframes of the button? whenever i play it, it keeps saying

Target not found: Target="\_root.window" Base="\_level0"

maybe its something i did wrong but this only pops up when i click the button. is there a certain place i should put the mc?

---

<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:** [August 15, 2002, 6:33pm UTC](https://forum.kirupa.com/t/load-movie-something/4643/4 "2002-08-15T18:33:06Z")

</div>

Two things, mi amigo…

tell Target is a deprecated command. So, you should try not to use it.

I think what you’re really looking for is AttachMovie

in order to use it, your MC in your library must have a linkage ID

myMovieClip.attachMovie(idName, newName, depth [, initObject] )

is the syntax.

---

<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:** [August 15, 2002, 6:41pm UTC](https://forum.kirupa.com/t/load-movie-something/4643/5 "2002-08-15T18:41:23Z")

</div>

Give the movie clip an “Instance Name.” Then put this action on the button:

on (release) {  
tellTarget ("\_root.INSTANCENAME") {  
play();  
}  
}

Of course the place with INSTANCENAME is the name of the Instance Name on the movie clip.

---

<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:** [August 15, 2002, 8:04pm UTC](https://forum.kirupa.com/t/load-movie-something/4643/6 "2002-08-15T20:04:48Z")

</div>

Tell us if it worked. I tested it and my actionscript worked, and I would recommend it because it doesn’t get too complicated. (salesman :))

---

<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:** [August 16, 2002, 3:20am UTC](https://forum.kirupa.com/t/load-movie-something/4643/7 "2002-08-16T03:20:12Z")

</div>

ok so the movie clip doesnt have to be on the main timeline? just in my library? or does it…

i’ll try it out as soon as i figure out where it goes! haha thanks for the 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:** [August 16, 2002, 7:46am UTC](https://forum.kirupa.com/t/load-movie-something/4643/8 "2002-08-16T07:46:11Z")

</div>

it does for the last example… In the case of using “attachMovie();” method, it doesn’t need to be on the stage.

---

<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:** [August 16, 2002, 5:09pm UTC](https://forum.kirupa.com/t/load-movie-something/4643/9 "2002-08-16T17:09:08Z")

</div>

ok ive almost got it to work. when i click the button but done let go, the movie clip plays…but as soon as i let go of the button, this pops up:

Target not found: Target="\_root.box" Base="\_level0"

do you know what i did 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:** [August 18, 2002, 1:34am UTC](https://forum.kirupa.com/t/load-movie-something/4643/10 "2002-08-18T01:34:07Z")

</div>

i was checking out some of the tutorials here and came across this one  
[http://www.kirupa.com/developer/flash5/telltarget.asp](http://www.kirupa.com/developer/flash5/telltarget.asp)

even though its for flash 5 i figured it would still work in flash mx. i have the same code as in the tutorial but when i test the movie this pops up

Target not found: Target="/box" Base="\_level0"

does it not work the same in flash mx?

---

<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:** [August 18, 2002, 1:48am UTC](https://forum.kirupa.com/t/load-movie-something/4643/11 "2002-08-18T01:48:51Z")

</div>

In either case, it sounds like you forgot to name the mc instance called “box”. I would double check to make sure it’s there, and to make sure that it resides on the \_root.

---

<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:** [August 18, 2002, 2:10am UTC](https://forum.kirupa.com/t/load-movie-something/4643/12 "2002-08-18T02:10:11Z")

</div>

ok i went back and checked, and the MC is named box and the \_root thing is there and it still doesnt work. ☹

soo frustrating!

---

<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:** [August 18, 2002, 2:20am UTC](https://forum.kirupa.com/t/load-movie-something/4643/13 "2002-08-18T02:20:09Z")

</div>

just attach your fla (zip file) or send it to me at [iammontoya@yahoo.com](mailto:iammontoya@yahoo.com)

I’ll take a look.
