查看: 1099|回复: 14
|
怎樣做成 flash html?
[复制链接]
|
|
我現在已經做成了5 個swf file 和 5 個 html, 要怎樣做成 5 個swf file 放在一個html file?
我現在的 link 的 code 是 :
on (press) {
getURL("page2.html");
}
是不是要把這個code 修改? 請大家幫一下小弟,謝謝
[ 本帖最后由 roy16 于 13-5-2007 11:16 AM 编辑 ] |
|
|
|
|
|
|
|
发表于 13-5-2007 11:43 AM
|
显示全部楼层
|
|
|
|
|
|
|

楼主 |
发表于 13-5-2007 01:39 PM
|
显示全部楼层
不好意思,我是說第一個swf 要連接第二個swf.
我剛才找到的code 是:
on(press){
loadMovie("profile.swf", _root);
}
但是我第一個swf 的背景和第二個swf的背景是不同color,要怎樣的code?
我現在是第二個swf的背景color 也跟著第一個swf 的背景color。
謝謝,請指教。 |
|
|
|
|
|
|
|
发表于 13-5-2007 03:03 PM
|
显示全部楼层
建立一個新的Fla來做loadMovie, 把所有背景都轉換成graphic, 不要直接在Properties內設定背景顏色 |
|
|
|
|
|
|
|

楼主 |
发表于 13-5-2007 04:32 PM
|
显示全部楼层
謝謝,我已經試了。只打開swf file 來 play, 就可以。
但在html 來 play 的話,html 的背景顏色不能跟著swf 的背景顏色。可惜!
因為我想整面的顏色一樣。我想應不可以,對嗎? |
|
|
|
|
|
|
|
发表于 13-5-2007 04:58 PM
|
显示全部楼层
~_~" 在你的swf播放前第一個frame使用javascript來指定html的背景顏色就可以了啊 |
|
|
|
|
|
|
|

楼主 |
发表于 13-5-2007 09:09 PM
|
显示全部楼层
原帖由 super-tomato 于 13-5-2007 04:58 PM 发表
~_~" 在你的swf播放前第一個frame使用javascript來指定html的背景顏色就可以了啊
你知道什麼code 嗎? 請教小弟,謝謝! |
|
|
|
|
|
|
|
发表于 13-5-2007 09:20 PM
|
显示全部楼层
在所publish的html中加入javascript
<script type="text/javascript">
function changeBG(color) {
document.bgColor = color;
}
</script>
在FLASH只要指定 getURL("javascript: changeBG('#FF3300')");
//例子, 在你的Flash第一個frame加入這段
function changeBG() {
var num:Number = Math.floor(Math.random()*0xFFFFFF);
getURL("javascript: changeBG("+num+")");
}
setInterval(changeBG, 1000); |
|
|
|
|
|
|
|

楼主 |
发表于 13-5-2007 11:03 PM
|
显示全部楼层
原帖由 super-tomato 于 13-5-2007 09:20 PM 发表
在所publish的html中加入javascript
<script type="text/javascript">
function changeBG(color) {
document.bgColor = color;
}
</script>
在FLASH只要指定 getURL(&q ...
有一個問題是,我在 Ms.FrontPage preview 是可以跟著swf 的Color而變。
但是在IE 來開的話就不行了,html 的 color 不會動。是什麼原因呢? |
|
|
|
|
|
|
|
发表于 14-5-2007 12:48 PM
|
显示全部楼层
|
|
|
|
|
|
|

楼主 |
发表于 16-5-2007 08:31 PM
|
显示全部楼层
原帖由 super-tomato 于 14-5-2007 12:48 PM 发表
你的IE阻擋了JS的運行
我想不會,我已經查過了IE的設定。我也安裝了firefox 2.0 來 play. 結果還是一樣不會跑。
我要想過其他的方法。如果還有其他的方法,請告訴小弟。謝謝 |
|
|
|
|
|
|
|
发表于 18-5-2007 04:12 PM
|
显示全部楼层
回复 #11 roy16 的帖子
你可以把swf的background set as transparent. |
|
|
|
|
|
|
|

楼主 |
发表于 19-5-2007 11:46 PM
|
显示全部楼层
原帖由 leooi 于 18-5-2007 04:12 PM 发表
你可以把swf的background set as transparent.
但如果有一面是背景是另一種顏色,怎麼辦? |
|
|
|
|
|
|
|
发表于 20-5-2007 01:14 PM
|
显示全部楼层
原帖由 roy16 于 16-5-2007 08:31 PM 发表
我想不會,我已經查過了IE的設定。我也安裝了firefox 2.0 來 play. 結果還是一樣不會跑。
我要想過其他的方法。如果還有其他的方法,請告訴小弟。謝謝
IE7.0 + Firefox2.0 測試完全沒問題,那麼應該就是你所安裝的某些軟體而導致.
你先把你的檔案上傳到網頁空間去測試再下定論.
http://www.super-tomato.net/test/bgColor.html |
|
|
|
|
|
|
|
发表于 21-5-2007 12:24 PM
|
显示全部楼层
回复 #13 roy16 的帖子
在 HTML 里面把swf的background set as transparent 只是把原本swf的Movie background color 去掉.
你可以画你要的background color放在bottom layer as background. |
|
|
|
|
|
|
| |
本周最热论坛帖子
|