[ActionScript] getURL problem [SWF::Builder] (3)

1 Name: #!/usr/bin/anonymous : 2006-07-30 04:43 ID:NhaBR6//

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");

2 Name: #!/usr/bin/anonymous : 2010-08-03 15:14 ID:s+O7kD29

Any solution yet?

3 Name: #!/usr/bin/anonymous : 2010-08-06 08:10 ID:Heaven

>>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.

This thread has been closed. You cannot post in this thread any longer.