My List

Sunday, March 18, 2007

比較innerText; outerText; innerHTML; outerHTML

TEST relief.twbbs.org


innerText: 設置或獲取位於對像起始和結束標籤內的文本
--> TEST relief.twbbs.org

outerText: 設置或獲取對象的文本
--> TEST relief.twbbs.org

innerHTML: 設置或獲取位於對像起始和結束標籤內的 HTML
--> TEST relief.twbbs.org

outerHTML: 設置或獲取對象及其內容的 HTML 形式
--> TEST relief.twbbs.org
Demo: http://relief.twbbs.org/code/html/


[ActionScript] 動態文字遮罩

myMovieClip .setMask ( maskMovieClip )

myMovieClip : The instance name of a movie clip to be masked.
maskMovieClip : The instance name of a movie clip to be a mask.

The setMask method allows multiple-frame movie clips with complex, multilayered content to act as masks. You can shut masks on and off at runtime. However, you can't use the same mask for multiple maskees (which is possible by using mask layers). If you have device fonts in a masked movie clip, they are drawn but not masked. You can't set a movie clip to be its own mask, for example mc.setMask(mc) .

From: http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary566.html