# Problem with getURL(), Javascript and Flash 7

**URL:** https://forum.kirupa.com/t/problem-with-geturl-javascript-and-flash-7/35896
**Category:** flash
**Created:** [November 19, 2003, 8:25am UTC](https://forum.kirupa.com/t/problem-with-geturl-javascript-and-flash-7/35896 "2003-11-19T08:25:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Madster](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/madster/32/366_2.png) [@Madster](https://forum.kirupa.com/u/Madster)
#### Post date: [November 19, 2003, 8:25am UTC](https://forum.kirupa.com/t/problem-with-geturl-javascript-and-flash-7/35896/1 "2003-11-19T08:25:44Z")

</div>

Hi Guys,

I use:  
getURL(“javascript:doThis()”)

to call a function in the html document which the swf is placed in, and, it works fine, as long as the swf is placed on the same server as the html document, but, when I movie the swf to another domain, it doesn’t work at all.

I think their must be somekind of new security setting preventing this, since I didn’t have any troubling doing it in Flash 6.  
But, on the other hand, I have made a crossdomain.xml and allowDomain security settings so that I am able to use loadVariables without any problems, but, Javascript won’t work at all.

Does anyone have an idea what can be done?

I really need some help on this, thx!

Regards  
Mads
