# How Apply Filters to dynamically loaded images?

**URL:** <https://forum.kirupa.com/t/how-apply-filters-to-dynamically-loaded-images/215896>\
**Category:** flash\
**Created:** [February 11, 2007, 10:17pm UTC](https://forum.kirupa.com/t/how-apply-filters-to-dynamically-loaded-images/215896 "2007-02-11T22:17:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daveg92656](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@daveg92656](https://forum.kirupa.com/u/daveg92656)\
**Post date:** [February 11, 2007, 10:17pm UTC](https://forum.kirupa.com/t/how-apply-filters-to-dynamically-loaded-images/215896/1 "2007-02-11T22:17:47Z")

</div>

Using Flash 8;

Hello,

I am trying to add simple drop shadows to a few dynamically loaded images and it’s not working. If I create a plain box or rectangle, the drop shadow filter works fine, but not with loaded .jpg’s. Can anyone help!! Here’s my code:

import Flash.filters.DropShadowFilter;  
\_root.createEmptyMovieClip(“Window1”, \_root.getNextHighestDepth());  
Window1.loadMovie(“image1.jpg”);  
Window1.\_x = 200;  
Window1.\_y = 150;  
var dropShadow:DropShadowFilter = new DropShadowFilter(10, 45, 0x000000, 0.4, 5, 5, 1, 2);  
Window1.filters = [dropShadow];

//Note: image1.jpg resides in the same folder as .swf.

Thanks, Dave.
