Switch proxy class, remove deprecation warnings for AS > 4.0