Ticket #2529896 (accepted defect)

Reporter


Ryan Cannon
Opened: 01/28/11
Last modified: 09/19/12
Status: accepted
Type: defect

Owner


Allen Rabinovich
Target Release: 3.CURRENT.NEXT
Priority: P3 (normal)
Summary: Fix Y.SWF ExpressInstall
Description:

The following code:

Y.SWF('#node', 'myswf.swf', {
useExpressInstall: true,
version: '10.1.0'
});

Should prompt the user to install an update to Flash if their version is below 10.1; it does not.

The problem is due to Y.SWF loading

http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf

directly. The MovieClip root of the above SWF contains a method, statUpdate(), which must be called by a swf which loads the autoUpdater.swf. In the Y.SWF code, this method is never called. See the
expressInstall.as code used in swfobject:

http://code.google.com/p/swfobject/source/browse/trunk/swfobject/src/expressInstall.as

Using SWFObject's expressInstall.swf, the following workaround is possible:

if (Y.SWFDetect.isFlashVersionAtLeast(10, 1, 0) {
// embed swf as usual
}else if (Y.SWFDetect.isFlashVersionAtLeast(6, 65, 0) {
Y.SWF('#node', '/path/to/expressInstall.swf', {
flashVars: {
MMredirectURL: window.location.toString(),
MMdoctitle: document.title
}
});
}

else {
// Flash is not available, show alternative content
}

Type: defect Observed in Version: 3.3.0
Component: SWF Severity: S3 (normal)
Assigned To: Allen Rabinovich Target Release: 3.CURRENT.NEXT
Location: Priority: P3 (normal)
Tags: swf expressinstall Relates To:
Browsers: All
URL: http://ryancannon.com/bugs/yuiswf-expressinstall/
Test Information:

Requires a version of Flash lower than 10.1 but at least 6.65.0.

Change History

Allen Rabinovich

YUI Developer

Posted: 04/28/11
  • priority changed to P3 (normal)
  • status changed from new to accepted

Allen Rabinovich

YUI Developer

Posted: 02/1/12
  • milestone changed to 3.5.0
  • summary changed from Y.SWF's useExpressInstall does not work to Fix Y.SWF ExpressInstall, as described

Allen Rabinovich

YUI Developer

Posted: 02/1/12
  • estimated changed from 0 to 1

Allen Rabinovich

YUI Developer

Posted: 02/1/12
  • milestone changed from 3.5.0 to 3.6.0
  • remaining changed from 0 to 1
  • sprint changed to sprint 3

Allen Rabinovich

YUI Developer

Posted: 06/12/12
  • sprint changed from sprint 3 to backlog

Allen Rabinovich

YUI Developer

Posted: 07/27/12
  • milestone changed from 3.6.0 to 3.7.0
  • sprint changed from backlog

Jenny Donnelly

YUI Developer

Posted: 08/1/12
  • milestone changed from 3.7.0 to 3.6.x

Moving 3.7.0 bugs to 3.6.x for triage.

Allen Rabinovich

YUI Developer

Posted: 08/7/12
  • sprint changed to Sprint 01
  • summary changed from Fix Y.SWF ExpressInstall, as described to Fix Y.SWF ExpressInstall

Jenny Donnelly

YUI Developer

Posted: 09/19/12
  • milestone changed from 3.6.x to 3.CURRENT.NEXT

Moving from 3.6.x to 3.CURRENT.NEXT