Not just Actionscript noodlings

22 Apr

TwitterScript proxy problem

I used TwitterScript for a project recently to display the site’s twitter posts and ran into Twitter’s cross domain policy. Basically you can’t access XML direct from Twitter.

Actionscripter talks about the problem, not specifically about TwitterScript, and gives a php solution:

The following two lines of PHP code will create your proxy service. Name this proxy.php and put it on your server:

$url = $_GET['url'];

Now, instead of calling

We call

Th problem with TwitterScript is that (at the time of writing) it is released as a swc, which doesn’t allow you to edit the code. My solution was to manually download the actionscript files from and build my own repository, using this instead of the swc. Then inside replace as instructed above.

1 Response Filed under: actionscript 3