How is it done in AS3?