I believe Bitmaps use Rectangles.

FlexJS subclasses DisplayObject which returns a Flash Matrix for the transform. 
IF you try to use transformPoint() on that, it’ll return (and expects) a Flash 
Point.

I’m sure there’s more examples.

On Jul 11, 2016, at 10:03 AM, Alex Harui <aha...@adobe.com> wrote:

> 
> 
> On 7/10/16, 11:59 PM, "Harbs" <harbs.li...@gmail.com> wrote:
> 
>> One simple example is clone() on on both Point and Rectangle. Flash
>> returns a flash Rectangle, but Flex is expecting a flex Rectangle.
>> Another one that I ran into in my own code is union() in Rectangle.
>> 
>> The casting that I did, did not even work. The compiler does not complain
>> if you change the return type to a subclass, but it looks like I’m
>> getting runtime errors.
> 
> Well sure, that's going to be a problem if flexjs rectangle subclasses
> flash.geom.Rectangle, but what I'm interested in is actual usage of
> Rectangle in our code base.  IOW, where in our code do we pass a Rectangle
> to Flash or get one back from Flash (other than in
> org.apache.flex.geom.Rectangle)?
> 
> -Alex
> 

Reply via email to