swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Problem with a script


From: André THEVENIN
Subject: Re: [Swftools-common] Problem with a script
Date: Tue, 23 Oct 2007 09:40:31 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.7.12) Gecko/20050915



OK thanks, I have forgotten the bbox. The red color was just for example.


Regards

Andre


Matthias Kramm a écrit :
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=""

3.) (recommended) Do both 1+2

Greetings

Matthias





  

-- 


Andre THEVENIN
Senior software engineer

Tel : (33) 467 593 083


Les polytechniciens savent tout, mais rien d'autre.
[Georges Clemenceau]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]