Hi2all! Earlier i used following structure:
Canvas -> Screen1
Canvas -> Screen2
When I feel need in common logic in my application I do next:
Canvas -> Screen
Screen -> Screen1
Screen -> Screen2
So when I try to apply it in my code
if(child is Screen){
return child.localToGlobal(new Point()).x;
}
It is not works! When I see in debugger, child have type "Screen2", but "child is Screen" returns false to me (and "child instanceof Screen" too). When I apply compiler key: "-keep-generated-actionscript" I can see Screen2-generated.as and it's contains
public class Screen3 extends screens.Screen
Thanks in advance Sorry for my ugly english=)