[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] Problem with a script
From: |
Matthias Kramm |
Subject: |
Re: [Swftools-common] Problem with a script |
Date: |
Mon, 22 Oct 2007 18:59:30 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hi André,
> I have a problem with the following script
swfc calculates the bounding box of a SWF file from
the objects on the scene.
Since you put the button at 0,0 initially:
> .put buttout=butt_outdraw scale=19%
and this button also extends into the negative y direction:
> L 4.1524273,-6.02268
your final movie bounding box will be this (from swfdump):
> [HEADER] Movie width: 160.30 (left offset: -0.30)
> [HEADER] Movie height: 133.90 (top offset: -3.90)
As, however, your red background
> .box fond width=160 height=130 color=gray fill=red line=1
does *not* end to y=-3.90, you see a red line of the "real"
(black) SWF background on top.
Three solutions:
1.) Specify a bounding box in the .flash header:
.flash filename="bug.swf" fps=50 bbox=160x130
2.) Set the SWF background to red (which also enables you to
remove the "fond" object):
.flash filename="bug.swf" fps=50 background=red
3.) (recommended) Do both 1+2
Greetings
Matthias