some ActionScript 3.0 codes