all groups > macromedia flash sitedesign > november 2003 >
You're in the

macromedia flash sitedesign

group:

Centering SWFs


Centering SWFs lightwriting
11/28/2003 12:26:47 AM
macromedia flash sitedesign:
This may be a silly question, but I can't seem to figure it out. How does one center a swf file on an HTML page without using a table?


Re: Centering SWFs Peter Blumenthal
11/28/2003 10:25:19 AM
you don't. if you want it centered vertical;ly and horizontally, you must
use a table

}`¬P

Re: Centering SWFs tralfaz
11/28/2003 11:04:11 AM
[quoted text, click to view]

If you only need left to right centering you can use the <CENTER> tag which
is still supported by all browsers.

<CENTER>
<OBJECT>
all the object code for your flash swf file
</OBJECT>
</CENTER>

tf

Re: Centering SWFs keen to learn
11/28/2003 12:41:10 PM
Check the mm site for flash extensions - there is one the by Jason walker
that adds a publish option that you are after

I hope this help

as ever


--
keen to learn @ hotmail.com


[quoted text, click to view]

Re: Centering SWFs Sly1211
11/29/2003 3:25:09 AM
Put the cursor to the left of the swf & center it using the properties inspector (lower right hand side)


Re: Centering SWFs _posted.by(Vern);
11/29/2003 11:38:11 AM
The method below replaces the <CENTER> tags and will only center your file
horizontially - just like a <CENTER> tag does. You are 'gonna hafta' use a
table if you want it vertically centered too.

And by the way, ALWAYS close your tags. If you use the <DIV> tag, make sure
you close it with a </DIV>.

Regards,
--Vern


[quoted text, click to view]

Re: Centering SWFs mozart2006
11/29/2003 1:34:13 PM
after your "body" tag, right the followng code:
<div align="center">
(make sure it is before your swf file)

cheers
f

Re: Centering SWFs mozart2006
11/29/2003 8:29:14 PM
good point vern! forgot to mention closing tags AND that this method orients the swf to the horizontal center only....

fj

Re: Centering SWFs malki
2/27/2004 3:39:42 AM
Once you publish your flash movie and look at the source code for the html
file, can that be stripped down? I don't know much about html, but it seems
that a lot of stuff is goin on in the source that is not totally neccessary.
What is the bare minimum you need to play your movie in an html file?
Re: Centering SWFs Laiverd.COM
2/27/2004 11:49:27 AM
Dunno what this has to do with the subject of the post, but nevertheless.
Obviously you can skip on all parameters; they will fall to their default
value if omitted I guess. You might be interested in this article:

http://www.alistapart.com/articles/flashsatay

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------
[quoted text, click to view]

Re: Centering SWFs malki
2/29/2004 8:43:35 PM
Thanks for the article.
I was just trying to see exactly what code goes into the table.
AddThis Social Bookmark Button