Re: [Flashcoders] What is the space relationship between a SWF and its surrounding html?
Hi, John, I think you would get a similar experience if you had an image of size 320 x 250, so it's not really a Flash problem per se but rather an HTML/browser co-compatibility. Basically, the browsers treat the window size property differently - I think IE includes the width of the scrollbars in calculations but not Firefox or vice versa or ... do some research from that angle and maybe you will find a solution to making the right size. Hopefully someone has made a little javascript calculator that keeps up to date with latest browser eccentricities. -jonathan On Sat, Jun 27, 2009 at 4:01 PM, John McCormack j...@easypeasy.co.ukwrote: Hi List, I have some SWFs that will be launched from someone else's GUI based on IE6 which uses exactly this code... In Multiplication.htm is a link... a href=javascript:void(0) onclick=window.open('Multiplication2.htm', 'welcome','width=335,height=265')strongobjects/strong/a The Multiplication2.htm that opens has... body object width=320 height=250 param name=movie value=flash/Multiplication2.swf embed src=flash/Multiplication2.swf width=320 height=250 /embed /object /body The opened SWFs all have a stage set to 320x250. The Multiplication2.swf has settings width=320 and height=250 The Multiplication.htm opens a window width=335 and height=265 On my Vista if I use IE8 or Firefox to open the html pages and click the link, they open up the SWFs at the correct size and the creator of the html reports that the SWFs run without scroll bars. When I run the GUI on my PC the SWFs all have scroll bars. I have the debug version of player 10. Would you expect the SWF to have any border or html to use any space in some circumstances that cause the desgin size to not be enough, and therfore create the scroll bars? There is some white space top and left of the SWFs. You advice would really be appreciated. Thank you. John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- -jonathan howe ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What is the space relationship between a SWF and its surrounding html?
you could try CSS: body style=padding:0px;margin:0px to guarantee that there isnt any default paddings or margins. .m On Sat, Jun 27, 2009 at 4:01 PM, John McCormackj...@easypeasy.co.uk wrote: Hi List, I have some SWFs that will be launched from someone else's GUI based on IE6 which uses exactly this code... In Multiplication.htm is a link... a href=javascript:void(0) onclick=window.open('Multiplication2.htm', 'welcome','width=335,height=265')strongobjects/strong/a The Multiplication2.htm that opens has... body object width=320 height=250 param name=movie value=flash/Multiplication2.swf embed src=flash/Multiplication2.swf width=320 height=250 /embed /object /body The opened SWFs all have a stage set to 320x250. The Multiplication2.swf has settings width=320 and height=250 The Multiplication.htm opens a window width=335 and height=265 On my Vista if I use IE8 or Firefox to open the html pages and click the link, they open up the SWFs at the correct size and the creator of the html reports that the SWFs run without scroll bars. When I run the GUI on my PC the SWFs all have scroll bars. I have the debug version of player 10. Would you expect the SWF to have any border or html to use any space in some circumstances that cause the desgin size to not be enough, and therfore create the scroll bars? There is some white space top and left of the SWFs. You advice would really be appreciated. Thank you. John ___ 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
Re: [Flashcoders] What is the space relationship between a SWF and its surrounding html?
Matt and Jonathan, body style=padding:0px;margin:0px That certainly helped. I think you would get a similar experience if you had an image of size 320 x 250 I tried this and can confirm that it's true. The vertical edge of the image (250)fits exactly, when the zoom is at 97%. Unfortunately the GUI uses IE6. Had it used Firefox I could have use Web Developer to inspect the elements. It amazes me an image is not displayed properly. If you know of any measurement tools that tell you about IE display space, please let me know. Thanks so much for responding. John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What is the space relationship between a SWF and its surrounding html?
Matt and Jonathan, body style=padding:0px;margin:0px Provided most of the fix. Because the html page was coming from a pen drive via a local connection, there was an extra bar, needing extra height, at the bottom of the window telling of the intranet connection. TWO CHANGED MADE THE SCROLL BARS GO AWAY 1. Modified window.open width and height in Multiplication.htm... a href=javascript:void(0) onclick=window.open('Multiplication2.htm', 'welcome','width=320,height=278,scrollbars=0')strongfactors./strong/a 2. style info added to Multiplication2.htm body style=padding:0px;margin:0px object width=320 height=250 param name=movie value=flash/Multiplication2.swf embed src=flash/Multiplication2.swf width=320 height=250 /embed /object /body Even thought the bar needed only 22 pixels, I still needed the window to be a bit larger that 250+22 =272 and setted on 278. Thanks again. John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] What is the space relationship between a SWF and its surrounding html?
Hi List, I have some SWFs that will be launched from someone else's GUI based on IE6 which uses exactly this code... In Multiplication.htm is a link... a href=javascript:void(0) onclick=window.open('Multiplication2.htm', 'welcome','width=335,height=265')strongobjects/strong/a The Multiplication2.htm that opens has... body object width=320 height=250 param name=movie value=flash/Multiplication2.swf embed src=flash/Multiplication2.swf width=320 height=250 /embed /object /body The opened SWFs all have a stage set to 320x250. The Multiplication2.swf has settings width=320 and height=250 The Multiplication.htm opens a window width=335 and height=265 On my Vista if I use IE8 or Firefox to open the html pages and click the link, they open up the SWFs at the correct size and the creator of the html reports that the SWFs run without scroll bars. When I run the GUI on my PC the SWFs all have scroll bars. I have the debug version of player 10. Would you expect the SWF to have any border or html to use any space in some circumstances that cause the desgin size to not be enough, and therfore create the scroll bars? There is some white space top and left of the SWFs. You advice would really be appreciated. Thank you. John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders