|
From: Yoav L. <yo...@co...> - 2008-10-31 14:41:58
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body dir="ltr" bgcolor="#ffffff" text="#000000">
<br>
<blockquote cite="mid:490...@re..." type="cite">I tried
the following to reproduce the crash:
<br>
<br>
<?
<br>
$m = new SWFMovie();
<br>
$file = fopen("test.as", "r");
<br>
$script = fread($file, filesize("test.as"));
<br>
$a = new SWFAction($script);
<br>
$m->add($a);
<br>
$m->save("test.swf");
<br>
?>
<br>
<br>
where test.as consists of 3000 times of
<br>
trace("test");
<br>
<br>
Could you produce a simple testcase out of the crashing code please?
<br>
<br>
Klaus
<br>
<br>
</blockquote>
<font size="-1">Hi again! <br>
<br>
Thanks for your swift reply. <br>
Perhaps I didn't explain myself correctly: <br>
The problem appears only when you create one long action script line. <br>
For instance, setting a new string variable and the string is more than
2000 characters. <br>
I used your example above, I modified the file test.as to: var
myTest:Array = new Array(); and the array I insert is very long. <br>
The reaction was:<br>
</font><b>Fatal error</b>: SWFMovie::save() [<a
href='swfmovie.save'>swfmovie.save</a>]: var myTest:Array =
new Array({type:1, x:0, y:0, w:1432, h:985,
src:&quot;opening/FrameW.swf&quot;,
imageRatio:0.687746621503649, fileType:&quot;SWF&quot;,
lockRatio:undefined, keyIn:undefined,
effectIn:&quot;undefined&quot;, keyOut:undefined,
effectOut:&quot;undefined&quot;, frameRate:undefined,
syncSwf:undefined, Size:undefined}, {type:1, x:51, y:99, w:604, h:401,
src:&quot;opening/op04.swf&quot;, imageRatio:0.33085194375517,
fileType:&quot;SWF&quot;, lockRatio:undefined,
keyIn:-0.953000000000003, effectIn:&quot;undefined&quot;,
keyOut:3.488, effectOut:&quot;undefined&quot;,
frameRate:undefined, syncSwf:undefined, Size:undefined}, {type:1, x:51,
y:99, w:908, h:605, src:&quot;opening/30-38.JPG&quot;,
imageRatio:0.666299559471366, fileType:&quot;JPG&quot;,
lockRatio:undefined, keyIn:4.063,
effectIn:&quot;undefined&quot;, keyOut:5.317,
effectOut:&quot;undefined&quot;, frameRate:undefined,
syncSwf:undefined, Size:undefined}, {type:1, x:51, y:99, w:91 in <b><br>
/root/test/bug/index.php</b> on line <b>13<br>
<small><br>
</small></b><small>As you can see the array is cut in the middle. When
I shortened it a bit everything worked fine. <br>
By the way, the problem occurred from version 0.4.0 Beta 5. <br>
<br>
Thanks a lot! <b><br>
</b>Yoav.</small><b><small> <br>
</small><br>
<br>
</b><font size="-1"><br>
<br>
<br>
<br>
</font>
</body>
</html>
|