How do I get the 'super' or 'base' class of an object?

How do I get the ‘super’ or ‘base’ class of an object?

for example I have the classes ‘Red’ ‘Green’ ‘Blue’ that all extend ‘Colour’;

I would like to have some code that does this

if(myObject.super is Colour)trace('Colour detected');

at the moment I have something like

if(myObject is Red || myObject is Blue || myObject is Green)trace('Colour detected');

Thank you for your consideration.