First of all, Wordpress will not recognize a local file. So you will have to edit the html embed code to put the absolute path to your .swf file, wherever you have put it on your site (or elsewhere). Two different places in the code you will see a reference to “myfilename.swf”. You will have to edit it to make the full url, such as “http://mywebhost.com/swfs/myfilename.swf”.
Wordpress has a sucky visual editor. They were supposed to fix it in the 2.5 release, but it’s even worse now than ever. It used to be I could just disable the visual editor, but now it mangles code in the disabled mode, too. And one of the things it totally mangles is the html code you use to embed your flash.
So first, you need to disable the editor. Go to users and select your profile. The top option on the page is the “Visual Editor/Use the visual editor when writing” checkbox. Uncheck it.
Now Wordpress is still going to mangle our code, because unlike in regular html, Wordpress thinks that line breaks and spaces mean something important. And it thinks they mean something different each time it sees them. If your embed code is full of line breaks and spaces, as SWISHmax 2-exported code is, Wordpress is going to look at each line, decide what it really wants to turn it into, and then go ahead and do it. By the time it gets done you will just have some gibberish on the page that doesn’t resemble your embed code.
So what can you do? Open up Notepad. Make sure that Word Wrap is turned off (Format => Word Wrap). Open your html file that SWISHmax 2 put the embed code in. The part you need starts with <object> and ends with </object>. Start with that first <object> tag, hit the “End” key on your keyboard, then press the delete key until you have deleted all the spaces between that and the next. Leave a space between words and phrases within a bracket; leave no spaces between one tag and the next. What you should end up with is your entire embed code on one line. Now just copy and paste it into your blog.
