神魂顛倒論壇logo

icon
首頁Adobe Animate CCFlash CC 新功能專區 → Flash 8 - Image Flood 特效範例原始檔

Silverlight 5 | 雷射溶脂 | 瘦小腹 | 植髮 | 眼袋 | 玻尿酸 | 電波拉皮 | Flash | 購物車 | Flash Player 11.2 | 豐胸 |

下一主題 上一主題


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


簡版






感謝大大的分享



購物車 | 回到頂部

簡版






期待更炫得展示 





減肥診所 | 回到頂部
Icon
雅虎即時通 talk816

歡迎聊天討論

我的工作室網址 http://kaogou.idv.cc

謝謝 簡版






謝謝



購物車 | 回到頂部

回覆:(aking080)這麼棒的東西,一定要帶著走。 簡版






 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了 太棒了



Flash | 回到頂部

簡版






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();
};


範例下載:


以下內容只有回覆後才可以瀏覽




自體脂肪隆乳 | 回到頂部
Icon
網路的事情,讓網路解決

[ 逛網路就像是在探險 ]

    神 魂 顛 倒 T W G

http://bbs.flash2u.com.tw

http://tw.myblog.yahoo.com/flash2u-twg

http://flash-silverlight.blogspot.com/

http://flash2u.spaces.live.com/?_c02_owner=1

簡版






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();
};


範例下載:


以下內容只有回覆後才可以瀏覽




購物車 | 回到頂部
Icon
網路的事情,讓網路解決

[ 逛網路就像是在探險 ]

    神 魂 顛 倒 T W G

http://bbs.flash2u.com.tw

http://tw.myblog.yahoo.com/flash2u-twg

http://flash-silverlight.blogspot.com/

http://flash2u.spaces.live.com/?_c02_owner=1

簡版






精益求精,努力學習新的特效,謝謝提供



自體脂肪隆乳 | 回到頂部

簡版






精益求精,努力學習新的特效,謝謝提供



Flash | 回到頂部

簡版






不錯的先謝囉
期待更炫得展示




Flash Player 12 | 回到頂部

簡版






http://www.unitzeroone.com/old/eightball/clouds/



Flash | 回到頂部
下一主題 上一主題
總數 115 1 2 3 4 5 6 7 8 9 10 下一頁 ..12