[Swfed-svn] swfed-svn [492] rebuild メソッドのテストスクリプト

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 3月 30日 (水) 18:29:01 JST


Revision: 492
          http://sourceforge.jp/projects/swfed/svn/view?view=rev&revision=492
Author:   yoya
Date:     2011-03-30 18:29:01 +0900 (Wed, 30 Mar 2011)

Log Message:
-----------
rebuild メソッドのテストスクリプト

Added Paths:
-----------
    trunk/sample/swfrebuild.php


-------------- next part --------------
Added: trunk/sample/swfrebuild.php
===================================================================
--- trunk/sample/swfrebuild.php	                        (rev 0)
+++ trunk/sample/swfrebuild.php	2011-03-30 09:29:01 UTC (rev 492)
@@ -0,0 +1,19 @@
+<?php
+
+if ($argc != 2) {
+	fprintf(STDERR, "Usage: swfrebuild <swf_file>\n");
+	exit(1);
+}
+
+$swf_filename = $argv[1];
+
+$swfdata = file_get_contents($swf_filename);
+$obj = new SWFEditor();
+
+if ($obj->input($swfdata) == false) {
+	fprintf(STDERR, "input failed\n");
+	exit(1);
+}
+
+$obj->rebuild();
+echo $obj->output();


Property changes on: trunk/sample/swfrebuild.php
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native



Swfed-svn メーリングリストの案内
Back to archive index