Skip navigation
Currently Being Moderated

Check Flash installed or not in Flex

Oct 1, 2010 12:14 AM

Hi,

    I need to check whether flash insatlled or not using Flex.

 

Thanks & Regards,

Jayagopal.

 
Replies
  • Currently Being Moderated
    Oct 1, 2010 5:49 AM   in reply to Flex Rock

    You can't.  If your Flex code is running [in a browser]; then by definition, Flash Player must be installed.  If Flash Player doesn't exist, then there is no way to ever run your code [in a browser].

     

    Most people use JavaScript libraries, such as SWFObject to determine if the Flash Player is installed.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 5, 2010 12:35 AM   in reply to Flex Rock

    Hi Jayagopal,

     

     

    You can have a check for this in the Javascript. If you notice the html wrapper file in which your main swf is embedded the javascript is included which will have a check for Flash Player detection.

     

    The application will automatically prompt the user if appropriate version of FlashPlayer is not installed.

     

     

    Thanks,

    Bhasker

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 5, 2010 2:11 AM   in reply to Flex Rock

    Hi Jayagopal,

     

    I think you don't need to use of  swfobject.js also. If you can see in your Flex Project you will find a folder by name html-template in which you can see index.template.html file. In this you can see for the javascript code of FlashPlayer detection. You dont need to write any code specifically for that. It is automatically included in the htmlWrapper generated by the FlexBuilder..

     

     

    You can also check bin-debug folder in which you can see the html same as your main mxml application file name. Say if your main mxml name is main.mxml then in bin-debug folder you can see a html file by name main.html in which your main.swf is embedded and also it includes the javascript code to detect the FlashPlayer version.

     

    When we host our Flex application we will host it using a html file right...With in the same file the Javascript is included for FlashPlayer detection. Just open and check the html file you will see the code.

     

     

     

    Thanks,

    Bhasker

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 5, 2010 2:15 AM   in reply to Flex Rock

    Hi Jayagopal

     

    What do you wan't to achieve by doing this?

     

    Javascript is much like actionscript, so you should be able to spot it your self.

     

    There's comments in the javascript too.

     

    Best Regards

    Martin Andersen

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 5, 2010 8:00 AM   in reply to Flex Rock

    ^ Can you explain your solution a bit more?

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 27, 2012 10:41 AM   in reply to Flex Rock

    adobe-flash-player-version-10.0.0 how can i download this  kind of  adobe my cam is not read   even my cam laptop  the  site asking  this  version can you give me  this installer??

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 27, 2012 11:39 AM   in reply to alexandras23

    Why can’t you use a new version?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points