-
I can't get my Flash web doc to center on my browser
Maybe this is more of an html question but I can't get my Flash web doc to be centered vertically opn my browser.
Here's my code before the object tag:
PHP Code:
<center>
<table cellpadding="0" cellspacing="0" border="0"><tr><td valign="center" align="center">
Here is the site:
http://www.caillouette.com/cyclesite2
thanks
Last edited by lelales; 04-12-2005 at 06:49 PM.
I'm only in it for the pleasure
-
Left-Handed Flash User
Hello
You mean centered in the webpage right?
Open up the source for the page, find the <object> tags and put a <center> tag around them :
<center><object>blah .... blah ... </object></center>
Mick.
-
Left-Handed Flash User
...thats messed up .... go to EDIT and view the answer ...
Mick
-
Edit your html file, make sure there isn't a DOCTYPE because that'll mess this up and change all the height and width attributes of the OBJECT and EMBED tags to 100%.
Then put this AS on the first frame of your Flash movie:
code:
Stage.scaleMode = "noScale";
Stage.align = "CM";
-
thanks Javahead but
your solution did not work.
Thanks any way
I'm only in it for the pleasure
-
Left-Handed Flash User
It works every time, you are just doing it wrong.
Mick
-
If you have Dreamweaver, it's quite simple. I never write the raw code but Dreamweaver generates this:
<BODY bgcolor="#555555">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<!--image viewersSeldom BlueSeldom BlueNOSTALGIACHAMPAGNE PANNIERSHARE THE PASSIONPASTICHE-->
<div align="center">
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="800" HEIGHT="550" ALIGN="middle">
<PARAM NAME=movie VALUE="index.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#555555>
<EMBED src="index.swf" quality=high bgcolor=#555555 WIDTH="800" HEIGHT="550" ALIGN="middle"
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
</div><div align="center"> WIDTH="800" HEIGHT="550" ALIGN="middle">
notice the references to "center" and "middle".
Bluej2
-
<BODY bgcolor="#555555">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<!--image viewersSeldom BlueSeldom BlueNOSTALGIACHAMPAGNE PANNIERSHARE THE PASSIONPASTICHE-->
<div align="center">
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="800" HEIGHT="550" ALIGN="middle">
<PARAM NAME=movie VALUE="index.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#555555>
<EMBED src="index.swf" quality=high bgcolor=#555555 WIDTH="800" HEIGHT="550" ALIGN="middle"
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
</div>
here you go...
-
is one...
WIDTH="800" HEIGHT="550" ALIGN="middle">
is another...
<EMBED src="index.swf" quality=high bgcolor=#555555 WIDTH="800" HEIGHT="550" ALIGN="middle"
the last...
bluej2
-
sorry...I seem to have made a mess...check your pm's...leales
bluej2
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|