讓符合視窗的flash在IE上面不會有瀏覽器捲軸產生
- Aug 09 Thu 2012 23:40
-
flash object style
<object ... style="display:block;">...</object>
讓符合視窗的flash在IE上面不會有瀏覽器捲軸產生
讓符合視窗的flash在IE上面不會有瀏覽器捲軸產生
- Oct 25 Tue 2011 18:51
-
在AS3中撰寫javascript
在AS3中撰寫javascript(當然也可以用ExternalInterface.call呼叫HTML中的Javascript)
var temp:String ='javascript:$("#container3").animate({"top":"+=620px"},"slow");$("#extradiv1").height(620);void(0)';//void(0)必加,以防回傳javascript執行的結果
function openfun(e:Event):void {
gotoAndPlay("open");
e.target.removeEventListener(MouseEvent.ROLL_OUT,outfun);
e.target.removeEventListener(MouseEvent.ROLL_OVER,overfun);
//ExternalInterface.call("clickopen");
navigateToURL(new URLRequest(temp),"_self")//*以字串撰寫
};
var temp:String ='javascript:$("#container3").animate({"top":"+=620px"},"slow");$("#extradiv1").height(620);void(0)';//void(0)必加,以防回傳javascript執行的結果
function openfun(e:Event):void {
gotoAndPlay("open");
e.target.removeEventListener(MouseEvent.ROLL_OUT,outfun);
e.target.removeEventListener(MouseEvent.ROLL_OVER,overfun);
//ExternalInterface.call("clickopen");
navigateToURL(new URLRequest(temp),"_self")//*以字串撰寫
};
- Dec 28 Tue 2010 12:19
-
flash解json資料
[參考KIRIN CrazyAD]
import com.adobe.serialization.json.*;// 將套件與fla置於同一個資料夾
var ur:URLRequest=new URLRequest("http://kirin.events.pixnet.net/api.php?op=getnum");
var ul:URLLoader = new URLLoader();
ul.addEventListener(Event.COMPLETE, onComplete);
ul.load(ur);
function onComplete(evt:Event) {
trace(ul.data);
var o:Object=new Object();
o=JSON.decode(ul.data);
trace(o.total_users);
// peoples_mc.peoplenum.text=o.total_users;
}
import com.adobe.serialization.json.*;// 將套件與fla置於同一個資料夾
var ur:URLRequest=new URLRequest("http://kirin.events.pixnet.net/api.php?op=getnum");
var ul:URLLoader = new URLLoader();
ul.addEventListener(Event.COMPLETE, onComplete);
ul.load(ur);
function onComplete(evt:Event) {
trace(ul.data);
var o:Object=new Object();
o=JSON.decode(ul.data);
trace(o.total_users);
// peoples_mc.peoplenum.text=o.total_users;
}
- Dec 28 Tue 2010 12:13
-
FLASH記錄cookie
利用FLASH記錄來訪者(類似cookie)
[參考KIRIN的CRAZY AD]
http://help.adobe.com/zh_TW/AS3LCR/Flash_10.0/flash/net/SharedObject.html
================================================================
[參考KIRIN的CRAZY AD]
http://help.adobe.com/zh_TW/AS3LCR/Flash_10.0/flash/net/SharedObject.html
================================================================
- Dec 28 Tue 2010 12:04
-
在AS3中撰寫javascript
在AS3中撰寫javascript(當然也可以用ExternalInterface.call呼叫HTML中的Javascript)
var temp:String ='javascript:$("#container3").animate({"top":"+=620px"},"slow");$("#extradiv1").height(620);void(0)';//void(0)必加,以防回傳javascript執行的結果
function openfun(e:Event):void {
gotoAndPlay("open");
e.target.removeEventListener(MouseEvent.ROLL_OUT,outfun);
e.target.removeEventListener(MouseEvent.ROLL_OVER,overfun);
//ExternalInterface.call("clickopen");
navigateToURL(new URLRequest(temp),"_self")//*以字串撰寫
};
var temp:String ='javascript:$("#container3").animate({"top":"+=620px"},"slow");$("#extradiv1").height(620);void(0)';//void(0)必加,以防回傳javascript執行的結果
function openfun(e:Event):void {
gotoAndPlay("open");
e.target.removeEventListener(MouseEvent.ROLL_OUT,outfun);
e.target.removeEventListener(MouseEvent.ROLL_OVER,overfun);
//ExternalInterface.call("clickopen");
navigateToURL(new URLRequest(temp),"_self")//*以字串撰寫
};
- Mar 29 Mon 2010 21:09
-
FLASH輸出之swf與XML路徑需要相同
FLA載入XML時,要注意路徑,以最後swf的相對路徑為準
- Nov 19 Thu 2009 12:41
-
flash動態文字框角度問題
由於是動態產生的文字,所以flash player無法對它作角度的運算...
只能移動.... 或是遮罩... (遮罩要有特定寫法才能成功)
只有圖片才能作角度的運算....
如果真的要求flash player能夠運算....
有一種方式... 就是 內嵌字體 把字型包進去...
動態讀入的文字就變成圖片... 就可以旋轉了....
不過英文數字還好.... 中文字也包進去... 那檔案就會上大上很多...
只能移動.... 或是遮罩... (遮罩要有特定寫法才能成功)
只有圖片才能作角度的運算....
如果真的要求flash player能夠運算....
有一種方式... 就是 內嵌字體 把字型包進去...
動態讀入的文字就變成圖片... 就可以旋轉了....
不過英文數字還好.... 中文字也包進去... 那檔案就會上大上很多...
- Oct 01 Thu 2009 17:39
-
swf隨視窗大小變動
http://blog.mediakid.org/2008/05/actionscript-30-full-browser-flash.html
- Aug 31 Mon 2009 19:49
-
Firefox 文字框輸入中文成亂碼
原文連結:
http://www.5etdemi.com/blog/archives/2005/06/firefox-wmodetransparent-is-completely-screwy-and-breaks-textfields/
原因肇於FLASH直接發佈的swf會在html中產生object標籤,其中wmode="transaprent"會讓除了IE瀏覽器之外的產生錯誤,拿掉這個語法即可!
http://www.5etdemi.com/blog/archives/2005/06/firefox-wmodetransparent-is-completely-screwy-and-breaks-textfields/
原因肇於FLASH直接發佈的swf會在html中產生object標籤,其中wmode="transaprent"會讓除了IE瀏覽器之外的產生錯誤,拿掉這個語法即可!
- Aug 31 Mon 2009 19:00
-
Firefox3.5顯示flash問題
當flash以noscale方式發佈html的時候,要在title裡面增加以下語法:
<style >
html, body{height:100%};
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
</style>
<style >
html, body{height:100%};
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
</style>
1