improvements to flash embed code