# Using createEmptyMovieClip()

**URL:** <https://forum.kirupa.com/t/using-createemptymovieclip/57504>\
**Category:** flash\
**Created:** [July 13, 2004, 8:15pm UTC](https://forum.kirupa.com/t/using-createemptymovieclip/57504 "2004-07-13T20:15:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![profit\_500](https://avatars.discourse-cdn.com/v4/letter/p/6f9a4e/32.png) [@profit\_500](https://forum.kirupa.com/u/profit_500)\
**Post date:** [July 13, 2004, 8:15pm UTC](https://forum.kirupa.com/t/using-createemptymovieclip/57504/1 "2004-07-13T20:15:38Z")

</div>

[color=blue]c\_mc2 = \_root.createEmptyMovieClip(“main\_text”, 4);  
c\_mc2.\_x = 0;  
c\_mc2.\_y = 359;[/color]

If i use this method to create an empty clip and then once i am done with the clip i unload the movie which was previously in it, what happens to the clip. Do i have to re-create it if i want to reuse the empty movie clip again with the same name?

please help me someone!

---

<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, 2004, 8:23pm UTC](https://forum.kirupa.com/t/using-createemptymovieclip/57504/2 "2004-07-13T20:23:18Z")

</div>

> [@profit\_500](#):
>
> [color=blue]c\_mc2 = \_root.createEmptyMovieClip(“main\_text”, 4);  
> c\_mc2.\_x = 0;  
> c\_mc2.\_y = 359;[/color]
> 
> If i use this method to create an empty clip and then once i am done with the clip i unload the movie which was previously in it, what happens to the clip. Do i have to re-create it if i want to reuse the empty movie clip again with the same name?
> 
> please help me someone!

if you unload the clip, it’s gone. the name should turn up undefined. so yeah, you pretty much have to recreate the clip once it’s unloaded.

---

<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, 2004, 8:25pm UTC](https://forum.kirupa.com/t/using-createemptymovieclip/57504/3 "2004-07-13T20:25:58Z")

</div>

So to re-create it i have to put that code on the button or on the frame.

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:** [July 13, 2004, 8:34pm UTC](https://forum.kirupa.com/t/using-createemptymovieclip/57504/4 "2004-07-13T20:34:55Z")

</div>

sounds like you’re trying to create a placeholder that will, at various times, contain different text. what unloads the text? if it’s other text then that will simply overwrite what is in there.

---

<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, 2004, 8:53pm UTC](https://forum.kirupa.com/t/using-createemptymovieclip/57504/5 "2004-07-13T20:53:52Z")

</div>

let say i have 2 movies loaded onto the stage. call it ‘movie.swf’ and ‘movie2.swf’

within ‘movie.swf’ i have another movie ‘text.swf’ loaded  
I have ‘menu.swf’ with ‘movie2.swf’

now is there a way for menu.swf to pass parameter and control text.swf

i hope i make sence in what i am saying here

---

<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, 2004, 8:55pm UTC](https://forum.kirupa.com/t/using-createemptymovieclip/57504/6 "2004-07-13T20:55:42Z")

</div>

i mean i know how to go down the line with \_root. function but how can i go up another move. i hope i make sence

---

<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, 2004, 9:00pm UTC](https://forum.kirupa.com/t/using-createemptymovieclip/57504/7 "2004-07-13T21:00:46Z")

</div>

you can go up with:

```auto

_parent.movie1.text.swf

```

or you can go back to the root and start from there:

```auto

_root.movie1.text.swf

```

just make sure you’re using the instance names of movie1 and text.swf in order to target them correctly.
