Reputation: 46308
I have a flash blocker installed on my browser. On certain sites, such as soundcloud.com, when I go there I get a notification that I must enable flash for it to work correctly.
How do I achieve the same functionality on my website?
In other words how do I detect if a flash block program is enabled?
I prefer client side code only if possible.
Upvotes: 0
Views: 94
Reputation: 13151
Use ExternalInterface & call a javascript function to let the page know whether flash is blocked or not.
Something as simple as:
AS3:
ExternalInterface.call("flashLoaded");
& in JS:
function flashLoaded() {
// Flash was not blocked, since you are here.
}
Upvotes: 2