dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Cross site script - getUrl not working

  1. #1
    Junior Member
    Join Date
    Oct 2009
    Posts
    2

    Cross site script - getUrl not working

    Hi,

    I wonder if someone is able to point me in the right direction wth this please;

    I have a very simple button with a GetUrl action. The flash is being embedded via a script, using document.write method.

    All works as expected when the script is hosted within the webiste. I need to host the script externally though, on a remote website (its a banner script).

    The problem is that when I embed the movie using the REMOTE javascript file, i.e. src="http://www.mysite.com/my.js", the simple GetUrl does not work at all.

    I'm sure this is something related to security or cross site scripting, but I'm equally sure there's a way around this. Affiliate banners use flash to do the very same thing (somehow).

    Thanks for any advice anyone can offer.
    Mark

  2. #2
    Senior Member Computer Dork's Avatar
    Join Date
    Mar 2001
    Location
    St. Louis
    Posts
    1,026
    Not sure exactly what you would need, but I'm pretty sure if you search google for crossdomain.xml issues, you'll find your answer.

  3. #3
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    hi,

    Could it be allowScriptAccess?

  4. #4
    Junior Member
    Join Date
    Oct 2009
    Posts
    2

    Solution

    Thanks for both replies. It seems It simply needed the following param as per hte previous post:

    <PARAM NAME='allowScriptAccess' VALUE='always'>

    Works like a charm now.

    Thanks again guys, much appreciated.

    MRB

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center