# Load movie with roll on/off button

**URL:** <https://forum.kirupa.com/t/load-movie-with-roll-on-off-button/231407>\
**Category:** Uncategorized\
**Created:** [July 4, 2007, 2:34pm UTC](https://forum.kirupa.com/t/load-movie-with-roll-on-off-button/231407 "2007-07-04T14:34:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wooden](https://avatars.discourse-cdn.com/v4/letter/w/e99b99/32.png) [@wooden](https://forum.kirupa.com/u/wooden)\
**Post date:** [July 4, 2007, 2:34pm UTC](https://forum.kirupa.com/t/load-movie-with-roll-on-off-button/231407/1 "2007-07-04T14:34:38Z")

</div>

Please help me somebody!!!

Can anybody tell where I’m going wrong here? Basically I’ve designed a button as detailed in the following thread: [http://www.kirupa.com/developer/mx2004/button\_effect.htm](http://www.kirupa.com/developer/mx2004/button_effect.htm)

But I’ve swapped the following code from the end

[COLOR=#0000d0]this[/COLOR].[COLOR=#0000d0]onRelease[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#006610]function[/COLOR]COLOR=#0000ff{[/COLOR] [COLOR=#0000d0]getURL[/COLOR]COLOR=#0000ff[/COLOR]; [COLOR=#0000ff]}[/COLOR]  
and replaced it with this:

[COLOR=red]}

this.onRelease = function(){[/COLOR]  
[COLOR=red]  
\_root.contents.loadMovie(“redbox.swf”);  
}[/COLOR]  
[COLOR=#ff0000][/COLOR]  
[COLOR=black]Becasue I want my button to load a movie instead of go to a web page.[/COLOR]

I’d be eternally grateful for any help with this.

Cheers.
