神魂顛倒論壇-Flash http://bbs.flash2u.com.tw

神魂顛倒論壇 是專注於視覺/WEB應用開發的論壇
共115 則內容, 每頁顯示 10 則, 頁碼: [1] [2][3][4][5][6][7][8] ...[12]
[瀏覽完整版]

標題:Flash 8 - Image Flood 特效範例原始檔

1樓
michaelgogogo 發表於:2013-8-19 17:40:58
感謝大大的分享
2樓
kaogou 發表於:2011-3-14 10:39:26

期待更炫得展示 

3樓
rr11111tw 發表於:2011-4-10 8:33:38
謝謝
4樓
qqalan 發表於:2015-3-31 3:09:40
 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了
5樓
TWG 發表於:2005-10-31 18:12:00
Flash 8 - Image Flood 特效範例原始檔 預覽結果: http://www.newezra.com/ultrashock/ImageFlood1-a.html 參照組: http://www.newezra.com/ultrashock/ImageFlood2-a.html 原始程式: import flash.display.BitmapData import flash.geom.Rectangle import flash.geom.Point import mx.transitions.Tween //Creates MCs to hold the BitmapData //Levels set manually to ensure right order sourceContainer = createEmptyMovieClip("sourceContainer", 2); copyContainer = createEmptyMovieClip("copyContainer", 1); maskContainer = createEmptyMovieClip("maskContainer", 3); //Create sourceBitmap and load in sourceImage from the library sourceBitmap = BitmapData.loadBitmap("sourceImage"); //Attaches the created bitmap to the mc created eariler this.sourceContainer.attachBitmap(sourceBitmap, this.getNextHighestDepth()); //Creates copyBitmap to hold all the bitmap information that is being copied over copyBitmap = new BitmapData(sourceContainer._width, 1, false, 0x000000); //Attaches BitmapData to copyContainer mc copyContainer.attachBitmap(copyBitmap, this.getNextHighestDepth()); //Creates a bitmap for the mask **this could be optimized by using a vector instead maskBitmap = new BitmapData(sourceContainer._width, sourceContainer._height, false, 0xFF0000); maskContainer.attachBitmap(maskBitmap, this.getNextHighestDepth()); //Applies the mask to the source sourceContainer.setMask(maskContainer); //Stretches the copyContainer to the height of the sourceContainer //otherwise it would be only 1px tall copyContainer._height = sourceContainer._height; //Setup tween to move the mask var maskTween = new Tween(maskContainer, "_y", mx.transitions.easing.Strong.easeInOut, sourceContainer._height, 0, 50); //Detect tween's onMotionChanged maskTween.onMotionChanged = function() { //Gets the _y of maskContainer copyPosition = Math.round(this.position); //Defines the rectangle to use as a copy area //(x, y, width, height) - y is updated by copyPosition copyRect = new Rectangle(0, copyPosition, sourceContainer._width, 1); //Point to copy to copyPoint = new Point(0, 0); //Copy from sourceBitmap using copyRectange to the point copyPoint copyBitmap.copyPixels(sourceBitmap, copyRect, copyPoint); } //On finished - yoyo! maskTween.onMotionFinished = function() { maskTween.yoyo(); }; 範例下載:
以下內容只有回覆後才可以瀏覽
6樓
TWG 發表於:2005-10-31 18:12:00
Flash 8 - Image Flood 特效範例原始檔 預覽結果: http://www.newezra.com/ultrashock/ImageFlood1-a.html 參照組: http://www.newezra.com/ultrashock/ImageFlood2-a.html 原始程式: import flash.display.BitmapData import flash.geom.Rectangle import flash.geom.Point import mx.transitions.Tween //Creates MCs to hold the BitmapData //Levels set manually to ensure right order sourceContainer = createEmptyMovieClip("sourceContainer", 2); copyContainer = createEmptyMovieClip("copyContainer", 1); maskContainer = createEmptyMovieClip("maskContainer", 3); //Create sourceBitmap and load in sourceImage from the library sourceBitmap = BitmapData.loadBitmap("sourceImage"); //Attaches the created bitmap to the mc created eariler this.sourceContainer.attachBitmap(sourceBitmap, this.getNextHighestDepth()); //Creates copyBitmap to hold all the bitmap information that is being copied over copyBitmap = new BitmapData(sourceContainer._width, 1, false, 0x000000); //Attaches BitmapData to copyContainer mc copyContainer.attachBitmap(copyBitmap, this.getNextHighestDepth()); //Creates a bitmap for the mask **this could be optimized by using a vector instead maskBitmap = new BitmapData(sourceContainer._width, sourceContainer._height, false, 0xFF0000); maskContainer.attachBitmap(maskBitmap, this.getNextHighestDepth()); //Applies the mask to the source sourceContainer.setMask(maskContainer); //Stretches the copyContainer to the height of the sourceContainer //otherwise it would be only 1px tall copyContainer._height = sourceContainer._height; //Setup tween to move the mask var maskTween = new Tween(maskContainer, "_y", mx.transitions.easing.Strong.easeInOut, sourceContainer._height, 0, 50); //Detect tween's onMotionChanged maskTween.onMotionChanged = function() { //Gets the _y of maskContainer copyPosition = Math.round(this.position); //Defines the rectangle to use as a copy area //(x, y, width, height) - y is updated by copyPosition copyRect = new Rectangle(0, copyPosition, sourceContainer._width, 1); //Point to copy to copyPoint = new Point(0, 0); //Copy from sourceBitmap using copyRectange to the point copyPoint copyBitmap.copyPixels(sourceBitmap, copyRect, copyPoint); } //On finished - yoyo! maskTween.onMotionFinished = function() { maskTween.yoyo(); }; 範例下載:
以下內容只有回覆後才可以瀏覽
7樓
tpdrrl 發表於:2006-1-2 15:50:00
精益求精,努力學習新的特效,謝謝提供
8樓
tpdrrl 發表於:2006-1-2 15:50:00
精益求精,努力學習新的特效,謝謝提供
9樓
pcwebliu 發表於:2006-1-3 9:53:00
不錯的先謝囉 期待更炫得展示
10樓
fireworkite 發表於:2006-1-11 11:35:00
http://www.unitzeroone.com/old/eightball/clouds/
共115 則內容, 每頁顯示 10 則, 頁碼: [1] [2][3][4][5][6][7][8] ...[12]

言論純屬發表者個人意見,與本論壇立場無關,文章版權歸原作者所有,禁止未授權轉載。
不歡迎非法軟體,序號,及受著作權法保護的文章等資訊
論壇內容為使用者即時上載,論壇與本人將不對任何資源或內容負起任何相關法律責任
法律顧問:台灣法律網 劉孟錦律師
內容不當投訴,請電郵至flash2u@gmail.com

Powered By 神魂顛倒 Version 8.2.0
Processed in .18652 s, 3 queries.