A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Flash - CSS - DIVs and Alternate Content

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    2

    Flash - CSS - DIVs and Alternate Content

    Hi everyone,

    This is my first post, so I will try to be "clear" -- LOL
    I have a site with lots of flash content that uses the embed method to show my flash movies in each pages.

    Each movie (within each page) is actually also contained in a div of its own.

    So for example, I have:
    <div id="Flash-movie">

    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
    codebase=
    "http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
    width="500" height="700" id="blabla" align=
    "left"><param name="allowScriptAccess" value="sameDomain">
    <param name="movie" value="blabla.swf">
    <param name="quality" value="Best">
    <param name="bgcolor" value="#ffffff">
    <param name="menu" value="false">
    <embed src="blabla.swf" quality="Best" bgcolor=
    "#ffffff" width="500" height="700" name="blabla"
    align="middle" allowscriptaccess="sameDomain" type=
    "application/x-shockwave-flash" pluginspage=
    "http://www.macromedia.com/go/getflashplayer" menu="false"></object></div>

    NOW...here is what I am trying to accomplish so that non flash supporting browsers -- aka iOS...
    shows something else based on whether or not Flash player is installed. What I am thinking is that if there is no flash, Hide Div Id Flash-movie and show Div Id No-Flash-Movie.

    And am not sure at all how to do this... anyone can help me here?

    Thanks!

  2. #2
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    The way I'd recommend would be to use SWFObject or a similar Javascript embedding method. The page starts with your alternative content, and the Flash movie is only added if they have the right version of Flash.

    http://code.google.com/p/swfobject/wiki/documentation (look at dynamic publishing method about halfway down the page)

  3. #3
    Junior Member
    Join Date
    Jun 2011
    Posts
    2

    headache

    Quote Originally Posted by rdoyle720 View Post
    The way I'd recommend would be to use SWFObject or a similar Javascript embedding method. The page starts with your alternative content, and the Flash movie is only added if they have the right version of Flash.

    http://code.google.com/p/swfobject/wiki/documentation (look at dynamic publishing method about halfway down the page)
    Yes, I know about this method, the problem is that I have 1000s of pages which use an <embed> tag

  4. #4
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    Well SWFObject has functions for things like:

    swfobject.hasFlashPlayerVersion(versionStr)
    swfobject.getFlashPlayerVersion()

    You could use it to detect whether they have the plug-in and show/hide the appropriate stuff.

    http://code.google.com/p/swfobject/wiki/api

  5. #5
    Junior Member
    Join Date
    Jul 2011
    Location
    Wellington
    Posts
    1
    Yes,I see.This is very important.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center