850 likes | 860 Views
The Flash authoring environment is used to create Flash movies. The .swf file is included in the page using JavaScript. The .fla file is exported to a format called .swf. HOW FLASH WORKS. TIMELINE: FLASH, VIDEO & AUDIO. 1995 1996 1997 1998 1999 2000 2001 2002 2003.
E N D
The Flash authoring environment is used to create Flash movies The .swf file is included in the page using JavaScript The .fla file is exported to a format called .swf HOW FLASH WORKS
TIMELINE: FLASH, VIDEO & AUDIO 1995 1996 1997 1998 1999 2000 2001 2002 2003 RealAudio streaming audio AUDIO
TIMELINE: FLASH, VIDEO & AUDIO 1995 1996 1997 1998 1999 2000 2001 2002 2003 Future Splash, forerunner to Flash ANIMATION AUDIO
TIMELINE: FLASH, VIDEO & AUDIO 1995 1996 1997 1998 1999 2000 2001 2002 2003 ANIMATION AUDIO RealVideo streaming video VIDEO
TIMELINE: FLASH, VIDEO & AUDIO 1995 1996 1997 1998 1999 2000 2001 2002 2003 ANIMATION AUDIO Flash 4 streaming audio VIDEO
TIMELINE: FLASH, VIDEO & AUDIO 1995 1996 1997 1998 1999 2000 2001 2002 2003 ANIMATION AUDIO VIDEO RealVideo 8 streaming video
TIMELINE: FLASH, VIDEO & AUDIO 1995 1996 1997 1998 1999 2000 2001 2002 2003 ANIMATION AUDIO VIDEO Flash MX Flash video
TIMELINE: FLASH, VIDEO & AUDIO 2004 2005 2006 2007 2008 2009 2010 2011 Vimeo launched VIDEO
TIMELINE: FLASH, VIDEO & AUDIO 2004 2005 2006 2007 2008 2009 2010 2011 YouTube launched VIDEO
TIMELINE: FLASH, VIDEO & AUDIO 2004 2005 2006 2007 2008 2009 2010 2011 Prototype ANIMATION VIDEO
TIMELINE: FLASH, VIDEO & AUDIO 2004 2005 2006 2007 2008 2009 2010 2011 script.aculo.us ANIMATION VIDEO
TIMELINE: FLASH, VIDEO & AUDIO 2004 2005 2006 2007 2008 2009 2010 2011 JQuery ANIMATION VIDEO
TIMELINE: FLASH, VIDEO & AUDIO 2004 2005 2006 2007 2008 2009 2010 2011 iPhone APPLE ANIMATION VIDEO
TIMELINE: FLASH, VIDEO & AUDIO 2004 2005 2006 2007 2008 2009 2010 2011 APPLE ANIMATION YouTube iPhone app VIDEO
TIMELINE: FLASH, VIDEO & AUDIO 2004 2005 2006 2007 2008 2009 2010 2011 Safari BROWSER APPLE ANIMATION VIDEO
TIMELINE: FLASH, VIDEO & AUDIO 2004 2005 2006 2007 2008 2009 2010 2011 Chrome & Firefox BROWSER APPLE ANIMATION VIDEO
TIMELINE: FLASH, VIDEO & AUDIO 2004 2005 2006 2007 2008 2009 2010 2011 Opera BROWSER APPLE ANIMATION VIDEO
TIMELINE: FLASH, VIDEO & AUDIO 2004 2005 2006 2007 2008 2009 2010 2011 BROWSER APPLE ANIMATION Vimeo HTML5 Video VIDEO
TIMELINE: FLASH, VIDEO & AUDIO 2004 2005 2006 2007 2008 2009 2010 2011 BROWSER iPad APPLE ANIMATION VIDEO
TIMELINE: FLASH, VIDEO & AUDIO 2004 2005 2006 2007 2008 2009 2010 2011 BROWSER APPLE ANIMATION YouTube HTML5 Video VIDEO
TIMELINE: FLASH, VIDEO & AUDIO 2004 2005 2006 2007 2008 2009 2010 2011 IE9 BROWSER APPLE ANIMATION VIDEO
ADDING A FLASH MOVIE TO YOUR WEB PAGE <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ libs/swfobject/2.2/swfobject.js"> </script> <script type="text/javascript"> swfobject.embedSWF("flash/bird.swf", "bird", "400", "300", "8.0.0"); </script></head><body><div id="bird"><p>An animation of a bird taking a shower</p></div></body>
ADDING A FLASH MOVIE TO YOUR WEB PAGE <head><script type="text/javascript" src="http://ajax.googleapis.com/ajax/ libs/swfobject/2.2/swfobject.js"> </script> <script type="text/javascript"> swfobject.embedSWF("flash/bird.swf", "bird", "400", "300", "8.0.0"); </script></head><body><div id="bird"><p>An animation of a bird taking a shower</p></div></body>
ADDING A FLASH MOVIE TO YOUR WEB PAGE <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ libs/swfobject/2.2/swfobject.js"> </script><script type="text/javascript"> swfobject.embedSWF("flash/bird.swf", "bird", "400", "300", "8.0.0"); </script></head><body><div id="bird"><p>An animation of a bird taking a shower</p></div></body>
ADDING A FLASH MOVIE TO YOUR WEB PAGE <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ libs/swfobject/2.2/swfobject.js"> </script> <script type="text/javascript">swfobject.embedSWF("flash/bird.swf", "bird", "400", "300", "8.0.0"); </script></head><body><div id="bird"><p>An animation of a bird taking a shower</p></div></body> 1
ADDING A FLASH MOVIE TO YOUR WEB PAGE <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ libs/swfobject/2.2/swfobject.js"> </script> <script type="text/javascript"> swfobject.embedSWF("flash/bird.swf","bird", "400", "300", "8.0.0"); </script></head><body><div id="bird"><p>An animation of a bird taking a shower</p></div></body> 1 2
ADDING A FLASH MOVIE TO YOUR WEB PAGE <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ libs/swfobject/2.2/swfobject.js"> </script> <script type="text/javascript"> swfobject.embedSWF("flash/bird.swf", "bird", "400", "300", "8.0.0"); </script></head><body><div id="bird"><p>An animation of a bird taking a shower</p></div></body> 1 2 3
ADDING A FLASH MOVIE TO YOUR WEB PAGE <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ libs/swfobject/2.2/swfobject.js"> </script> <script type="text/javascript"> swfobject.embedSWF("flash/bird.swf", "bird", "400", "300", "8.0.0"); </script></head><body><div id="bird"><p>An animation of a bird taking a shower</p></div></body> 1 2 3 4
ADDING A FLASH MOVIE TO YOUR WEB PAGE <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ libs/swfobject/2.2/swfobject.js"> </script> <script type="text/javascript"> swfobject.embedSWF("flash/bird.swf", "bird", "400", "300", "8.0.0"); </script></head><body><div id="bird"><p>An animation of a bird taking a shower</p></div></body> 1 2 3 4 5
ADDING A FLASH MOVIE TO YOUR WEB PAGE <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ libs/swfobject/2.2/swfobject.js"> </script> <script type="text/javascript"> swfobject.embedSWF("flash/bird.swf", "bird", "400", "300", "8.0.0"); </script></head><body><div id="bird"><p>An animation of a bird taking a shower</p></div></body>
UNDERSTANDING VIDEO FORMATS & PLAYERS Older browsers require a plugin to show video. Each plugin only plays certain formats. AVI VHS Flash Video BluRay Ogg Theora WebM TRADITIONAL MOVIE FORMATS ONLINE FORMATS Newer browsers also support HTML5 video and audio without the need for plugins. Windows Media DVD QuickTime MPEG H264
USING HOSTEDVIDEO SERVICES ADVANTAGES DISADVANTAGES ALTERNATIVE Host your own video Flash Video HTML5 <video> element Easy to upload (no encoding required) Do not pay for bandwidth used Not exclusive to your web site No ads allowed on some sites Some insert own ads before content
PREPARING A FLASHVIDEO FOR YOUR SITE CONVERT TO FLV FIND A PLAYER EMBED IN PAGE Format: H264 Miro video converter Format: FLV Flash video converter osplayer.com longtailvideo.com swfobject.js custom JavaScript
ADDING FLASH VIDEO TO YOUR PAGES <script type="text/javascript"> var flashvars={}; var params={movie:"../video/puppy.flv"}; swfobject.embedSWF("flash/player.swf", "snow", "400", "320", "8.0.0", flashvars, params);</script><body><div id="snow"><p>A video of a puppyplaying in the snow</p></div></body>
ADDING FLASH VIDEO TO YOUR PAGES <script type="text/javascript">var flashvars={}; var params={movie:"../video/puppy.flv"}; swfobject.embedSWF("flash/player.swf", "snow", "400", "320", "8.0.0", flashvars, params);</script><body><div id="snow"><p>A video of a puppyplaying in the snow</p></div></body>
ADDING FLASH VIDEO TO YOUR PAGES <script type="text/javascript"> var flashvars={};var params={movie:"../video/puppy.flv"}; swfobject.embedSWF("flash/player.swf", "snow", "400", "320", "8.0.0", flashvars, params);</script><body><div id="snow"><p>A video of a puppyplaying in the snow</p></div></body>
ADDING FLASH VIDEO TO YOUR PAGES <script type="text/javascript"> var flashvars={}; var params={movie:"../video/puppy.flv"};swfobject.embedSWF("flash/player.swf", "snow", "400", "320", "8.0.0", flashvars, params);</script><body><div id="snow"><p>A video of a puppyplaying in the snow</p></div></body>
ADDING FLASH VIDEO TO YOUR PAGES <script type="text/javascript"> var flashvars={}; var params={movie:"../video/puppy.flv"}; swfobject.embedSWF("flash/player.swf","snow", "400", "320", "8.0.0", flashvars, params);</script><body><div id="snow"><p>A video of a puppyplaying in the snow</p></div></body>
ADDING FLASH VIDEO TO YOUR PAGES <script type="text/javascript"> var flashvars={}; var params={movie:"../video/puppy.flv"}; swfobject.embedSWF("flash/player.swf", "snow", "400", "320", "8.0.0", flashvars, params);</script><body><div id="snow"><p>A video of a puppyplaying in the snow</p></div></body>
ADDING FLASH VIDEO TO YOUR PAGES <script type="text/javascript"> var flashvars={}; var params={movie:"../video/puppy.flv"}; swfobject.embedSWF("flash/player.swf", "snow", "400", "320", "8.0.0", flashvars, params);</script><body><div id="snow"><p>A video of a puppyplaying in the snow</p></div></body>
ADDING FLASH VIDEO TO YOUR PAGES <script type="text/javascript"> var flashvars={}; var params={movie:"../video/puppy.flv"}; swfobject.embedSWF("flash/player.swf", "snow", "400", "320", "8.0.0", flashvars, params);</script><body><div id="snow"><p>A video of a puppyplaying in the snow</p></div></body>
ADDING FLASH VIDEO TO YOUR PAGES <script type="text/javascript"> var flashvars={}; var params={movie:"../video/puppy.flv"}; swfobject.embedSWF("flash/player.swf", "snow", "400", "320", "8.0.0",flashvars, params);</script><body><div id="snow"><p>A video of a puppyplaying in the snow</p></div></body>
ADDING FLASH VIDEO TO YOUR PAGES <script type="text/javascript"> var flashvars={}; var params={movie:"../video/puppy.flv"}; swfobject.embedSWF("flash/player.swf", "snow", "400", "320", "8.0.0", flashvars, params);</script><body><div id="snow"><p>A video of a puppyplaying in the snow</p></div></body>
HTML5: PREPARING VIDEOFOR YOUR PAGES SUPPORT FORMATS CONTROLS Recent browsers No DRM H264 WebM From browser Or via JavaScript
ADDING HTML5 VIDEO <body> <video src="video/puppy.mp4" poster="images/puppy.jpg" width="400" height="300" preload controls loop> <p>A video of a puppy playing in the snow.</p></video></body>
ADDING HTML5 VIDEO <body><video src="video/puppy.mp4" poster="images/puppy.jpg" width="400" height="300" preload controls loop> <p>A video of a puppy playing in the snow.</p></video></body>