Hi Andrew,

I'm not sure were the problem could be, but checking both swf's I got
640x480 and 600x200, which seems right. If I open the swf "standalone" (I
mean double clicking on it), the player opens it with those dimensions.
Plus, I've converted the to fla just to check the dimensions and I got back
the same values.

What the swf header contains is the size of the stage, or, in other words,
the size you set for the fla document at author time (if you're using the
Flash IDE; in that case, it's the numbers you set using the size button in
the properties panel).

I've also checked with another player from youtube and the size of the swf
is 480x387, which seems to match with the rebuilt fla and with what I see in
the site.

Maybe those swf's are being scaled, cropped or masked by other means ? (when
embedding, for instance) It's just a thought, anyway, perhaps if you post
the url of the page that contains those swfs, someone is able to figure out
why there's a difference between what you see on the screen and the swf's
stage size.


Cheers
Juan Pablo Califano


2008/10/5, Andrew Sinning <[EMAIL PROTECTED]>:
>
> Hi Juan Pablo,
>
> I just got back to this problem and tested your SwfHeader class.  From the
> few tests that I've run, this returns exactly the same dimensions that the
> LoaderInfo class does.
>
> I'm still stuck.  Here's an example of a swf on YouTube:
>
>   http://www.youtube.com/v/C7PH3GVj104
>
> The LoaderInfo/SwfHeader dimensions are 640x320, but the actual dimensions
> appear to be 320x180.
>
> This swf
>
>
> http://client.shoutlet.com/static/imageplayer/viewer.php?config=http://client.shoutlet.com/file/64/5863.xml
>
> Looks to be actually 400x200 but the LoaderInfo/SwfHeader dimensions are
> 600x200.
>
>
>  Juan Pablo Califano wrote:
>>>
>>>
>>>
>>>> http://pastebin.be/14115   (SwfHeader class)
>>>>
>>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
>>
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to