# Problem with JavaScript and Filters

**URL:** https://forum.kirupa.com/t/problem-with-javascript-and-filters/200662
**Category:** flash
**Created:** [September 14, 2006, 2:26am UTC](https://forum.kirupa.com/t/problem-with-javascript-and-filters/200662 "2006-09-14T02:26:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![crazyman](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@crazyman](https://forum.kirupa.com/u/crazyman)
#### Post date: [September 14, 2006, 2:26am UTC](https://forum.kirupa.com/t/problem-with-javascript-and-filters/200662/1 "2006-09-14T02:26:16Z")

</div>

If you go [here](http://dmstudios.100free.com/) and to the work \> flash section you see that the “defend your base” button has no drop shadow while every other button there does. This happens when I apply this code to the frame where the “defend your base” button is on:

defend.onRelease = function() {  
getURL(“javascript:Launch(‘defend.html’, 600 400)”);  
};

Everything works however when I apply the above code it seems to get rid of the drop shadow that I applied to the button.

My question is how can I still have this JavaScript and also have the drop shadow? I’m guessing it’s just some stupid mistake I’ve made or something really simple to fix.
