swftools-common
[Top][All Lists]
Advanced

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

Re: [Swftools-common] Bad size with cropped PDF in pdf2swf


From: Chris Flowers
Subject: Re: [Swftools-common] Bad size with cropped PDF in pdf2swf
Date: Sun, 27 Feb 2005 18:52:49 -0500

> No- the resulting SWF does have the cropped size in it's header.
>
> It's only that, for some reason, when querying for a loaded SWF's
> bounding box, ActionScript doesn't seem to use the header information, but
> to calculate and return the real bounding box. Maybe that's supposed to
> be a feature or something.
>
> Greetings
>
> Matthias

Yes, this is by design in the swf format to allow external .swfs to be
loaded as
movieclips. The swf when loaded in this manner uses the _width and _height
properties of the content loaded not the swf file's header data.

The _width and _height properties can/will also change on a frame by frame
basis
if the content on each frame changes size. Put a box shape in the background
to
serve as a bounding box across all frames is one way to keep them from
changing.

Chris





reply via email to

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