I fixed my issue for those who care. I consists of a mix of the first two examples posted in this thread. I placed my flashcontent div inside a container div. The width and height passed to swfobject are both 100% and the container div is set to the intended width and height. I then passed the container id to BrowserCanvas instead of the flashcontent id as well as passing an empty array for the browser hacks param.
Your canvas object allows you to set width and height separately but still updates both dimensions when either setter is called. For some reason this causes FF for mac to consider the other dimension as 0. The fix for this was setting both properties everytime even if one never changes. On Mon, Jan 19, 2009 at 2:05 PM, Joel Stransky <stranskydes...@gmail.com>wrote: > Hmm, I'm using BrowserCanvas in my current project and having zero issues > aside from it breaking swfaddress in IE7. Otherwise works fine in Safari and > FF for mac and IE6/FF for windows. > > > On Mon, Jan 19, 2009 at 10:27 AM, allandt bik-elliott (thefieldcomic.com) > <alla...@gmail.com> wrote: > >> isn't there a bit of wierdness in firefox where, if you want it to be 100% >> width / height of the window, you need to add it to the css and apply it >> to >> the swfobject targetted div? >> >> On Mon, Jan 19, 2009 at 1:56 PM, Romuald Quantin < >> soundstep.mail...@googlemail.com> wrote: >> >> > I sent to the BrowserCanvas developer the IE error months ago, I guess >> he >> > didn't find a solution if he didn't update his library. >> > >> > I've been asked for this some months ago but we've ended up to build a >> > flash scrollbar instead... if I may ask, what makes you choose a browser >> > scrollbar for a flash content? Because in my case, having something >> solid >> > without cross-browsing issue made me build a flash scrollbar. >> > >> > Romu >> > www.soundstep.com >> > >> > >> > >> > confustic...@gmail.com wrote: >> > >> >> Sorry List. >> >> >> >> I really am all kinds of idiot. What I said below about BrowserCanvas >> is >> >> incorrect. It takes the containerId as a parameter ... which was >> >> immediately >> >> obvious from reading the documentation! Apologies. Now, to work out >> what's >> >> causing the IE error ... >> >> >> >> I am still interested in any comments regarding the Mustard Lab Resize >> >> Flash >> >> with SWFObject issue though. >> >> >> >> Humbly, >> >> >> >> CB. >> >> >> >> On Mon, Jan 19, 2009 at 1:53 PM, confustic...@gmail.com < >> >> confustic...@gmail.com> wrote: >> >> >> >> >> >> >> >>> Hi List, >> >>> >> >>> Does anyone have a bulletproof method for dynamically resizing your >> SWFs >> >>> from within the SWF? eg, if you have SWFs which have expandable >> vertical >> >>> content that sit within the flow of an HTML page. Something like this: >> >>> http://2mdc.com/resizableFlash/ >> >>> >> >>> I have tried doesnotcompute's lovely BrowserCanvas ( >> >>> >> >>> >> http://www.dncompute.com/blog/2008/06/23/browsercanvas-the-worlds-easiest-way-to-dynamically-resize-flash.html >> ) >> >>> and >> >>> found that it only works for 1 SWF per page. (It always resizes the >> first >> >>> SWF, no matter which SWF needs resizing.) >> >>> >> >>> I have also tried the wonderful Mustard Lab Resize Flash technique ( >> >>> http://www.mustardlab.com/developer/flash/objectresize/) - however, >> to >> >>> my >> >>> surprise I couldn't get it working with properly SWFObject in IE6 and >> >>> Safari. It works fine in FF and IE7. I found that, while the >> containing >> >>> DIV >> >>> was resized appropriately, the Flash height (set to 100%) was not >> filling >> >>> up >> >>> the DIV. I'm still not sure why this is; it works if the SWF is placed >> on >> >>> the page using JavaScript to write out the tags (which is how it is >> >>> implemented by Mustard Lab). Unfortunately it does need to work with >> >>> SWFObject. >> >>> >> >>> Any ideas would be much appreciated, >> >>> >> >>> Cheers, >> >>> CB. >> >>> >> >>> >> >>> >> >> _______________________________________________ >> >> 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 >> > > > > -- > --Joel Stransky > stranskydesign.com > -- --Joel Stransky stranskydesign.com _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders