# Complex Button RollOver/RollOut Effects Problem

**URL:** <https://forum.kirupa.com/t/complex-button-rollover-rollout-effects-problem/297234>\
**Category:** Uncategorized\
**Created:** [September 28, 2009, 3:17pm UTC](https://forum.kirupa.com/t/complex-button-rollover-rollout-effects-problem/297234 "2009-09-28T15:17:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![facevil](https://avatars.discourse-cdn.com/v4/letter/f/6bbea6/32.png) [@facevil](https://forum.kirupa.com/u/facevil)\
**Post date:** [September 28, 2009, 3:17pm UTC](https://forum.kirupa.com/t/complex-button-rollover-rollout-effects-problem/297234/1 "2009-09-28T15:17:06Z")

</div>

Hi everyone! I know a lot of people had asked questions about this Complex Button RollOver/RollOut Effects.  
I am having the same problems and have not found any answer here on this forum.  
Here is the tutorial for the button:  
[[COLOR=#003366]http://www.kirupa.com/developer/mx20…ton\_effect.htm[/COLOR]](http://www.kirupa.com/developer/mx2004/button_effect.htm)

This tutorial is very helpful, but i am having trouble with linking the button to my movie clip container.  
In the tutorial the code is this:

[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]

I am trying to combine with this tutorial:  
[http://www.kirupa.com/developer/mx2004/transitions.htm](http://www.kirupa.com/developer/mx2004/transitions.htm)

But i want the button onRelease to load a swf into my mc\_container, but when i click the button it doesn’t load my movies. does anyone know the code i need for this button to load external swf’s into my conatiner, through this complex button?

on (release) { if (\_root.currMovie == undefined) { \_root.currMovie = “work”; container.loadMovie(“work.swf”); } else if (\_root.currMovie != “work”) { if (container.\_currentframe \>= container.midframe) { \_root.currMovie = “work”; container.play(); } } }  
Can someone please help me out?  
Thanks
