flash居中代碼怎么寫

1.有沒有人可以幫我給我的flash寫下居中代碼Stage.align =參考下面寫的賦值
值 垂直對齊方式 水平對齊方式
StageAlign.TOP 頂對齊 居中對齊
StageAlign.BOTTOM 底對齊 居中對齊
StageAlign.LEFT 居中對齊 左對齊
StageAlign.RIGHT 居中對齊 右對齊
StageAlign.TOP_LEFT 頂對齊 左對齊
StageAlign.TOP_RIGHT 頂對齊 右對齊
StageAlign.BOTTOM_LEFT 底對齊 左對齊
StageAlign.BOTTOM_RIGHT 底對齊 右對齊
2.怎么讓網頁插入FLASH居中顯示啊你的問題有點模糊,是想讓一個flash在IE的整個顯示區上下左右都居中顯示嗎?
這樣的話,先插入一個100%的表格,再把高度設為100%,把上下和左右對齊都設為對中 。在其中插入flash就可以,不管IE窗口怎么縮放,flash都是顯示在正中的 。
代碼:
<html>
<head>
<meta ; charset=gb2312">
<title>flash居中顯示</title>
</head>
<body leftmargin="0" topmargin="0">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=",0,29,0" width="400" height="300">
<param name="movie" value="http://www.xuexi88.com/zhishi/mf_001.swf">
<param name="quality" value="http://www.xuexi88.com/zhishi/high">
<embed src="http://www.xuexi88.com/zhishi/mf_001.swf" quality="high" pluginspage="" type="application/x-shockwave-flash" width="400" height="300"></embed>
</object></td>
</tr>
</table>
</body>
</html>
3.FLASH在HTML代碼中位置居中你這也不是Flash呀,加個<center></center>;就好了
<center><table cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="width:290px;border: 1px solid #E6E6E6;"><tr><td rowspan="2" align="center"><div style="margin:5px auto; width: 80px;height:80px;"><a target="_blank" style="width: 80px; margin:0px;padding:0px;height: 80px; overflow:hidden;"><img style="margin:0px;border:none;" src="http://www.xuexi88.com/bao/uploaded/i2/T1.WtgXmjBZ0Lb3.ra_122522.jpg_sum.jpg"></a></div><div ></div></td><td colspan="2" ><a target="_blank" style="height:40px;width:180px;margin:5px;line-height:20px;color:#0000FF">;皇冠兩件包EMS♀韓國訂單~09新款韓版熱賣超唯美氣質假兩件</a></td></tr><tr><td nowrap="nowrap" > <span style="font-weight:600;margin:5px;line-height:30px;color:#CC0000;">88.0元</span> </td><td nowrap="nowrap" width="100px" ><a target="_blank"><img style="margin:0px; pandding:0px;line-height:24px;vertical-align: text-bottom;border:none;" src="http://www.xuexi88.com/images/tbk/cps/fgetccode_btn.gif"></a></td></tr></table></center>
4.flash mc坐標定位居中 代碼我用的是flash cs3 動作AS2.0版本,下面代碼測試可以水平居中,垂直居中 。
onClipEvent (load) {
w2=this._width;
w1=_root._width;
this._x=w1/2-w2/2;
h1=_root._height;
h2=_root.mc._height;
this._y=h1/2-h2/2
}
mc為我們當前要設置的對象(影片剪輯),這段代碼要寫在這個影片剪輯上,不要寫在時間軸上 。
【flash居中代碼怎么寫】

flash居中代碼怎么寫

文章插圖