A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Warning: Filter will not render

  1. #1

    Warning: Filter will not render

    Hi,

    I get this error in Flash player 9 (10 works fine)

    The image I'm trying to distort is 2203 x 250, so I don't know why it's saying the maximum is 3334 ?


    Actionscript Code:
    Warning: Filter will not render.  The DisplayObject's filtered dimensions (3334, 571) are too large to be drawn.

    Actionscript Code:
    public function displaceImage(e:Event):void
            {  
               
                var rt:MovieClip = Main(root);
               
                var speed:Number = 2;
                var imgWdth:Number = rt.image_mc.image1_mc.width;

                rt.displace_mc.visible = false;
               
                starting_position += mult;
                mult = +speed;
                   
                displacementData.draw(rt.displace_mc);
                displacementFilter = new DisplacementMapFilter(displacementData,new Point(starting_position,0),1,1,displacementAmount,displacementAmount,DisplacementMapFilterMode.CLAMP,0,0);
                displacementFilter.scaleX = displacementFilter.scaleY = displacementAmount;
                rt.image_mc.filters = [displacementFilter];

                rt.image_mc.x -= speed;
               
                if(rt.image_mc.x < -imgWdth){
                    trace('adasd '+rt.image_mc.image1_mc.name);
                }
               
               
            }

           
        }

  2. #2
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    The filter needs to render a larger image for overflow around the edges and that's pushing you out of the max image dimensions. If your filtered object is a bitmap you may be able to get away with filtering the bitmapData directly using applyFilter - otherwise you'll need to make the object smaller or force your users to use FP10.
    Please use [php] or [code] tags, and mark your threads resolved 8)

  3. #3
    ok thanks

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center