creationComplete="initFilter(event);" width="700">
import mx.effects.EffectTargetFilter;
import flash.events.Event;
public function filterFunc(propChanges:Array,instanceTarget:Object):Boolean {
for (var i:uint=0; i < propChanges.length; i++){
if (propChanges[i].target == instanceTarget){
if (propChanges[i].end["x"] != undefined){
return (propChanges[i].end.x > 100);
}
}
}
return false;
}
private function initFilter(event:Event):void {
var myBlurFilter:EffectTargetFilter = new EffectTargetFilter();
myBlurFilter.filterFunction=filterFunc;
myBlur.customFilter=myBlurFilter;
myUnBlur.customFilter=myBlurFilter;
}