output html and swf