This content has been marked as final. Show 3 replies
You can apply the filter to the clip that you are loading the new clip
into. If, for instance, you have an empty movie clip on the stage that
you are loading this new clip into, then just select the empty clip and
apply the filter directly, or, apply the filter using actionscript
before you load the new clip.
Adobe Community Expert
You know, I really thought that would work but it just isn't. What I'm trying to find now is some kind of a work-around because applying the filter directly to the empty movie clip isn't doing it. Thanks very much for posting though, Rob.
Were you doing it after the onLoadInit event in the MovieClipLoader's listener?
Try doing it that way if you haven't. One option I use for dynamic image loading is to create and empty holder clip - use that for placement and create another empty clip inside that one that I use as the loading target... I think this should work if you set the filter at the level of the first 'empty' clip. I had to use this approach a number of times because I was using a tweening engine based on movieclip prototype extensions (old hat I know) and loading new images kicked out the extended functionality from the clip the images are loaded into. That doesn't happen to the clip's parent... hence I think it might work also for what you want to do.
Another thing to watch for is that you can't do bitmapData copies of images from a different domain unless you have crossdomain policy support - you can set it up so this works. I'm not sure if this affects filters though.