changed to flash and as3