# (MX) Interactive Movie Clips

**URL:** https://forum.kirupa.com/t/mx-interactive-movie-clips/24468
**Category:** flash
**Created:** [July 1, 2003, 3:29am UTC](https://forum.kirupa.com/t/mx-interactive-movie-clips/24468 "2003-07-01T03:29:47Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![kingfish](https://avatars.discourse-cdn.com/v4/letter/k/cab0a1/32.png) [@kingfish](https://forum.kirupa.com/u/kingfish)
#### Post date: [July 1, 2003, 3:29am UTC](https://forum.kirupa.com/t/mx-interactive-movie-clips/24468/1 "2003-07-01T03:29:47Z")

</div>

I’ve been wracking my brain over this and I’m getting nowhere. Hopefully, someone can understand this and give me a few pointers.

I’ve managed to create an master swf which loads other, smaller swf files at the click of a button. I’m using the loadmovie command and loading them into other layers. I need for those smaller movies to be able to control elements of the original movie. For example:

Mainmovie.swf contains a graphic object called graphic\_1  
At a button click, Submovie.swf is loaded into layer one.

I need to make graphic\_1 invisible when Submovie.swf reaches frame 15.

Is there any way Submovie can influence the \_visible or \_alpha properties of an object located in Mainmovie? I’ve tried several different ways to do this with no luck.

Hopefully, a more learned master can shed some light on the problem.

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 1, 2003, 6:32am UTC](https://forum.kirupa.com/t/mx-interactive-movie-clips/24468/2 "2003-07-01T06:32:48Z")

</div>

first off, if you’re actually using a Graphic symbol, change its behaviour to MovieClip. a Graphic symbol has no properties or methods.

to reference the instance, as long as it is located in the main timeline, you use \_root.

```auto
_root.graphic_1._visible = false;

```

---

<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 1, 2003, 2:22pm UTC](https://forum.kirupa.com/t/mx-interactive-movie-clips/24468/3 "2003-07-01T14:22:16Z")

</div>

Thanks for the response. Apparently, I’m still doing something screwy. Here is the exact script that calls the submovie:  
on (press) {  
loadMovie(“switch\_web.swf”, 2);  
gotoAndStop(5);  
}

The clip switch\_web.swf uses the following code:  
onClipEvent (load) {  
play();  
}  
And at frame #15 in the actions layer:  
\_root.backmask.\_visible = false;

backmask is set as a movie clip and exists in its own layer. For some reason, it remains visible no matter what I do.

Any more thoughts as to what I’m doing wrong? I really appreciate 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: [July 1, 2003, 3:01pm UTC](https://forum.kirupa.com/t/mx-interactive-movie-clips/24468/4 "2003-07-01T15:01:02Z")

</div>

nope, i don’t know what could be wrong… can you attach your FLA’s? 🙂

---

<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 1, 2003, 5:43pm UTC](https://forum.kirupa.com/t/mx-interactive-movie-clips/24468/5 "2003-07-01T17:43:45Z")

</div>

The original files were too large to attach, so I’ve recreated simple files that experience the same problem. The main file test.swf loads bounce.swf, which in turn should make an object invisible in the root timeline.

Hopefully, I’ve attached the files correctly.

---

<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 1, 2003, 5:44pm UTC](https://forum.kirupa.com/t/mx-interactive-movie-clips/24468/6 "2003-07-01T17:44:32Z")

</div>

Here’s the second fla file

Thanks again!

---

<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 1, 2003, 5:59pm UTC](https://forum.kirupa.com/t/mx-interactive-movie-clips/24468/7 "2003-07-01T17:59:41Z")

</div>

You forgot to give the movieclip an instance name. Click on the movieclip, then look in the properties panel, on the left, there’s a box that says [COLOR=blue]\<\*\*instance name\>[/COLOR]. There, you have to fill in the instance name of the movieclip. That would be backmask. Otherwise, the movieclip won’t be recognised.

---

<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 1, 2003, 6:11pm UTC](https://forum.kirupa.com/t/mx-interactive-movie-clips/24468/8 "2003-07-01T18:11:46Z")

</div>

Thanks.

I went to test.fla, and added the instance name - I called it testinstance.

Then I went to bounce.fla and changed the script at frame 10 to read:  
\_root.testinstance.\_visible = false;

It’s not working. The “test” symbol is still there throughout.

_sigh_

---

<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 2, 2003, 2:47am UTC](https://forum.kirupa.com/t/mx-interactive-movie-clips/24468/9 "2003-07-02T02:47:34Z")

</div>

[http://www.macromedia.com/support/flash/action\_scripts/actionscript\_dictionary/actionscript\_dictionary633.html](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary633.html)

the problem is that you’re loading the movie into level 2, replace \_root with \_level0 and it should work. =)

[size=1]and also, as Voetsjoeba mentioned, don’t forget the instance name. ;)[/size]

---

<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 2, 2003, 4:35am UTC](https://forum.kirupa.com/t/mx-interactive-movie-clips/24468/10 "2003-07-02T04:35:28Z")

</div>

THANKS THANKS THANKS!

It works perfectly now. I think I even understand why (maybe).

I appreciate the patience and advice.

---

<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 2, 2003, 5:14am UTC](https://forum.kirupa.com/t/mx-interactive-movie-clips/24468/11 "2003-07-02T05:14:36Z")

</div>

no problem. 😛

by the way, welcome to kirupa forum!! 😉
