embedSWF places instance of flash within the page by replacing an element when DOM is ready
createSWF sets a instance of flash within the page by replacing an element after the DOM has loaded (useful when combining it with other JavaScript libraries) -- it takes a slightly different set of args the swf file set as the data prop of the first arg flashvars are set in params http://code.google.com/p/swfobject/wiki/api so if I make a page that use flash to play a podcast and I want the user to be able to choose another radio show from a menu of shows I can apply click events to the links (using jQuery in my case but you could use whatever) to archived shows and this link removes the current show then creates a new swf casting the newley selected show so this means I stop playing one and start a new one ; the tests on the wiki have all the info you need to set this up within you project - S On 12 May 2010 17:34, krishna kandula <[email protected]> wrote: > was wondering what the advantages of(or how different) swfobject.createSWF > method is to swfobject.embedSWF and viceversa > -thank you > > > On Wed, Apr 7, 2010 at 12:11 PM, kris <[email protected]> wrote: > >> Thanks Sam !! >> >> On Apr 6, 2:47 pm, Sam Sherlock <[email protected]> wrote: >> > there is removeSWF or you can use externalInterface >> > >> > http://learnswfobject.com/advanced-topics/external-interface/ >> > <http://learnswfobject.com/advanced-topics/external-interface/> >> http://www.bobbyvandersluis.com/swfobject/testsuite_2_1/test_api_crea... >> > >> > - S >> > >> > On 6 April 2010 21:59, kris <[email protected]> wrote: >> > >> > > is there a method like kill or stop or close in SWFOBJECT that will >> > > stop the swf from playing. Thanks ! >> > >> > > -- >> > > You received this message because you are subscribed to the Google >> Groups >> > > "SWFObject" group. >> > > To post to this group, send email to [email protected]. >> > > To unsubscribe from this group, send email to >> > > [email protected]<swfobject%[email protected]> >> <swfobject%[email protected]<swfobject%[email protected]> >> > >> > > . >> > > For more options, visit this group at >> > >http://groups.google.com/group/swfobject?hl=en. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "SWFObject" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<swfobject%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/swfobject?hl=en. >> >> > -- > You received this message because you are subscribed to the Google Groups > "SWFObject" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<swfobject%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/swfobject?hl=en. > -- You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.
