Skip to main content
January 22, 2014
Question

Creating projector files from SWF, is this OK?

  • January 22, 2014
  • 0 replies
  • 773 views

Since Adobe disabled "Create projector" option in standalone players and it's greyed out, I wonder if it's OK to just attach your SWF file to a standalone player manually or does Adobe frown upon it?

One could use the following PHP script for example:

<?

$s = "MyFlash.swf"; // your swf file

$p = "FlashPlayer.exe"; // official standalone player, any version

$o = "MyFlash.exe"; // projector file output

file_put_contents($o, file_get_contents($p));

file_put_contents($o, file_get_contents($s), FILE_APPEND);

file_put_contents($o, "\x56\x34\x12\xfa", FILE_APPEND);

file_put_contents($o, pack("L",filesize($s)), FILE_APPEND);

echo 'Done';

?>

    This topic has been closed for replies.