# Liquefy Help

**URL:** <https://forum.kirupa.com/t/liquefy-help/123264>\
**Category:** Uncategorized\
**Created:** [September 22, 2004, 3:04am UTC](https://forum.kirupa.com/t/liquefy-help/123264 "2004-09-22T03:04:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goshin](https://avatars.discourse-cdn.com/v4/letter/g/46a35a/32.png) [@Goshin](https://forum.kirupa.com/u/Goshin)\
**Post date:** [September 22, 2004, 3:04am UTC](https://forum.kirupa.com/t/liquefy-help/123264/1 "2004-09-22T03:04:25Z")

</div>

Hi,  
I’m pretty new to Flash (MX 2004) and brand new to these forums. I’m trying to create the “Liquefy an image” effect but it’s not working. I get no errors when inputting the script into ActionScript but the effect doesn’t work at all. Can someone please tell me what’s wrong with the script I’m using for the effect?  
**Here’s the script I’m using (from Kirupa tutorial):**

var theRubberizer:MovieClip = this.createEmptyMovieClip(“theScene”, this.getNextHighestDepth());  
var maxImages:Number = 20;  
dupeAndPlace = function(image:MovieClip):Object{  
var arrHolder:Object = new Object();  
arrHolder.pics\_arr = new Array(0);  
arrHolder.masks\_arr = new Array(0);  
for(var i=1; i\< maxImages; i++){  
var dnm = “image” + i;  
var mnm = “mask” + i;  
var imgObj = {\_x:image.\_x, \_y:image.\_y, \_xscale:100+(i_1.5), \_yscale:100+(i_1.5)};  
var maskObj = {\_xscale:Math.floor(100/i+3), \_yscale:Math.floor(100/i+3)};  
var theDupedImage = image.duplicateMovieClip(dnm, theRubberizer.getDepth()+i, imgObj);  
var theDupedMask = mask\_mc.duplicateMovieClip(mnm, theRubberizer.getDepth()+ (i_50), maskObj);  
theDupedImage.setMask(theDupedMask);  
arrHolder.masks\_arr.push(theDupedMask);  
} //the loop is closed  
mask\_mc.\_visible = false;  
mask1.\_visible=false;  
image1.\_visible=false;  
//return the object  
return arrHolder;  
}; //the function is closed  
//make waves  
makeWaves = function (masks\_arr:Array) {  
for (var i = masks\_arr.length; i\>0; i–) {  
masks\_arr_.\_x += (this.\_xmouse-masks\_arr\*.\_x)/maxImages_i;  
masks\_arr_.\_y += (this.\_ymouse-masks\_arr\*.\_y)/maxImages\*i;  
}  
};  
///the func to call /////////  
liquefyImage = function(theImage:MovieClip){

var arrHolder:Object = dupeAndPlace(theImage);  
theRubberizer.onEnterFrame = function(){  
makeWaves(arrHolder.masks\_arr);  
}  
}  
//

**Thanks alot**
