Re: [SWFObject] What is the difference between createSWF and embedSWF ?

582 views
Skip to first unread message

Aran Rhee

unread,
Sep 6, 2012, 8:39:39 AM9/6/12
to swfo...@googlegroups.com
embedSWF() is what most people will use - It is a 'higher level' function which covers most needs for embedding a swf. 

As the docs say createSWF() is 'low level' method will primarily be useful when combining it with other JavaScript libraries. Another common usage is if you are doing something like dynamically attaching and destroying swfs in the same container.

Unless you are doing something funky, embedSWF() should be good for you.

Aran

On Thu, Sep 6, 2012 at 5:42 AM, Clark <a.sco...@gmail.com> wrote:


See title ;)

I looked at the docs but still do not really know the difference.

Thanks.

--
You received this message because you are subscribed to the Google Groups "SWFObject" group.
To view this discussion on the web visit https://groups.google.com/d/msg/swfobject/-/f_c8wnwwF68J.
To post to this group, send email to swfo...@googlegroups.com.
To unsubscribe from this group, send email to swfobject+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.

Philip Hutchison

unread,
Sep 6, 2012, 9:08:57 PM9/6/12
to swfo...@googlegroups.com
embedSWF invokes createSWF after detecting whether minimum flash player version is available, and includes domready event handling.

createSWF by itself just does the embedding. no domready, no version detection.

- philip
Reply all
Reply to author
Forward
0 new messages