PDA

View Full Version : Ext.flash.Component : Install flash if it is not installed



sujeetkr
30 Aug 2012, 3:41 AM
Hi,
I am embedding flash component in my application. It is working fine in browsers where flash player plugin is installed, but it doesn't work where flash plugin is not installed.

I have enabled the express install feature given in the document http://docs.sencha.com/ext-js/4-0/#!/api/Ext.flash.Component, but it is not working.

I have tried to set both

Ext.flash.Component (http://docs.sencha.com/ext-js/4-0/#%21/api/Ext.flash.Component).EXPRESS_INSTALL_URL = 'path/to/local/expressInstall.swf';

and
Ext.FlashComponent (http://docs.sencha.com/ext-js/4-0/#%21/api/Ext.flash.Component).EXPRESS_INSTALL_URL,


I am using Extjs 4.0.1. And testing it in Chrome and Firefox.

Can you please point me to working example of this?


Thanks,
Sujeet

tvanzoelen
30 Aug 2012, 5:13 AM
Can you see a request made to the path you configured in de debugger?

sujeetkr
30 Aug 2012, 5:53 AM
No. I don't see any request made to the express Installer.

It requests for my swf file. But after that nothing appears.

When I installed flash player in the firefox, then it work. But I want that if any browser doesn't have flash player installed, then it will show the user how to install it that is it shows download link for flash player.

Thanks,
Sujeet

tvanzoelen
30 Aug 2012, 5:57 AM
There is also an expressInstall property, have you set it on true?

Defaults is false.

sujeetkr
30 Aug 2012, 7:59 PM
Yes , I have made that true.