# GetURL Not Working

**URL:** https://forum.kirupa.com/t/geturl-not-working/242532
**Category:** flash
**Created:** [October 27, 2007, 12:34am UTC](https://forum.kirupa.com/t/geturl-not-working/242532 "2007-10-27T00:34:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tgjb007](https://avatars.discourse-cdn.com/v4/letter/t/b19c9b/32.png) [@tgjb007](https://forum.kirupa.com/u/tgjb007)
#### Post date: [October 27, 2007, 12:34am UTC](https://forum.kirupa.com/t/geturl-not-working/242532/1 "2007-10-27T00:34:56Z")

</div>

I developed a portable video player thats similar to  
YouTube’s video player where you pass a video’s  
info and the video loads and plays. The player can  
also be embedded on your own personal site using  
the embed tags.

My problem is this, everything with playing / loading  
the video works fine. But I’ve got a link on the Flash  
thats hard coded to a url and links off using getUrl  
like so:

getUrl(‘[http://www.site.com](http://www.site.com)’, ‘\_self’)

Now this works if the HTML and SWF are in the same  
location (ie both local, or both on the hosting server)  
but for some reason it doesn’t work in the embed mode  
when the player swf is located on one server and the  
HTML that’s loading the SWF is on another server. XML  
loads fine, videos load, images load, but the gerUrl does  
not work…doesn’t go anywhere.

Also, I’ve got my crossdomain xml file setup to accept  
all domains using the \* option.

Any ideas?

Thanks!

---

<div class="post-metadata">

### Author: ![arul\_apj](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@arul\_apj](https://forum.kirupa.com/u/arul_apj)
#### Post date: [May 10, 2008, 7:02am UTC](https://forum.kirupa.com/t/geturl-not-working/242532/2 "2008-05-10T07:02:15Z")

</div>

hi,

To make GetURL work properly, Flash content must explicitly set the allowScriptAccess  
attribute to allow or deny scripting for the Flash Player from the HTML code ,

This is can be done by adding a [COLOR=darkred]\<param param name=“allowScriptAccess” value=“always” /\>[/COLOR] or [COLOR=darkred]\<param name=“allowScriptAccess” value=“sameDomain” /\>[/COLOR] for object tag (IE) and [COLOR=darkred]allowScriptAccess=“always”[/COLOR] or [COLOR=darkred]allowScriptAccess=“sameDomain”[/COLOR] in embed tag(firefox).

hope it works.
