Google Sites SWF (Iframe)



Use the Iframe tag to embed Flash swf files .

Updated Flash Support * 
The Flash Iframe and the Flash Object 
embed now both support True Fullscreen 
directly in Google Sites HTML.

Always Check browser compatibility - in some browsers / OS combinations both may be required .



Google sites automatically generates the relevant Flash embed code.
(view the html source when you view an attached swf file).

Simple Iframe code for Google sites, other sites may required closed iframe tags 
<Iframe src="...">Iframes not supported on your device/browser </Iframe>

Google Sites Iframe:

<Iframe src="http://sites.google.com/site/drupalvsgoooglesites/rocits_introv3.swf/>

The Iframe has the same property options as embed gadgets, table of contents and sub-page listings. General Properties: width ,height ,scrollbar, border, title and view

In addition the Iframe allows you to set the Scroll and URL




Flash Object (True Fullscreen):

<object xmlns="http://www.w3.org/1999/xhtml" data="http://www.goopal.org/34-fullscreen.swf" height="200" type="application/x-shockwave-flash" width="400">
<param name="movie" value="http://www.goopal.org/34-fullscreen.swf" />
<param name="allowFullScreen" value="true" />
</object>

The Flash Object requires Javascript API SWFObject which may be disabled in Browsers and Browser Modes . 

The parameter allowFullscreen supports any active monitor/s including dual and multiple screens.

Here are Examples of Flash/SWF embedding in Google Sites, Different browsers may display different results.



Add the Flash File to 'Attachments' (at 'Top level'). Then you can simply insert the Flash SWF into your Google Site.


Flash Embed Example:



<embed src="http://sites.google.com/site/drupalvsgoooglesites/rocits_introv3.swf" width="350" height="80" ></embed>

Result:


New Flash Standards Compliant:

Flash Light Box -Flash Fullscreen Button 

(Using Flashvars directly in Google Sites)

Standards Compliant 
http://kb2.adobe.com/cps/127/tn_12701.html

Flash Embed for Allowing Fullscreen view (Flash Inserted without needing Javascript or Google Gadget) with the Parameter addition: 

Also New: SWFobject V2 and Google may insert direct Flash Support for Google Chrome.


Flash Iframe (True FullScreen)


Fullscreen is useful for Business and Educational videos / presentations were many different screen ratios are available in a single environment, 
eg. 16:9 PC Screen / Widescreeen TV, 4:3 TVs and many various mobile device ratios.

<iframe width="480" height="300" src="http://www.educreations.com/lesson/embed/378704/" frameborder="0" allowfullscreen></iframe>

Educational Presentation with FullScreen Button


Flash can use System Hardware Acceleration , too many browser windows / tabs open simultaneously can cause Flash to stall or crash completely. Flash Event Listeners are very system intensive, may require hardware acceleration.

You can Right click on the Flash Embed and go to Setting and disable the Flash Hardware Acceleration and other Site orientated configurations. 

Flash Settings are Built in to Chrome Browsers

{Google Sites - Bug Fixed: You can now edit the Embedded object directly .Edit/insert new code without starting again!}

Flash embed does not work in the Google Sites sidebar only basic html and Images.



Flash Services in Google Apps Marketplace

Google Sites: Embedded Flash / Javascript (Banners, Promotions, Menus)

Flash Object Example:



<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" 
width="350" height="80"> 
<param name="movie" value="http://sites.google.com/site/drupalvsgoooglesites/rocits_introv3.swf"> 
<!--[if !IE]> <--> 
<object data="http://sites.google.com/site/drupalvsgoooglesites/rocits_introv3.swf"
width="350" height="80" type="application/x-shockwave-flash"> 
<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer"> 
(Flash embed alternative text). 
</object> 
<!--> <![endif]--> 

</object>
 
 Result: