# Animation of images

**URL:** <https://forum.kirupa.com/t/animation-of-images/254808>\
**Category:** flash\
**Created:** [March 15, 2008, 6:12pm UTC](https://forum.kirupa.com/t/animation-of-images/254808 "2008-03-15T18:12:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neelam14](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@neelam14](https://forum.kirupa.com/u/neelam14)\
**Post date:** [March 15, 2008, 6:12pm UTC](https://forum.kirupa.com/t/animation-of-images/254808/1 "2008-03-15T18:12:20Z")

</div>

Hi all  
i have to load dynamic images and i have done it.I have added an effect to blur other images on mouse rollover, but i want to show larger image on which mouse rollover instead of blur effect. I don’t know what to change?  
Please give some suggestions

here is my code

import flash.filters.BlurFilter;  
import mx.transitions.Tween;  
import mx.transitions.easing._;  
var myTween:Tween;  
var img\_name\_var:String;  
img\_name\_txt.\_visible = false;  
img\_var = “images/blue\_product.png,images/green\_product.png,images/orange\_product.png,images/pink\_product.png,images/purple\_product.png”;  
var xcord:Number = 10;  
xcor = 30;  
xcor2 = -300;  
ycor = 210;  
incr = 0;  
//////  
img\_name = img\_var.split(",");  
///////  
for (i=0; i\<img\_name.length; i++) {  
this.createEmptyMovieClip(“mc”+i, this.getNextHighestDepth());  
var mclListener:Object = new Object();  
mclListener.onLoadInit = function(target\_mc:MovieClip) {  
target\_mc.\_x = xcor;  
target\_mc.\_y = ycor-target\_mc.\_height;  
xcor += target\_mc.\_width+20;  
target\_mc.onPress = function() {  
temp = target\_mc.\_name;  
index = temp.slice(temp.length-1);  
};  
target\_mc.onRollOver = function() {  
delete \_root.onEnterFrame;  
temp = target\_mc.\_name;  
index = Number(temp.slice(temp.length-1));  
myTween = new Tween(target\_mc, “blur”, mx.transitions.easing.Elastic.easeOut, 0, 20, 3, true);  
myTween.onMotionChanged = function() {  
target\_mc.filters = [];  
for (var j = 0; j\<img\_name.length; j++) {  
\_root[“mc2”+j].filters = [new BlurFilter(target\_mc.blur, target\_mc.blur, 1)];  
if (j != index) {  
\_root[“mc”+j].filters = [new BlurFilter(target\_mc.blur, target\_mc.blur, 1)];  
}  
}  
};  
};  
target\_mc.onRollOut = function() {  
delete \_root.onEnterFrame;  
// }  
slideit();  
myTween.yoyo();  
};  
};  
var image\_mcl:MovieClipLoader = new MovieClipLoader();  
image\_mcl.addListener(mclListener);  
image\_mcl.loadClip(img\_name_, “mc”+i);  
target\_mc.mycode = img\_code\*;  
}
