swfobject.registerObject vs swfobject.embedSWF

2k Views Asked by At

swfobject.registerObject vs swfobject.embedSWF. Which one is better and why?

1

There are 1 best solutions below

0
On BEST ANSWER

swfobject.registerObject is used when embedding the SWF using static markup (the nested object approach).

swfobject.embedSWF is used for embedding SWFs with JavaScript.

They are not competitors, and are used in completely different circumstances.

References:

SWFObject documentation

learnswfobject.com