@Joel: Thanks for letting us know. It's good to know that using a mixture of
the two methods works as well.
@Romu: I saw your post on the developer's site! I found that (similar to
Joel, I guess) if I used only the HACK_MARGIN_BOTTOM (ie, not using
HACK_IE_REPARENT or HACK_UNIQUE_ID), the IE errors no longer occured. I
didn't investigate it further than that, but seems to work fine on
IE6/IE7/FF3 on WinXP and Safari on the Mac (sorry, not sure of versions). In
regards to why I'd use the browser scrollbar over a Flash scrollbar, it's
because my SWF with expandable vertical content is only a small portion of
an otherwise HTML page.
@allandt: I came across swffit in my googlations which seems expressly for
handling 100% width and height http://swffit.millermedeiros.com/example.html
In conclusion, BrowserCanvas rocks. It does exactly what I need it to. If
frustration saved is measured in "percentage of molars you would've ground
down, if not for ...", I think this measures at least 0.5mol. Many thanks to
Noel Billig.
Cheers,
CB.
On Tue, Jan 20, 2009 at 2:29 PM, Joel Stransky wrote:
> 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 >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
> )
> > 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
> >> >>> t