A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: how to replace flash with image on iphone and ipads etc

  1. #1
    Junior Member
    Join Date
    Sep 2012
    Posts
    2

    how to replace flash with image on iphone and ipads etc

    Hello.
    I have a website and I use flash for my header, and once on my homepage too.


    On my iphone it doesnt play flash and it just leaves a white square and looks bad.
    I heard you can replace flash with a picture when there is no flash..

    Here is my code:

    <tr valign=top>
    <td height=107 colspan="2" valign="top"><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="803" height="107">
    <param name="movie" value="inner.swf">
    <param name="quality" value="high">
    <embed src="inner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="803" height="107"></embed></object></tr>

    Where do I put the bit to show an image when there is no flash?

    Thanks guys.

  2. #2
    Dignitary rynoe's Avatar
    Join Date
    Jan 2003
    Location
    Earth
    Posts
    760
    <script type="text/javascript">// <![CDATA[
    var mobile = (/iphone|ipad|ipod|android|blackberry|mini|windows\s ce|palm/i.test(navigator.userAgent.toLowerCase()));
    if (mobile) {
    document.location = "http://www.yoursite.com/mobile.html";
    }
    // ]]></script>
    [SIGPIC][/SIGPIC]

  3. #3
    Junior Member
    Join Date
    Sep 2012
    Posts
    2
    im not to sure what you mean by that..

    I dont want to make my site mobile compatible i just want to replace my flash animation with a image when a user uses an iphone.

    Can you please paste an example using my code?

    Thanks

  4. #4
    Senior Member
    Join Date
    Sep 2010
    Posts
    324
    Providing alternate Flash content has been a "Best Practice" for many years now... way before the iPhone. One of the best methods is using swfobject for Flash detection.
    http://code.google.com/p/swfobject/
    The principle is very simple, provide both Flash as well as some alternate content. If the browser has a Flash pluggin.. the Flash is displayed, if not, the alternate content is displayed. This "alt content" can be used to help SEO because the alt content can be any type of regular HTML... images, text, lists, etc.
    Here is an example:
    http://www.ksowetsuits.com/
    View the source code to see how this works.
    Using a mobi page will dilute the SEO of your main page, since the mobi version is a separate URL.
    Best wishes,
    Video Man

  5. #5
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    in OP's case, embed tag is alternative content, afaik OP, try using simpler code:

    <object type="application/x-shockwave-flash" data="inner.swf" width="803" height="107">
    <param name="movie" value="inner.swf">
    <img width="803" height="107" src="alt.jpg">
    </object>
    who is this? a word of friendly advice: FFS stop using AS2

  6. #6
    Registered User
    Join Date
    Oct 2012
    Posts
    1
    A great article written with great hard work...i must say....Thanks for posting this article. I am definitely tired of struggling to find relevant and intelligent commentary on this subject. Everyone nowadays seem to go to extremes to either drive home their viewpoint or suggest that everybody else in the globe is wrong. Thanks for your concise and relevant insight a great work of your which shows...I like your site its quite informative and i would like to come here again as i get some time from my studies. i would like to invite my other friends to this site, as you have done a great job.i must say...keep it up guys..Thanks for the information.I apriciate each and every point of your article.Really great information .Keep sharing …..Well done

Tags for this Thread

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