# Please Fix My Button

**URL:** <https://forum.kirupa.com/t/please-fix-my-button/21373>\
**Category:** flash\
**Created:** [May 21, 2003, 12:48am UTC](https://forum.kirupa.com/t/please-fix-my-button/21373 "2003-05-21T00:48:45Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![beatnickbrown](https://avatars.discourse-cdn.com/v4/letter/b/46a35a/32.png) [@beatnickbrown](https://forum.kirupa.com/u/beatnickbrown)\
**Post date:** [May 21, 2003, 12:48am UTC](https://forum.kirupa.com/t/please-fix-my-button/21373/1 "2003-05-21T00:48:45Z")

</div>

Could someone please help me turn this button into a fluid morphing button? I want the animation to finish after the click step, at the end of which, I’d like it to go back to the last frame of the over step… until the mouse drags off with reverse animation on the over step.  
Your template will help me sleep… I need to sleep… it’s almost 10am and I’ve been up nearly 24hrs… please, have a look.  
thanks-  
bnb

for a more detailed description of what I’m trying to do, see my previous post:  
[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=23883](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=23883)

---

<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 21, 2003, 2:25am UTC](https://forum.kirupa.com/t/please-fix-my-button/21373/2 "2003-05-21T02:25:26Z")

</div>

[http://www.kirupa.com/developer/flash5/advroll.htm](http://www.kirupa.com/developer/flash5/advroll.htm)  
This is a tutorial designed for exactly what you want to do. (In flash 5, but it will work very similarly)

Enjoy!!

---

<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 21, 2003, 2:45am UTC](https://forum.kirupa.com/t/please-fix-my-button/21373/3 "2003-05-21T02:45:51Z")

</div>

egeek told me that tellTarget is depreciated in FMX and to use dot syntax instead. I like it because it’s less typing, more organized and I’m real lazy…ie:

[AS]  
on(rollOut){  
\_root.movieClip.gotoAndPlay(“Frame”);  
}  
[/AS]  
instead of…  
[AS]  
on(rollOut){  
tellTarget("\movieClip"){  
gotoAndPlay(“frame”);  
}  
}  
[/AS]  
(-:

---

<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 21, 2003, 3:01am UTC](https://forum.kirupa.com/t/please-fix-my-button/21373/4 "2003-05-21T03:01:25Z")

</div>

Exactly. Someone should rewrite that tutorial for MX if no one has already.

---

<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 21, 2003, 4:44pm UTC](https://forum.kirupa.com/t/please-fix-my-button/21373/5 "2003-05-21T16:44:37Z")

</div>

I am having problems entering in the script. Do I enter the script on the single outside button keyframe, or within the Up - Over - Down - Hit movies somewhere?

We’re on day two… but I am still determined.

---

<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 21, 2003, 4:48pm UTC](https://forum.kirupa.com/t/please-fix-my-button/21373/6 "2003-05-21T16:48:09Z")

</div>

on the button on the stage (not in the up down over frames)

---

<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 21, 2003, 6:22pm UTC](https://forum.kirupa.com/t/please-fix-my-button/21373/7 "2003-05-21T18:22:24Z")

</div>

okay-  
here’s what I’m doing…  
I right click the button, scroll down to actions, and enter the code as follows:

on (rollOver) {  
tellTarget (“movieClip”) {  
gotoAndPlay (“1text”);  
}  
}  
on (rollOut) {  
tellTarget (“movieClip”) {  
gotoAndPlay (“1back”);  
}  
}

It then tells me this:  
Target not found: Target=“movieClip” Base="\_level0"

what do I do?

---

<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 21, 2003, 6:40pm UTC](https://forum.kirupa.com/t/please-fix-my-button/21373/8 "2003-05-21T18:40:40Z")

</div>

you should make sure that the movieclip named “movieClip” excists

---

<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 21, 2003, 6:54pm UTC](https://forum.kirupa.com/t/please-fix-my-button/21373/9 "2003-05-21T18:54:32Z")

</div>

How do I rename my movie clips, so they’re recognized in the script?

---

<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 21, 2003, 7:00pm UTC](https://forum.kirupa.com/t/please-fix-my-button/21373/10 "2003-05-21T19:00:28Z")

</div>

allright, if you did it all right, you should have an mc somewere wich should be called by the script with the name “movieClip”

select that movieclip, and look in ur properties window, there should be an input form with gray text in it “instance name”

change that to “movieClip”

and it should work

---

<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 21, 2003, 7:12pm UTC](https://forum.kirupa.com/t/please-fix-my-button/21373/11 "2003-05-21T19:12:21Z")

</div>

I figured this was the case, but still nothing…  
I put movieClip in the little grey text area of the properties window, and kept the script the same. movieClip is the name corresponding to the movie in the “over” keyframe, and an instance of “Links”.  
Here’s the message it gave me-

Target not found: Target=“movieClip” Base="\_level0"

any thoughts?

---

<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 21, 2003, 7:14pm UTC](https://forum.kirupa.com/t/please-fix-my-button/21373/12 "2003-05-21T19:14:46Z")

</div>

now i gotta c the .fla  
downloaded and looking now… plz hold

i took a look:

yo can NOT controll frames located inside an button, including the movieclips inside the button’s frames, thats why its cutting the animations, you cannot controll them, so you should find alternatives for this, you are very close tho…

im not goin to create it for you, like in the matrix,  
i can only show you the door, you gotta walk tru it

try to animatie an MOVIECLIP with the button, instead of animating the button with 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 21, 2003, 7:26pm UTC](https://forum.kirupa.com/t/please-fix-my-button/21373/13 "2003-05-21T19:26:50Z")

</div>

ahhh… I think I can see the light.  
okay, I’ll give it a shot.

---

<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 21, 2003, 8:15pm UTC](https://forum.kirupa.com/t/please-fix-my-button/21373/14 "2003-05-21T20:15:20Z")

</div>

Okay here’s what I’m working on-  
I turn each step of the button into a full movie and then use each point of the button to trigger a certain part of that movie.  
In this case, where do I keep the movie?

---

<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 22, 2003, 9:30am UTC](https://forum.kirupa.com/t/please-fix-my-button/21373/15 "2003-05-22T09:30:22Z")

</div>

you could try to make an invisible button, and an MC (with an instance name) with the animations inside… and put them on the stage

and then use the button to controll that MC so it displays the animation

it should be something like:

```auto

on(rollover){
mc.gotoAndPlay("rollover");
}
on(release){
mc.gotoAndPlay("release");
}

```

or something simular

note, do NOT put the mc INSIDE the button
