# Flash Eff Error! Please Help!

**URL:** <https://forum.kirupa.com/t/flash-eff-error-please-help/314010>\
**Category:** Uncategorized\
**Created:** [September 16, 2010, 2:32am UTC](https://forum.kirupa.com/t/flash-eff-error-please-help/314010 "2010-09-16T02:32:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivefree](https://avatars.discourse-cdn.com/v4/letter/v/f05b48/32.png) [@vivefree](https://forum.kirupa.com/u/vivefree)\
**Post date:** [September 16, 2010, 2:32am UTC](https://forum.kirupa.com/t/flash-eff-error-please-help/314010/1 "2010-09-16T02:32:21Z")

</div>

“FLASHEFF2 ERROR: Target must be a non-null DisplayObject.”

My problem is that the Flash Eff effect cannot be applied to my movieclip instance. It works fine if I add the movieclip to the stage by dragging it from the library but not if I initialize it from Actionscript:

```auto

import com.jumpeye.Events.FLASHEFFEvents;
import com.jumpeye.flashEff2.filter.reflection.FEFReflection;
import myImage;

var image1:myImage = new myImage();
addChild(image1);

var effect:FlashEff2Code = new FlashEff2Code();
addChild(effect);

var reflection:FEFReflection = new FEFReflection();
reflection.refresh = false;
reflection.reflectionAlpha = 0.8;
reflection.reflectionRatio = 160;

effect.addFilter(reflection);

effect._targetInstanceName = "image1";

```

Please Help!
