Replace ActionScript base structure