add callback registerSWF