PDA

View Full Version : Centering the Site... Non yoga.



JoMan
January 20th, 2005, 02:25 AM
Hi,



I have probably posted this question a million times, but I still do not understand it. I have made a flash site, but when I publish it, I can't seem to get it centered. The only HTML aligning puplishing settings are 'Right', 'Left', 'Top', and 'Bottom'. If anyone could help me out, I would be extremely greatful. Thanks.

Sincerely,



- JoMan.

wizard
January 20th, 2005, 02:34 AM
Put it in a table and then you would use: align="center" in the Table tags.
Also, I think using just

< center>
FlashObjectCode
< /center>
works too (without the spaces).

JoMan
January 20th, 2005, 02:43 PM
Oh Ok, but I have another question regarding the code that you gave me: Where do I put it? I tried using it in a text file and inserting it into flash with the '#include' code, but it doesn't recognize the HTML. What should do to use the HTML?

P.S. Thankyou for replying :).

peace

rhine
January 20th, 2005, 02:56 PM
Oh Ok, but I have another question regarding the code that you gave me: Where do I put it? I tried using it in a text file and inserting it into flash with the '#include' code, but it doesn't recognize the HTML. What should do to use the HTML?

P.S. Thankyou for replying :).

peaceJoMan: You need to use the script in an html file. Here's an example:



<HTML>
<HEAD>
<TITLE>Page Title!</TITLE>
</HEAD>
<BODY>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="middle">

<Flash Movie Code></Flash Movie Code>

</td>
</tr>
</table>
</BODY>
</HTML>





It's not proper table-free CSS but it'll do in a pinch ;). Name the file as index.html and upload!

JoMan
January 20th, 2005, 07:04 PM
Not to sound noobish or anything, but how do I create an HTML file :lol:?

EDIT: N/M, I think I got it :party:! Thanks, Rhine!

peace

JoMan
January 20th, 2005, 07:18 PM
Umm, about the HTML. When you put:



<Flash Movie Code></Flash Movie Code>


Does that mean that I will put this code:



<swf>flashSite.swf</swf>

I tried everything that my "html-dead brain" could think up, but I don't know what to write for that.

P.S. Sorry for not understanding, but I don't know squat about HTML :crazy:.

peace

wizard
January 20th, 2005, 09:47 PM
Publish your movie from Flash and it should, if you have the default set, create an HTML page. ;)

rhine
January 21st, 2005, 07:07 AM
Replace the "flash code" tags <FLASH code>with:


<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="800" height="600" id="movie" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="movie.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="movie.swf" quality="high" bgcolor="#ffffff" width="800"
height="600" name="movie" align="middle"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>


Just replace the "movie.swf" with whatever your flash movie is called. Note that the embed tag has additional parameters you can tinker with: bgcolor, quality, and size dimensions.

You may also have to change the "name" and "id" to match your movie name as well, though I don't think these are a nessecity.

JoMan
January 21st, 2005, 10:52 AM
Thank you :). I shall go expiriment with it :D.

peace

gaming monkey
January 21st, 2005, 03:22 PM
Here are some good sites for learning html, I hope you find them useful:

www.htmlgoodies.com (http://www.htmlgoodies.com/)
www.echoecho.com (http://www.echoecho.com/)

JoMan
January 21st, 2005, 06:03 PM
Ooo! Lot's of HTML goodness :beam:! Thankyou!

peace

icio
January 23rd, 2005, 01:29 PM
www.w3schools.com is another one

rhine
January 23rd, 2005, 01:46 PM
www.zeldman.com (http://www.zeldman.com)
www.alistapart.com (http://www.alistapart.com/)

And Eric Meyer's book (http://www.amazon.co.uk/exec/obidos/ASIN/0596005253/ref=pd_sr_ec_ir_aps/202-5832154-1903818) on css changed my life.