# Posted this before but no one had an answer

**URL:** <https://forum.kirupa.com/t/posted-this-before-but-no-one-had-an-answer/24033>\
**Category:** Uncategorized\
**Created:** [June 25, 2003, 2:42pm UTC](https://forum.kirupa.com/t/posted-this-before-but-no-one-had-an-answer/24033 "2003-06-25T14:42:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheBigBadWolf](https://avatars.discourse-cdn.com/v4/letter/t/3d9bf3/32.png) [@TheBigBadWolf](https://forum.kirupa.com/u/TheBigBadWolf)\
**Post date:** [June 25, 2003, 2:42pm UTC](https://forum.kirupa.com/t/posted-this-before-but-no-one-had-an-answer/24033/1 "2003-06-25T14:42:19Z")

</div>

I have been trying to make this certain thing work… Like the random movement tutorial…  
I can make it so things move randomly but how can I make this move randombly inside of a button? I followed this tut.  
[http://www.kirupa.com/developer/mx/random\_motionMX.htm](http://www.kirupa.com/developer/mx/random_motionMX.htm)  
it works but I need it to work inside of a button and I am not sure how… I can see where you set the height and width but it seems to just move anywhere…  
Just wondering how to get random movement inside of a 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:** [June 25, 2003, 2:51pm UTC](https://forum.kirupa.com/t/posted-this-before-but-no-one-had-an-answer/24033/2 "2003-06-25T14:51:33Z")

</div>

Have you tried specifying the width and height of the button instead of the dimensions of movie itself?

Just a thought…

🙂

Cello

---

<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:** [June 25, 2003, 2:53pm UTC](https://forum.kirupa.com/t/posted-this-before-but-no-one-had-an-answer/24033/3 "2003-06-25T14:53:37Z")

</div>

Hmm i tried this in flash 5 but as soon as it goes inside the button it seems to ignore my 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:** [June 25, 2003, 2:57pm UTC](https://forum.kirupa.com/t/posted-this-before-but-no-one-had-an-answer/24033/4 "2003-06-25T14:57:25Z")

</div>

Hey guys. Yeah I have set the width and height in the button actions itself like it shows on kirupas tut. But it seems to not follow it just go all over… I am using flash mx btw and did the mx tut. How do I get that effect in a button ? I was using 2 layers before wone with the button and one with the movie clip effect…  
Hmmm just confused on how to make it work inside of a 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:** [June 25, 2003, 4:03pm UTC](https://forum.kirupa.com/t/posted-this-before-but-no-one-had-an-answer/24033/5 "2003-06-25T16:03:00Z")

</div>

because that effect is meant for the main timeline. And I don’t think its possible to put it in a button… .a movieclip maybe… not a 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:** [June 25, 2003, 4:08pm UTC](https://forum.kirupa.com/t/posted-this-before-but-no-one-had-an-answer/24033/6 "2003-06-25T16:08:03Z")

</div>

Hmmm darn… ok thanks for the help all.
