Results 1 to 3 of 3

Thread: View Flash content with SWFObject

  1. #1
    Join Date
    Jul 2010
    Posts
    75

    View Flash content with SWFObject

    SWFObject is a small JavaScript script used for embedding swf content into an HTML page. The script can detect the Flash plug-in in all major browsers (on Mac and PC). It is designed to make integration as simple as possible swf. Integration into the page is very clean it can be used in documents valid HTML and XHTML 1.0, and is compatible with future specifications, and you to continue to use it during the next years to come. The characteristics of SWFObject :
    • Test version of Flash Player, Flash Player's auto update if the version is incorrect (the number of the minimum version of Flash Player is provided by javascript.
    • If Flash Player is not installed, redirect to a page offering the download.
    • Using javascript for integration into a web page (HTML and XHTML valid).
    • Compatible with most browsers. Requires activation of javascript.
    • Swfobject incorporates a solution without javascript and valid HTML and XHTML.

    SWFObject works inaudibly in the background of your HTML document. SWFObject works in all most important browsers, including, on PC: IE5/5.5/6, Netscape 7 / 8, Firefox, Mozilla and Opera. MAC: IE5.2, Safari, Firefox, Netscape 6 / 7, Mozilla, and Opera 7.5 + ... SWFObject identifies Flash Player version of these browsers from version 3 and up, and tolerate users to act on the swf without having to 'activate' first. SWFObject can detect negligible versions and revision versions of Flash Player, merely passing the string of the version you want (to require the player v.9.0 r65 with the string "9.0.65.0").

  2. #2
    Join Date
    Jul 2010
    Posts
    75

    Re: View Flash content with SWFObject

    Using SWFObject is straightforward. Merely add the swfobject.js Javascript file, and then adjoin a bit of Javascript in your page to include your swf. Here is an illustration showing the least amount of code required to include a swf:
    Code:
    <script type="text/javascript" src="swfobject.js"> </ script>
    
     <div id="flashcon">
     Remember to enable Javascript.
     </ Div>
    
     <script type="text/javascript">
     swfobject.embedSWF ("http://www.abc.com/tool/swf/tool_v3.swf", "flashcon", "546", "265", "7");
     </ Script>
    Explanation of code

    Include the file using swfobject.js
    Code:
     <script type="text/javascript" src="swfobject.js"> </ script>
    Create a div tag which will be included in your swf:
    Code:
    <div id="flashcon"> Do not forget enable Javascript. </ div>
    Allow this HTML element that contains your swf. Inside the content posted will be replaced by the swf, so users with the correct version of Flash Player will never see the content inside this element. This device also allows users to let the search engines reference a alternative content.

  3. #3
    Join Date
    Jul 2010
    Posts
    75

    Re: View Flash content with SWFObject

    Create a new SWFObject and pass it the required parameters:
    • swf - path to your swf.
    • width - the width of your SWF.
    • height - the height of your swf.
    • version - the version of player needed for your swf. This can be a string of type 'majorVersion.minorVersion.revision'. Example: "5.0.45". or you can specify only the MajorVersion, such as "5".
    • background color - The background color of your swf in hexadecimal. Example: "# ff0000"

    The following are an optional parameters :
    • expressInstall.swf - if you want to offer your users the latest version of Flash Player expressInstall.swf use. SWFObject Express fully supports the installation of Flash (Macromedia Flash Player Express Install). SWFObject included with the form of an external swf file, it works with SWFObject to begin updating your Flash. Your users never have to leave your site to update their player, and when the update is complete, it automatically returns to the page from which the update has been launched.
    • quality - the quality you want for your swf. If no quality is specified, Default "high".
    • flashvars - passing variables into your SWF. All variables go with this tag are available in your swf via _root.
    • param - allows you to configure all the parameters of the flash animation (play, loop, menu, quality, scale, saligna, wmode, bgcolor, basic swliveconnect, devicefont, allowscriptaccess, seamlesstabbing, allowFullScreen, allowNetworking).
    • attributes - attributes used to configure the flash animation (id, name, class, alignment).

Similar Threads

  1. Replies: 8
    Last Post: 15-11-2011, 08:52 AM
  2. Google chrome Flash content appear as transparent box
    By Oriole in forum Technology & Internet
    Replies: 3
    Last Post: 10-11-2011, 10:30 PM
  3. View and record TV content on Compaq Presario CQ61
    By T-User5 in forum Portable Devices
    Replies: 3
    Last Post: 30-11-2010, 06:30 AM
  4. Flash Content Error 7 - Unable To Handle
    By Udayachal in forum Software Development
    Replies: 4
    Last Post: 21-04-2010, 04:44 PM
  5. View Restricted Content with web proxy
    By Loeb in forum AntiVirus Software
    Replies: 5
    Last Post: 25-02-2009, 11:08 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,458,251.95268 seconds with 17 queries