5 Replies Latest reply: Feb 11, 2011 11:56 AM by Ned Murphy RSS

    creating mask layer causes 1067 -coercion of Boolean to flash.geom:Rectangle

    Mark Embrey Community Member

      I am defintitley a newb -

       

      I am attempting to use a "magnifying glass" effect to view a larger layer (e.g., 600x300 ) through a smaller layer (e.g., 200x75 ) by use of a mask layer.

       

      I have 4 layers to my code:

       

      1. as3

      2. mask

      3. large image

      4. small image

       

      the only code in the whole thing is, of course, in my as3 which reads:

       

      1 startDrag ("lens", true);

       

      that's it!

       

      and yet, this throws the following error:

       

      1067: Implicit coercion of a value of type Boolean to an unrelated type flash.geom:Rectangle.

       

       

       

      Can anyone shed any light on what I'm wrong here?

       

      many, many thanks,

       

      MCE