Hello all 
It’s been a while but I am once again desperate enough to post on here =)
I made a flash video player for a customer and it’s all working well- but there is one problem:
They want to count impressions (how many times a video was played).
I managed to achieve this before, using loadVars to call the link.
It works when I run the SWF on my PC (the link to call being on an external server) but it doesn’t work anymore, once the SWF is on the server.
I don’t want to make any assumptions what might cause this- because I don’t want to “taint” the possible answers coming from you experts out there =)
This is the code excerpt (the link is just an example):
var counting_pixel = "http://www.theserver.com/reporting/count.php";
newURL = new LoadVars();
newURL.onLoad = function (success)
{
if (!success)
{
trace("FAILED TO LOAD");
return;
}
trace("SUCCESS");
}
newURL.load(counting_pixel);
When the file runs locally, it traces “SUCCESS” but now that it’s on the customer’s server, it fails.
The problem (as I see it) might be, that the data that is “loaded” is on a different server, while the scope is limited to local access…
But I need the local access because the SWF loads an XML from the customer’s server (the XML contains the path to the FLV)… so I can’t just set the SWF’s scope from local to external… or can I? Am I misunderstanding this? ^^;
Thanks in advance for your help (and your tolerance for my stupid questions ^^)