# Navigation Button

**URL:** <https://forum.kirupa.com/t/navigation-button/2646>\
**Category:** flash\
**Created:** [May 18, 2002, 5:56am UTC](https://forum.kirupa.com/t/navigation-button/2646 "2002-05-18T05:56:51Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [May 18, 2002, 5:56am UTC](https://forum.kirupa.com/t/navigation-button/2646/1 "2002-05-18T05:56:51Z")

</div>

A quick question for anyone who has patience with this newbie. I’m using Flash MX. I’m trying to load a movie contact.swf from a button. Now I am able to get it to load and stop at a certain frame. What I want to do is be able to hit the same button again and have the contact.swf movie continue it’s play which is a fade out. Can this be done? And what might the code look like? Sorry if this question has been asked before. Thank you.

---

<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:** [May 18, 2002, 6:33am UTC](https://forum.kirupa.com/t/navigation-button/2646/2 "2002-05-18T06:33:49Z")

</div>

What is the current action script on the button?

---

<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:** [May 18, 2002, 6:58am UTC](https://forum.kirupa.com/t/navigation-button/2646/3 "2002-05-18T06:58:10Z")

</div>

I have been trying everything. Can I post here a possible second variation? Can I control the contact button (when clicked) to load a .swf file into level 2 replacing the current movie? Then, click it again and have nothing happen?

---

<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:** [May 18, 2002, 7:25am UTC](https://forum.kirupa.com/t/navigation-button/2646/4 "2002-05-18T07:25:58Z")

</div>

yup… I understand the question, I’m just wondering what the action script is that it currently on that button. The one that loads the other movie. Please tell me that and then I’ll let you in on a trip method where by you can have it do something else on a second click. I need the code so that I have a full understanding of what methods you are using to load your second swf.

---

<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:** [May 18, 2002, 8:49am UTC](https://forum.kirupa.com/t/navigation-button/2646/5 "2002-05-18T08:49:40Z")

</div>

You could for instance take a movie clip with a circle drawn in it, and then put that code to it :

```auto
 on (press) {
   loadMovieNum ("whatever.swf",2) ;
   this.enabled = false ;
}

```

This will desactivate the button (which is in fact a movie clip).

Is that of any help ?

pom 0]

---

<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:** [May 18, 2002, 3:03pm UTC](https://forum.kirupa.com/t/navigation-button/2646/6 "2002-05-18T15:03:36Z")

</div>

OK. Here is the script for the contact button:

on (release) {  
loadMovieNum(“contact.swf”, 2);  
unloadMovieNum(2);

I just need the contact button to be disabled after the movie plays. This way if the user clicks on some other button such as"home" the current movie will be replaced which hopefully resets the contact button. Make sense?

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:** [May 18, 2002, 4:21pm UTC](https://forum.kirupa.com/t/navigation-button/2646/7 "2002-05-18T16:21:19Z")

</div>

You’d better put that unloadMovie thing somewhere else, I guess (the home button). I’m not sure how it works though.

pom 0]
