How to embed Flash Player content using SWFObject dynamic publishing
STEP 1: Create alternative content using standards compliant markup
STEP 2: Include the SWFObject JavaScript library in the head of your HTML page
STEP 3: Embed your SWF with JavaScript
STEP 4: Use JavaScript Objects to define your flashvars, params and object’s attributes
TIPS
- Use the SWFObject HTML and JavaScript generator to help you author your code [ http://code.google.com/p/swfobject/wiki/generator ]
- Just repeat steps 1 and 3 to embed multiple SWF files into one HTML page
Why use Dynamic publishing
Description
Create alternative content using standards compliant markup and embed Flash content with unobtrusive JavaScript.
Pros
Avoids ‘click-to-activate’ mechanisms in Internet Explorer 6+ and Opera 9+ and is easy to author (even without using this generator).
Cons
The embedding of Flash content relies on JavaScript, so if you have the Flash plug-in installed, but have JavaScript disabled or use a browser that doesn’t support JavaScript, you will not be able to see your Flash content, however you will see alternative content instead. Flash content will also not be shown on a device like Sony PSP, which has very poor JavaScript support, and automated tools like RSS readers are not able to pick up Flash content.

Thanks for coding. I was really looking for it for my facebook apps.