Embedding Flash Objects Easily
-
Hello there!
I have searched for a plug in to embed a flash object into my posts but none have worked properly. So I did a very simple plug in that embeds a valid Flash Object. It is very simple end don’t use JavaScript, so it should work on every machine that contains Flash. If doesn’t, you can set an alternative text to display.Here is the plug in file:
https://www.ianliu.art.br/trabalhos/wp-plugins/EasyFlash.zipUsage:
To embed flash objects, just use the[swf][/swf]
tag. Put inside of it all the properties your Flash will have. Some are obligated:data – The path to your swf
width – the width ??
height – the heightA simple usage example:
[swf] data = "your_flash.swf", width="300", height="300" [/swf]
Notice that you must separate the properties with comma.
All other parameters you put inside the tag will be added as a <param /> tag into the flash object. So, to make a transparent background you would do this:[swf]wmode="transparent", data="foo.swf", width="100", height="100"[/swf]
So, to make a high quality flash, just add quality=”high” to the tag. You can put the properties in any order.
If you want to put an alternative message, use the “noPlugin” property:
[swf]noPlugin="<a href="url">GetPlugin</a>", ...[/swf]
Notice that you can use double quotes inside the value, there is no need to use single quotes.The last thing:
If you don’t want the plug in to parse the swf tags, just use DONT_PARSE word inside the tag:
[swf]DONT_PARSEdata="foo",...[/swf]
will generate[swf]data="foo",...[/swf]
in your post.Thats all. Suggestions, bugs and feedbacks are very welcome! Send to my email: [email protected]
Regards,
Ian Liu.
- The topic ‘Embedding Flash Objects Easily’ is closed to new replies.