Flash Tutorials - Herong's Tutorial Examples - Version 3.01, by Dr. Herong Yang
Calling embedSWF() with "flashvars"
This section provides a tutorial example on how to specify 'flshvars' parameters to the embedSWF() function provided by SWFObject 2.
Now let's use SWFObject 2 to play mp3player to learn how to specify flashvars in the embedSWF() function.
To test this Web page, you need to have 5 more files: expressInstall.swf, player_mp3_maxi.swf, Music_Sample.mp3, mp3player_config.txt and mp3player_skin.jpg.
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 mp3player displayed and you can play it.
Otherwise, you will see a static image.
Last update: 2014.
Table of Contents