This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > February 2004 > Centering SWFs





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Centering SWFs
lightwriting webforumsuser@macromedia.com

2003-11-30, 12:49 pm

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?



Peter Blumenthal

2003-11-30, 12:49 pm

you don't. if you want it centered vertical;ly and horizontally, you must
use a table

}`¬P


keen to learn

2003-11-30, 12:49 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


"Peter Blumenthal" <mm_pete@phageinteractive.com> wrote in message
news:bq77v7$alu$1@forums.macromedia.com...
quote:

> you don't. if you want it centered vertical;ly and horizontally, you must
> use a table
>
> }`¬P
>
>




tralfaz

2003-11-30, 12:49 pm

"Peter Blumenthal" <mm_pete@phageinteractive.com> wrote in message
news:bq77v7$alu$1@forums.macromedia.com...
quote:

> you don't. if you want it centered vertical;ly and horizontally, you must
> use a table
>
> }`¬P



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


Sly1211

2003-11-30, 12:49 pm

Put the cursor to the left of the swf & center it using the properties inspector (lower right hand side)


-Sly-
mozart2006 webforumsuser@macromedia.com

2003-11-30, 12:50 pm

after your "body" tag, right the followng code:
<div align="center">
(make sure it is before your swf file)

cheers
f


_posted.by\(Vern\);

2003-11-30, 12:50 pm

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


"mozart2006" <webforumsuser@macromedia.com> wrote in message
news:bqa78l$kqe$1@forums.macromedia.com...
quote:

> after your "body" tag, right the followng code:
> <div align="center">
> (make sure it is before your swf file)
>
> cheers
> f
>
>




mozart2006 webforumsuser@macromedia.com

2003-11-30, 12:50 pm

good point vern! forgot to mention closing tags AND that this method orients the swf to the horizontal center only....

fj


malki

2004-02-27, 12:28 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?

Laiverd.COM

2004-02-27, 7:28 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_g...s_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------
>



malki

2004-02-29, 5:29 pm

Thanks for the article.
I was just trying to see exactly what code goes into the table.
So what is the full html code for a page with a flash movie centered in a table?
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews