Flash compiles but not works. Need some fix