Flash Tutorials - Herong's Tutorial Examples - Version 3.02, by Dr. Herong Yang
Calling swfobject.embedSWF() Function
This section provides a tutorial example on how to embed SWF files in Web pages using the embedSWF() function provided by SWFObject 2.
After reading the SWFObject 2 documentation at http://code.google.com/p/swfobject/wiki/documentation, I wrote a simple tutorial example to play the Yahoo Flash, SWFObject_test:
Then I copied WFObject_test.html together with swfobject.js to a new folder, and opened it with Firefox and IE. The Yahoo flash worked nicely!
I have included the above code here on this page.
If you are reading the Web version of this book,
you should be able to see Yahoo displayed as animation.
Otherwise, you will see a static image.
Last update: 2014.
Table of Contents