User Tools

Site Tools


wiki:plugins:swfobject

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:plugins:swfobject [2009/06/24 12:04] jaswiki:plugins:swfobject [2009/06/24 12:58] (current) jas
Line 2: Line 2:
  
 Embedding Flash into a website can be pain - especially if you need an alternative image when Flash is being blocked or non-existing. The OpenSource project [[http://code.google.com/swfobject|swfObject]] offers a clean way for almost every browser to insert Flash objects - with an alternative in case Flash is not installed.  Embedding Flash into a website can be pain - especially if you need an alternative image when Flash is being blocked or non-existing. The OpenSource project [[http://code.google.com/swfobject|swfObject]] offers a clean way for almost every browser to insert Flash objects - with an alternative in case Flash is not installed. 
 +
 +%%(c)%%
  
 ===== Usage ===== ===== Usage =====
Line 8: Line 10:
   %ALTERNATE_CONTENT%   %ALTERNATE_CONTENT%
   </swfobject>    </swfobject> 
- 
 ^Variable^Content^ ^Variable^Content^
 |%SWF%|your flash-media file, eg. :wiki:my_flash.swf| |%SWF%|your flash-media file, eg. :wiki:my_flash.swf|
Line 16: Line 17:
 Please see the following [[http://inetsoftware.de/other-products/dokuwiki-plugins/swfobject#options|page]] for information on the swfObject plugin. Please see the following [[http://inetsoftware.de/other-products/dokuwiki-plugins/swfobject#options|page]] for information on the swfObject plugin.
  
-<swfobject :wiki:plugins:player.swf?width=1024&height=768&file=https://wiki.cse.yorku.ca/dept/tdb/_media/wiki:plugins:traingate.flv>+===== Example ===== 
 + 
 +<code> 
 +<swfobject :wiki:plugins:winkdemo.swf?width=640&height=480> 
 +Demo cannot display. 
 +</swfobject> 
 +</code> 
 + 
 +<swfobject :wiki:plugins:winkdemo.swf?width=640&height=480> 
 +Demo cannot display. 
 +</swfobject> 
 + 
 +===== Using swfobject to display Flash ===== 
 + 
 +To display a Flash (.flv) file using the swfobject plugin, you need the [[https://wiki.cse.yorku.ca/dept/tdb/_media/:wiki:plugins:player.swf|player.swf]] file from [[http://www.longtailvideo.com/players/jw-flv-player|JW FLV Player]] which is an swf file that can display flv files.  You need to upload the player.swf to your Wiki, and then you can do something like: 
 + 
 +<code> 
 +<swfobject :wiki:plugins:player.swf?width=1024&height=768&file=https://wiki.cse.yorku.ca/dept/tdb/_media/wiki:plugins:your-flash.flv>
 additional content additional content
 </swfobject> </swfobject>
 +</code>
 +
 +===== External Links =====
 +
 +  * [[http://en.wikipedia.org/wiki/SWF|Wikipedia on SWF]]
 +  * [[http://en.wikipedia.org/wiki/FLV|Wikipedia on Flash]]
 +  * [[http://en.wikipedia.org/wiki/SWFObject|Wikipedia on SWFObject]]
  
wiki/plugins/swfobject.1245859443.txt.gz · Last modified: 2009/06/24 12:04 by jas