//createTextField(instanceName, depth, x, y, width, height) this.createTextField("swf1", 10, 0, 96, 1024, 576); swf1.html = true; swf1.htmlText = " <img width='1024' height='576' src='my_flash.swf'/>";
參考來源:
嵌入 SWF 和影像檔 --Flash CS3
//createTextField(instanceName, depth, x, y, width, height) this.createTextField("swf1", 10, 0, 96, 1024, 576); swf1.html = true; swf1.htmlText = " <img width='1024' height='576' src='my_flash.swf'/>";
-- [新增]
CREATE SEQUENCE my_sequence
INCREMENT BY 1
START WITH 1
MAXVALUE 99999999999
NOCYCLE
CACHE 10
;
-- 參數說明:
INCREMENT BY n -- 每次疊加的值(正負數)
START WITH n -- 指定初始值,建立後將無法透過 ALTER 修改
MAXVALUE n -- 最大編號
NOMAXVALUE -- (預設)不設置最大值,由系統上限決定
MINVALUE n -- 最小編號
NOMINVALUE -- (預設 1)不設置最小值
CYCLE -- 當取至最大值後,是否循環再由最小值開始
NOCYCLE -- (預設)不設置循環,當超過限制時將返回異常
CACHE n -- (預設 20)系統會一次取出 n 個數作為快取,但會造成跳號的現象
NOCACHE -- 不使用快取,保證在產生的編號中沒有跳號,但這樣會降低性能.
-- [修改]
ALTER SEQUENCE my_sequence
INCREMENT BY 10
MAXVALUE 10000
CYCLE
NOCACHE
;
-- [刪除]
DROP SEQUENCE my_sequence;
-- [使用方式]
my_sequence.CURRVAL -- 返回序號的當前值
my_sequence.NEXTVAL -- 增加序號的值,然後返回序號值
*{ /* Gecko browsers */ -moz-border-radius: 20px; /*all*/ -moz-border-radius: 20px 0; /*TL&BR, TR&BL*/ -moz-border-radius: 20px 0 20px; /*TL, TR&BL, BR*/ -moz-border-radius: 20px 0 20px 0; /*TL, TR, BR, BL*/ -moz-border-radius: 20px/ 10px; /*(X)/ (Y)*/ -moz-border-radius: 20px 0 20px 0/ 10px 0 10px 0; /*(X)TL, TR, BR, BL/ (Y)TL, TR, BR, BL*/ -moz-border-radius-topleft: 20px; -moz-border-radius-topright: 0; -moz-border-radius-bottomright: 20px; -moz-border-radius-bottomleft: 0; /* Webkit browsers */ -webkit-border-radius: 20px; /*all*/ -webkit-border-radius: 20px 0 20px 0; /*TL, TR, BR, BL*/ -webkit-border-top-left-radius: 20px; -webkit-border-top-right-radius: 0; -webkit-border-bottom-right-radius: 20px; -webkit-border-bottom-left-radius: 0; /* Konqueror (KDE) */ -khtml-border-radius: 20px; /*all*/ -khtml-border-radius: 20px 0 20px 0; /*TL, TR, BR, BL*/ -khtml-border-top-left-radius: 20px; -khtml-border-top-right-radius: 20px; -khtml-border-bottom-left-radius: 20px; -khtml-border-bottom-right-radius: 20px; /* ??? browsers */ -goog-ms-border-radius: 20px; /*all*/ -goog-ms-border-radius: 20px 0 20px 0;/*TL, TR, BR, BL*/ -goog-ms-border-top-left-radius: 20px; -goog-ms-border-top-right-radius: 0; -goog-ms-border-bottom-right-radius: 20px; -goog-ms-border-bottom-left-radius: 0; /* W3C syntax */ border-radius: 20px; /*all*/ border-radius: 20px 0; /*TL&BR, TR&BL*/ border-radius: 20px 0 20px; /*TL, TR&BL, BR*/ border-radius: 20px 0 20px 0; /*TL, TR, BR, BL*/ border-radius: 20px/ 10px; /*(X)/ (Y)*/ border-radius: 20px 0 20px 0/ 10px 0 10px 0; /*(X)TL, TR, BR, BL/ (Y)TL, TR, BR, BL*/ border-top-left-radius: 20px; border-top-right-radius: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 20px; }
/*Social Icon*/
.social{
background:transparent url(http://www.xxxx.com/social_icons.png) 0 0 no-repeat;
/*16*16按鈕的圖片網址*/
display: -moz-inline-box;
display: inline-block;
height:16px;
margin:0 4px;
text-indent:-999999px;
vertical-align:middle;
width:16px;
opacity:0.75;
overflow:hidden;
}
.social:hover{
opacity:1;
}
a.toFacebook{ background-position: 0 0; }
a.toPlurk{ background-position: 0 -16px; }
a.toTwitter{ background-position: 0 -32px; }
a.toTechnorati{ background-position: 0 -48px; }
a.toDelicious{ background-position: 0 -64px; }
a.toBuzz{ background-position: 0 -80px; }
a.toDigg{ background-position: 0 -96px; }
a.toStumbleUpon{ background-position: 0 -112px; }
a.toDesignFloat{ background-position: 0 -128px; }
a.getAtomRSS{ background-position: 0 -144px; }
a.toReader{ background-position: 0 -160px; }
<div class='post-footer-line post-footer-line-99'><span class='post-social-icons'>
分享至 :
<a class='social toFacebook' expr:href='"http://www.facebook.com/sharer.php?u="+ data:post.url + "&t=" + data:post.title' rel='external nofollow' target='_blank' title='分享至 Facebook'>Facebook</a>
<a class='social toPlurk' expr:href='"http://www.plurk.com/?qualifier=shares&status="+ data:post.url + " (" + data:post.title + ")"' rel='external nofollow' target='_blank' title='分享至 Plurk'>Plurk</a>
<a class='social toTwitter' expr:href='"http://twitter.com/home?status=" + data:post.title + " "+ data:post.url' rel='external nofollow' target='_blank' title='分享至 Twitter'>Twitter</a>
<a class='social toTechnorati' expr:href='"http://technorati.com/faves?add="+ data:post.url + " " + data:post.title' rel='external nofollow' target='_blank' title='分享至 Technorati'>Technorati</a>
<a class='social toDelicious' expr:href='"http://del.icio.us/post?url="+ data:post.url + " " + data:post.title' rel='external nofollow' target='_blank' title='儲存至 Delicious'>Delicious</a>
<a class='social toDigg' expr:href='"http://digg.com/submit?phase=2&url="+ data:post.url + "&title=" + data:post.title' rel='external nofollow' target='_blank' title='分享至 Digg'>Digg</a>
<a class='social toStumbleUpon' expr:href='"http://www.stumbleupon.com/submit?url="+ data:post.url + "&title=" + data:post.title' rel='external nofollow' target='_blank' title='分享至 Stumble Upon'>Stumble Upon</a>
<a class='social toDesignFloat' expr:href='"http://www.designfloat.com/submit.php?url="+ data:post.url + "&title=" + data:post.title' rel='external nofollow' target='_blank' title='分享至 Design Float"'>Design Float</a>
<a class='social toReader' expr:href='"http://www.google.com/reader/link?url="+ data:post.url + "&title=" + data:post.title + "&srcURL="+data:blog.homepageUrl' rel='external nofollow' target='_blank' title='分享至 Google Reader'>Google Reader</a>
<a class='social toBuzz' expr:href='"http://www.google.com/buzz/post?url="+ data:post.url' rel='external nofollow' target='_blank' title='分享至 Buzz'>Buzz</a>
<a class='social getAtomRSS' href='/feeds/posts/default' title='訂閱 Atom / RSS' type='application/atom+xml'>Atom / RSS</a>
</span></div>
1,小明,2010-10-10
2,小王,2010-5-15
3,小白,2010-2-18
/*建立 Vars()*/
loadVars_1 = new LoadVars();
/*載入完成時所執行的程式*/
loadVars_1.onData = function(thedata:String) {
if (thedata == undefined) {
trace('資料載入失敗'); return;
}
/*以換行符號(\n)切割字串*/
var rows:Array = thedata.split("\n");
for(i=0; i<rows.length; i++){
/*以垂直符號(|)切割字串*/
rows[i]=rows[i].split(",");
}
trace(rows);/*顯示載入的資料*/
};
/*開始載入 load_vars.txt*/
loadVars_1.load("load_vars.txt");
<a name="fb_share" type="button_count" share_url="data:post.url" href="http://www.facebook.com/sharer.php">分享</a>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
<a name="fb_share" type="button_count" expr:share_url="data:post.url" href="http://www.facebook.com/sharer.php" title="分享至 Facebook">分享</a>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
-- 建立資料表
CREATE TABLE table_name(
column1 NUMBER,
column2 CHAR,
column3 VARCHAR2,
column4 DATE,
-- 主鍵(PRIMARY KEY)
CONSTRAINT pk_table_name PRIMARY KEY(column1,column2),
-- 唯一鍵(UNIQUE KEY)
CONSTRAINT unique_table_name UNIQUE(column1,column2),
-- 外來鍵(FOREIGN KEY)
CONSTRAINT fk_table_name_column1
FOREIGN KEY(column1, column2)
REFERENCES parent_table(column1, column2)
[ON DELETE [CASCADE|SET NULL]]
-- 當參考鍵刪除時,相對應做的處理:
-- 預設 UPDATE No Action & DELETE No Action
-- ON DELETE CASCADE: 刪除參考鍵時連同刪除
-- ON DELETE SET NULL: 刪除參考鍵時將外鍵設為 NULL
);
-- 為資料表標示註釋
COMMENT ON TABLE table_name IS '資料表註釋';
-- 為資料欄位標示註釋
COMMENT ON COLUMN table_name.column1 IS '資料欄位註釋';
-- 附加主鍵(PRIMARY KEY)
ALTER TABLE table_name
ADD CONSTRAINT pk_table_name PRIMARY KEY(column1,column2);
-- 附加唯一鍵(UNIQUE KEY)
ALTER TABLE table_name
ADD CONSTRAINT unique_table_name UNIQUE(column1,column2);
-- 附加外來鍵(FOREIGN KEY)
ALTER TABLE table_name
ADD CONSTRAINT fk_table_name_column1
FOREIGN KEY(column1, column2)
REFERENCES parent_table(column1, column2)
[ON DELETE [CASCADE|SET NULL]];
-- 建立索引(Index)
CREATE [UNIQUE] INDEX idx_table_name ON table_name(column1, column2);
CREATE USER user_name IDENTIFIED BY user_password; -- 建立使用者
GRANT dba TO user_name; -- 授與最大權力
vars=1|小明|2010-10-10
2|小王|2010-5-15
3|小白|2010-2-18
/*建立 Vars()*/
loadVars_1 = new LoadVars();
/*載入完成時所執行的程式*/
loadVars_1.onLoad = function() {
/*以換行符號(\n)切割字串*/
var rows = this.vars.split("\n");
for(i=0; i<rows.length; i++){
/*以垂直符號(|)切割字串*/
rows[i]=rows[i].split("|");
}
trace(rows);/*顯示載入的資料*/
};
/*開始載入 load_vars.txt*/
loadVars_1.load("load_vars.txt");
<!-- load_1.xml -->
<?xml version="1.0" encoding="UTF-8"?>
<xmltest>
<parentnode>
<id>1</id>
<name>小明</name>
<date>2010-10-10</date>
</parentnode>
<parentnode>
<id>2</id>
<name>小王</name>
<date>2010-5-15</date>
</parentnode>
</xmltest>
/*建立 XML()*/
LoadXml_1 = new XML();
/*捨棄只包含空白字元的文字節點*/
LoadXml_1.ignoreWhite=true;
/*載入完成時所執行的程式*/
LoadXml_1.onLoad = function(){
articleList = this.firstChild.childNodes;
var txt = "";
for (i=0; i<articleList.length; i++) {
elementList = articleList[i].childNodes;
for (j=0; j<elementList.length; j++) {
elementTag = elementList[j];
switch(elementTag.nodeName){
case "id":
txt += elementTag.firstChild.nodeValue+',';
break;
case "name":
txt += elementTag.firstChild.nodeValue+',';
break;
case "date":
txt += elementTag.firstChild.nodeValue+',';
break;
}
}
txt += '\n';
}
trace(txt); /*顯示載入的資料*/
}
/*開始載入 load_1.xml*/
LoadXml_1.load("load_1.xml");
<!-- load_2.xml -->
<?xml version="1.0" encoding="utf-8"?>
<xmltest>
<parentnode id="1" name="小明" date="2010-10-10" />
<parentnode id="2" name="小王" date="2010-5-15" />
</xmltest>
/*建立 XML()*/
LoadXml_2 = new XML();
/*捨棄只包含空白字元的文字節點*/
LoadXml_2.ignoreWhite=true;
/*載入完成時所執行的程式*/
LoadXml_2.onLoad = function(success) {
var articleList = this.firstChild.childNodes;
var txt = "";
for (i=0; i<articleList.length; i++){
txt += articleList[i].attributes.id+','
+articleList[i].attributes.name+','
+articleList[i].attributes.call+','
+articleList[i].attributes.channel+"\n";
}
trace(txt);/*顯示載入的資料*/
};
/*開始載入 load_2.xml*/
LoadXml_2.load("load_2.xml");