# Help... CS4 disabling Javascript functions?

**URL:** <https://forum.kirupa.com/t/help-cs4-disabling-javascript-functions/289728>\
**Category:** flash\
**Created:** [June 4, 2009, 12:01am UTC](https://forum.kirupa.com/t/help-cs4-disabling-javascript-functions/289728 "2009-06-04T00:01:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sakka](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@Sakka](https://forum.kirupa.com/u/Sakka)\
**Post date:** [June 4, 2009, 12:01am UTC](https://forum.kirupa.com/t/help-cs4-disabling-javascript-functions/289728/1 "2009-06-04T00:01:54Z")

</div>

Hello! I am working with an older (CS3) file in CS4. I have some simple javascript on an actions frame on the site. Example:

```auto
commercial_btn.onRelease = function() {
getURL("JavaScript:openWin('commerical.html', '600', '620')");
}

```

For some reason this code is being disabled when I publish. When I click on it in preview, it brings up a browser window. But when I publish it, on my computer that is **not** connected to the internet, it says something like “Adobe flash player has stopped…” and when I test it on the computer which is connected to the internet, it doesn’t do anything at all. Only one Javascript pop up works - it has slightly different code and is in a different place. I tried applying the code to these other buttons but no luck. HELP! Thank you…
