From 72b7cf65a1fe4df82077af72b6778ef5f5e08766 Mon Sep 17 00:00:00 2001 From: "Fabio M. Costa" Date: Thu, 10 Jun 2010 23:44:21 -0300 Subject: [PATCH] Fixes #473. Thanks Brenton for your help. --- Docs/Utilities/Swiff.md | 5 +++-- Source/Utilities/Swiff.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Docs/Utilities/Swiff.md b/Docs/Utilities/Swiff.md index a7901bad2..45427ea2d 100644 --- a/Docs/Utilities/Swiff.md +++ b/Docs/Utilities/Swiff.md @@ -26,7 +26,7 @@ Flash detection and Internet Explorer/Flash Player 9 fix adapted from [SWFObject * allowScriptAccess - (*string*: defaults to always) The domain that the SWF object allows access to. * quality - (*string*: defaults to 'high') The render quality of the movie. * swLiveConnect - (*boolean*: defaults to true) the swLiveConnect parameter to allow remote scripting. - * wMode - (*string*: defaults to 'transparent') Allows the SWF to be displayed with a transparent background. + * wMode - (*string*: defaults to 'window') Changes the way the SWF is displayed in the browser. * properties - (*object*) Additional attributes for the object element. * vars - (*object*) Vars will be passed to the SWF as querystring in flashVars. * callBacks - (*object*) Functions to call from the SWF. These will be available globally in the movie, and bound to the object. @@ -42,7 +42,7 @@ Flash detection and Internet Explorer/Flash Player 9 fix adapted from [SWFObject width: 500, height: 400, params: { - wmode: 'opaque', + wMode: 'opaque', bgcolor: '#ff3300' }, vars: { @@ -58,6 +58,7 @@ Flash detection and Internet Explorer/Flash Player 9 fix adapted from [SWFObject 1. Although Swiff returns the object, this element will NOT have any Element methods applied to it. 2. The $ function on an object/embed tag will only return its reference without further processing. +3. Avoid changing the wMode param to 'transparent'. It will make your page more processor intensive, especially when running in a background tab. Swiff Function: remote {#Swiff:remote} -------------------------------------- diff --git a/Source/Utilities/Swiff.js b/Source/Utilities/Swiff.js index 8fb6a188d..3d130e132 100644 --- a/Source/Utilities/Swiff.js +++ b/Source/Utilities/Swiff.js @@ -30,7 +30,7 @@ var Swiff = new Class({ params: { quality: 'high', allowScriptAccess: 'always', - wMode: 'transparent', + wMode: 'window', swLiveConnect: true }, callBacks: {},