SitePoint Sponsor

User Tag List

Results 1 to 19 of 19

Thread: A question

  1. #1
    believe.next.rev. Stylice's Avatar
    Join Date
    Sep 2003
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question A question

    Hey there everyone,

    I need to know if this is possible (Read below if are wondering what )

    Suppose a viewer comes and visit a site which contains a flash banner.
    So is there anyway, to check if the viewer has a flash player or not and put this way:
    >If the viewer has a flash player than show the flash banner.
    >If the viewer doesn't have a flash player than show an alternative to it (i.e. an image)

    I would really appreciate if you can help me out in this.Thanks alot (in advance) for your help.

    Best Regards,
    Stylice

  2. #2
    SitePoint Enthusiast
    Join Date
    Jan 2004
    Location
    sitepoint forums
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think it's posible but you have to use some backend programming. ASP or PHP

  3. #3
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hello

    Maybe this will answer your question.

    http://www.moock.org/webdesign/flash...tion/moockfpi/

    Hope it helps.

    later
    Johnny

  4. #4
    believe.next.rev. Stylice's Avatar
    Join Date
    Sep 2003
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Johnny Gulag
    Hello

    Maybe this will answer your question.

    http://www.moock.org/webdesign/flas...ction/moockfpi/

    Hope it helps.

    later
    Johnny
    Thanks alot Johnny! Looks like the link will be pretty much helpful after a bit of straining the eye though .
    Didn't get time to go through it but I will. If I come up with any problem I'll be back.

    Thanks again,
    Stylice

  5. #5
    Smart programmer silver trophy M.Zeb Khan's Avatar
    Join Date
    Jan 2004
    Location
    Luton, Beds
    Posts
    1,791
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Stylice!

    I think that is the Only Solution,...
    The Site which which given by the Jhonny!

  6. #6
    believe.next.rev. Stylice's Avatar
    Join Date
    Sep 2003
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh I see NewXpert. But then I guess the whole issue should start with whether it is detection or no detection for flash. Would anybody here recommend to use flash detection for flash bannners?

  7. #7
    SitePoint Wizard silver trophybronze trophy asp_funda's Avatar
    Join Date
    Jun 2003
    Location
    ether
    Posts
    4,497
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I think that Flash Player detection is useless unless you are aiming at specific player & want to know if its installed, given the younger age of it, FlashPlayer7 in this case.

    Accoding to this census http://www.macromedia.com/software/p...s/flashplayer/, 98% of Internet Users have FlashPlayers installed in their browsers.

    And according to this census http://www.macromedia.com/software/p...netration.html, 96.33% of Internet Users have FlashPlayer-5, 91.8% have FlashPlayer-6 & 35.7% have FlashPlayer-7 installed in their browsers.

    So, just as I said, if you are specifically aiming at some version about whose popularity you have some has doubts(FlashPlayer-7 in this case), there is use for FlashPlayer-Detection, otherwise not.

    Also, you may display a notice at the homepage of the website saying "this website uses this version of FlashPlayer & its advisable that you get the latest version if you don't meet the requirements".
    Our lives teach us who we are.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Me - Photo Blog - Personal Blog - Dev Blog
    iG:Syntax Hiliter -- Colourize your code in WordPress!!

  8. #8
    Im watching you... Solitary R@F's Avatar
    Join Date
    Mar 2003
    Location
    Right around the corner..
    Posts
    392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think I got a solution...
    This is something that I've learnt from the Flash MX BIBLE(by Robert Reinhardt).
    The movie is called a sniffer movie . This small movie will check if the user has the latest/required flash player. & if the user doesn't have it, it'll automatically download.

    This explaination is for Flash MX
    Making the Movie
    Open Flash MX & modify the size of the movie to 18X18

    1. in Flash MX put a keyframe in the 2nd frame. & write following actions...
    Code:
    player=eval("$version");
    playerLength=length(player);
    i=1;
    while (i<=playerLength) {
    currentChar=substring(player,i,1);
    if(currentChar eq " ") {
    platfotm= substring(player,1,i-1);
    majorversion=substring(player,i+1,1);
    Break;
    }
    i=i+1
    }
     
    If (majorVersion==" ") {
    getURL("flash3.html")
    }else{
    call("checkPlayer")
    }
    stop();
    2. Add a keyFrame on Frame 5 & add a frame label "checkPLayer"
    3. put these actions in frame 5...
    Code:
    if (Number(majorVersion)==4){
    getURL("flash4.html")
    } else if (Number(majorVersion)==5){
    getURL("flash5.html")
    } else if (Number(majorVersion)==6){
    getURL("flash6.html")
    4. Save as sniffer.fla
    5. click publish settings & save it as HTML with the name sniffer_start.html
    6. In the FLASH tab, select flash 4 in the version menu
    7. In the HTML tab, select Flash Only
    8. Publish

    Okay, this is the 1st part of the work... the next thing to do is to integrate the sniffer movie with the HTML document...
    I'll post that later...
    I'm just a bit hungry
    SolitaryGrafix
    PM | EMAIL

    "Fail to Plan... Plan to Fail"--- A self-help guru

  9. #9
    Im watching you... Solitary R@F's Avatar
    Join Date
    Mar 2003
    Location
    Right around the corner..
    Posts
    392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <sip><sip> MMMM... that was tasty....

    okay...
    the rest is easy stuff...
    Open sniffer_start.html in notepad/dreamweaver/etc.
    somewhere between <HEAD> & </Head> write the following

    Code:
    <META http-equiv="Refresh" content="15; URL=download.html">
    U can also write things like "Checkin for the latest flash player" in the HTML page so that the user don't close the window when they see a blank page.
    This is wat the book wrote....

    "Save the HTML file as sniffer.html. At this point U need a download.html file U also need to create flash3.html, flash4.html & flash5,html...."

    I can include an example of wat thse files need to look like if U want....
    hope U enjoyed the tutorial...


    Ciao
    Last edited by Solitary R@F; Jan 30, 2004 at 04:44. Reason: Felt like it!
    SolitaryGrafix
    PM | EMAIL

    "Fail to Plan... Plan to Fail"--- A self-help guru

  10. #10
    believe.next.rev. Stylice's Avatar
    Join Date
    Sep 2003
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks alot asp_funda.
    I think I wont put a detection then.

    R@f, I will though try what you have said. Might come in handy. Thanks alot for the great tutorial!

  11. #11
    Im watching you... Solitary R@F's Avatar
    Join Date
    Mar 2003
    Location
    Right around the corner..
    Posts
    392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cudn't U have stated that before I posted that HUGE essay?
    ... i sure hope other SPF members get benifitted from that essay.


    Quote Originally Posted by Stylice
    Thanks alot asp_funda.
    I think I wont put a detection then.

    R@f, I will though try what you have said. Might come in handy. Thanks alot for the great tutorial!
    SolitaryGrafix
    PM | EMAIL

    "Fail to Plan... Plan to Fail"--- A self-help guru

  12. #12
    SitePoint Wizard silver trophybronze trophy asp_funda's Avatar
    Join Date
    Jun 2003
    Location
    ether
    Posts
    4,497
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Solitary R@F
    Cudn't U have stated that before I posted that HUGE essay?
    Rather than taking that epic route, why not follow this short & simple thing?

    Create a new flash file & resize the movie to 20x20.
    On the first frame, put the action:
    Code:
    getURL("yourFlashPage.html");
    Now publish it in the flash player version which you want to detect.
    Put in the sniffer page, usually the index.html if your website is in Flash or you want to detect flash player right at the beginning. In the same page put the following code:-
    Code:
    <meta http-equiv="refresh" content="5;url=nonFlashPage.html">
    <script language="JavaScript">
    function redirectMe()
    {
    document.location.href("nonFlashPage.html");
    }
    setTimeout("redirectMe()", 5000);
    </script>
    Put the above code preferably in the <head> section.

    Also, to play safe, put the link to both Flash & Non-Flash versions of the website(if available), so that the user can go to any of them if all of the above fail.


    Now the above technique is pretty much simple & easy. The Flash Movie will redirect browser to the Flash Version. If flash player version is not same as that of the Movie, then either the <meta> tag or/and JavaScript will redirect the browser to non-flash website.

    Now, how about that? This technique is one of the oldest & effective ones that's still used. I remember dooch posting this one in a thread in this forum, only I can't find that thread. Would've saved me the trouble of writing it up again, when I could've posted the link to his post. But still then, I'm not complaining.
    Our lives teach us who we are.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Me - Photo Blog - Personal Blog - Dev Blog
    iG:Syntax Hiliter -- Colourize your code in WordPress!!

  13. #13
    Im watching you... Solitary R@F's Avatar
    Join Date
    Mar 2003
    Location
    Right around the corner..
    Posts
    392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    asp_funda, I'm not complainin... see how happy i am?
    SolitaryGrafix
    PM | EMAIL

    "Fail to Plan... Plan to Fail"--- A self-help guru

  14. #14
    believe.next.rev. Stylice's Avatar
    Join Date
    Sep 2003
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SolitaryR@F
    Cudn't U have stated that before I posted that HUGE essay?
    I was sleeping than

    Thanks asp_funda. I think I will use it in my upcoming website.
    Thanks,
    Miz

  15. #15
    SitePoint Wizard silver trophybronze trophy asp_funda's Avatar
    Join Date
    Jun 2003
    Location
    ether
    Posts
    4,497
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Solitary R@F
    asp_funda, I'm not complainin...
    I never said that you were complaining, buddy!! Was just talking about myself.





    Quote Originally Posted by Stylice
    Thanks asp_funda. I think I will use it in my upcoming website.
    My Pleasure!!!!
    Our lives teach us who we are.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Me - Photo Blog - Personal Blog - Dev Blog
    iG:Syntax Hiliter -- Colourize your code in WordPress!!

  16. #16
    Im watching you... Solitary R@F's Avatar
    Join Date
    Mar 2003
    Location
    Right around the corner..
    Posts
    392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    a lotta misunderstandings, eh?
    SolitaryGrafix
    PM | EMAIL

    "Fail to Plan... Plan to Fail"--- A self-help guru

  17. #17
    SitePoint Wizard silver trophybronze trophy asp_funda's Avatar
    Join Date
    Jun 2003
    Location
    ether
    Posts
    4,497
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Solitary R@F
    a lotta misunderstandings, eh?
    Yeah.
    I was just saying that I remembered dooch had posted the same technique that I posted, a little time ago, maybe a few days ago but I can't find the thread or don't remember which one. It would've saved me the trouble of re-posting the whole technique. Instead, I'd have posted the link to dooch's post.
    But even then, I'm not complaining.

    And you thought that I was refering to you.
    Our lives teach us who we are.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Me - Photo Blog - Personal Blog - Dev Blog
    iG:Syntax Hiliter -- Colourize your code in WordPress!!

  18. #18
    Im watching you... Solitary R@F's Avatar
    Join Date
    Mar 2003
    Location
    Right around the corner..
    Posts
    392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yep, i misunderstood completely....
    SolitaryGrafix
    PM | EMAIL

    "Fail to Plan... Plan to Fail"--- A self-help guru

  19. #19
    SitePoint Wizard silver trophybronze trophy asp_funda's Avatar
    Join Date
    Jun 2003
    Location
    ether
    Posts
    4,497
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Solitary R@F
    Yep, i misunderstood completely....
    Ahh!! C'mon now, can happen with anyone.
    Our lives teach us who we are.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Me - Photo Blog - Personal Blog - Dev Blog
    iG:Syntax Hiliter -- Colourize your code in WordPress!!


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
  •