Click to See Complete Forum and Search --> : Flash stats


sadek
11-02-2006, 03:27 AM
Hi,
I am trying to figer out the way for AS to call javascript functions remotly. I have swf element that my website's users will take and include at their own websites. I need to gather statistics from those elements. Regular javascript stats script looks like this:

<script type="text/javascript">
var gemius_identifier = new String('10XglOc7o50n6nSWgC4L1NTJrsx1vM8QOe4AK.1.v4H.Z7');
</script>
<script type="text/javascript" src="http://adnet.hit.gemius.pl/pp_gemius.js"></script>

I obviously cant make users include this script at their websites, so it needs to be located at my server. Any guess on how to call it remotly from flash? Thanks in advance for any help provided.

abeall
11-02-2006, 08:38 PM
You can't call JS remotely.

You can send variables to a script(.php, .asp, etc) on your server. At this point, though, you will need to make sure you create a cross domain policy XML file on your server to allow the remote SWFs to access your web directory.