Juan, (Yeah, it was me on Flash_Tiger... :-) ) To be fair, I'd have suggested that to Andrew a while back, except he said:
>> Thanks Steve. I thought maybe I was onto something with the LoaderInfo >> classes width and height props that >> return the "nominal" w and h, but this information doesn't seem to jive with >> what I'm observing. So I assumed he'd already tried it. :-) But to add to the SWF header debate etc. - I believe the loaderInfo.width and .height gives you what's in the header, so I don't think there's much point in actually parsing the header, because you'll get the same info. Andrew - I suspect there's something else going on in terms of scaling or some such, because I believe that loaderInfo.width and loaderInfo.height should be giving you valid results -- it may be that for some reason you're interpreting them incorrectly. Wwrong frame of reference? Ignoring the scaling of the Loader class? Try loaderInfo.width*loader.scaleX, for example... HTH, Ian On Tue, Oct 7, 2008 at 2:33 AM, Juan Pablo Califano <[EMAIL PROTECTED]> wrote: > PD: > > I think someone at Flash_Tiger just found a way simpler and more straight > forward means to get the stage size: > >>>> > Try loaderInfo.width and loaderInfo.height. >>>> > > http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/LoaderInfo.html > > > Cheers > Juan Pablo Califano > > 2008/10/5, Juan Pablo Califano <[EMAIL PROTECTED]>: >> >> 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 > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders