texture and sound resources loading working in flash