# Button motion

**URL:** <https://forum.kirupa.com/t/button-motion/9854>\
**Category:** Uncategorized\
**Created:** [December 19, 2002, 7:50pm UTC](https://forum.kirupa.com/t/button-motion/9854 "2002-12-19T19:50:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sqladmin](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sqladmin/32/125_2.png) [@sqladmin](https://forum.kirupa.com/u/sqladmin)\
**Post date:** [December 19, 2002, 7:50pm UTC](https://forum.kirupa.com/t/button-motion/9854/1 "2002-12-19T19:50:49Z")

</div>

i’ve got a button, which you roll over, and it plays a little movie  
on top of it, and it looks pretty cool.

but…

when i drop that button into the stage, and write the following  
action to it the action works fine, but the movie effect doesn’t  
play at all.

on (release){  
loadMovie(“lightblue\_scrolls1.swf”, \_root.dropzone);  
}

why would all of the sudden the button effect not work in the stage when ever i apply the action script to it?

any info would be helpful.

---

<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:** [December 19, 2002, 7:59pm UTC](https://forum.kirupa.com/t/button-motion/9854/2 "2002-12-19T19:59:11Z")

</div>

I’m a bit confused, you said when you dropped it into the timeline the button doesnt play the little movie so where was it sitting when it did work? Could you be a lil more specific and maybe post the fla file?

---

<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:** [December 19, 2002, 7:59pm UTC](https://forum.kirupa.com/t/button-motion/9854/3 "2002-12-19T19:59:51Z")

</div>

Try this…

```auto
on (release){
 _root.dropzone.loadMovie("lightblue_scrolls1.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:** [December 19, 2002, 8:03pm UTC](https://forum.kirupa.com/t/button-motion/9854/4 "2002-12-19T20:03:55Z")

</div>

> \*Originally posted by lostinbeta \*  
> \*\*Try this…

```auto
on (release){
 _root.dropzone.loadMovie("lightblue_scrolls1.swf");
}

```

\*\*

Yea try that, Lost knows his stuff. 😛

---

<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:** [December 19, 2002, 8:11pm UTC](https://forum.kirupa.com/t/button-motion/9854/5 "2002-12-19T20:11:10Z")

</div>

Sometimes 😛

---

<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:** [December 19, 2002, 8:26pm UTC](https://forum.kirupa.com/t/button-motion/9854/6 "2002-12-19T20:26:48Z")

</div>

is dropzone an empty movie clip above the button??  
if thats what making the "cool " effect then you need the target mc to be above it . or someplace visible… use the code lostinbeta gave you and it should work…

Jakub

---

<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:** [December 19, 2002, 8:58pm UTC](https://forum.kirupa.com/t/button-motion/9854/7 "2002-12-19T20:58:09Z")

</div>

thanks.

it seems to be working now.

really appreciate it!
