Just upgraded to Flash CS4. Published .swf/.html files... Trying to get the .swf to display in the center (horizontally) of the .html page / browser window.

Previously I used <div align="center"><object>...</object></div> but that no longer works! It displays centered from within Dreamweaver but not in any browsers I've tried. Can't for the life of me figure out why!!

I noticed Flash CS4 now spits out a whole lotta code in the generated .html file and I'm assuming the source of the problem is somewhere within.

The only workaround I've found so far is to publish just the .swf and manually embed it into a new .html page... but then I no longer have all the (detection) code.

Anyone have any answers?