debian/0000755000000000000000000000000011707333426007174 5ustar debian/install0000644000000000000000000000015411705356065010567 0ustar build/swfobject.js usr/share/javascript/swfobject/ build/expressInstall.swf usr/share/javascript/swfobject/ debian/patches/0000755000000000000000000000000011705366743010631 5ustar debian/patches/01-expressInstall-AS2.patch0000644000000000000000000001404511705366743015477 0ustar From: Christian Welzel Subject: Port ActionScript-1 code to ActionScript-2 for mtasc Origin: http://code.google.com/p/swfobject/issues/detail?id=233 Description: Debian policy requires all packages in main to be compiled with tools in main. For compiling ActionScript code there is only mtasc available. But mtasc can only process ActionScript 2 code. So this patch ports the upstream AS1 code to AS2 code to allow to compile it with mtasc. The patch was orignally written by a guy named Kyle and published in the mentioned origin. --- libjs-swfobject-2.2.orig/src/expressInstall.as +++ libjs-swfobject-2.2/src/expressInstall.as @@ -1,70 +1,87 @@ -/* SWFObject v2.2 is released under the MIT License - Express Install Copyright (c) 2007-2008 Adobe Systems Incorporated and its licensors. All Rights Reserved. -*/ - -System.security.allowDomain("fpdownload.macromedia.com"); - -var time = 0; -var timeOut = 5; // in seconds -var delay = 10; // in milliseconds -var int_id = setInterval(checkLoaded, delay); -var old_si = null; -var loaderClip = this.createEmptyMovieClip("loaderClip", 0); -var updateSWF = "http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?" + Math.random(); -loaderClip.loadMovie(updateSWF); - -function checkLoaded(){ - time += delay / 1000; - if (time > timeOut) { - // updater did not load in time, abort load and force alternative content - clearInterval(int_id); - loaderClip.unloadMovie(); - loadTimeOut(); +/* SWFObject v2.2 is released under the MIT License + Express Install Copyright (c) 2007-2008 Adobe Systems Incorporated and its licensors. All Rights Reserved. +*/ + +class expressInstall { + static var app; + + var time = 0; + var timeOut = 5; // in seconds + var delay = 10; // in milliseconds + var int_id = 0; + var old_si = null; + var loaderClip = null; + + function expressInstall() { + System.security.allowDomain("fpdownload.macromedia.com"); + var cacheBuster = Math.random(); + var updateSWF = "http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?"+cacheBuster; + int_id = setInterval(this,"checkLoaded",delay); + loaderClip = _root.createEmptyMovieClip("loaderClip",0); + loaderClip.loadMovie(updateSWF); + _root.installStatus = installStatus; } - else if (loaderClip.startInstall.toString() == "[type Function]") { - // updater has loaded successfully AND has determined that it can do the express install - if (old_si == null) { - old_si = loaderClip.startInstall; - loaderClip.startInstall = function() { - clearInterval(int_id); - old_si(); - } - loadComplete(); - } - } -} - -function loadTimeOut() { - callbackSWFObject(); -} - -function callbackSWFObject() { - getURL("javascript:swfobject.expressInstallCallback();"); -} - -function loadComplete() { - loaderClip.redirectURL = _level0.MMredirectURL; - loaderClip.MMplayerType = _level0.MMplayerType; - loaderClip.MMdoctitle = _level0.MMdoctitle; - loaderClip.startUpdate(); -} - -function installStatus(statusValue) { - switch (statusValue) { - case "Download.Complete": - // Installation is complete. - // In most cases the browser window that this SWF is hosted in will be closed by the installer or otherwise it has to be closed manually by the end user. - // The Adobe Flash installer will attempt to reopen the browser window and reload the page containing the SWF. - break; - case "Download.Cancelled": - // The end user chose "NO" when prompted to install the new player. - // By default the SWFObject callback function is called to force alternative content. - callbackSWFObject(); - break; - case "Download.Failed": - // The end user failed to download the installer due to a network failure. - // By default the SWFObject callback function is called to force alternative content. - callbackSWFObject(); - break; - } -} + + function checkLoaded(){ + time += delay / 1000; + if (time > timeOut) { + // updater did not load in time, abort load and force alternative content + clearInterval(int_id); + loaderClip.unloadMovie(); + loadTimeOut(); + } + else if (loaderClip.startInstall.toString() == "[type Function]") { + // updater has loaded successfully AND has determined that it can do the express install + if (old_si == null) { + old_si = loaderClip.startInstall; + loaderClip.startInstall = new_startInstall; + loadComplete(); + } + } + } + + function new_startInstall() { + clearInterval(app.int_id); + app.old_si(); + } + + function loadTimeOut() { + callbackSWFObject(); + } + + function callbackSWFObject() { + getURL("javascript:swfobject.expressInstallCallback();"); + } + + function loadComplete() { + loaderClip.redirectURL = _root.MMredirectURL; + loaderClip.MMplayerType = _root.MMplayerType; + loaderClip.MMdoctitle = _root.MMdoctitle; + loaderClip.startUpdate(); + } + + function installStatus(statusValue) { + switch (statusValue) { + case "Download.Complete": + // Installation is complete. + // In most cases the browser window that this SWF is hosted in will be closed by the installer or otherwise it has to be closed manually by the end user. + // The Adobe Flash installer will attempt to reopen the browser window and reload the page containing the SWF. + break; + case "Download.Cancelled": + // The end user chose "NO" when prompted to install the new player. + // By default the SWFObject callback function is called to force alternative content. + app.callbackSWFObject(); + break; + case "Download.Failed": + // The end user failed to download the installer due to a network failure. + // By default the SWFObject callback function is called to force alternative content. + app.callbackSWFObject(); + break; + } + } + + static function main() { + app = new expressInstall(); + } +} + \ No newline at end of file debian/patches/series0000644000000000000000000000003411705355604012035 0ustar 01-expressInstall-AS2.patch debian/README.source0000644000000000000000000000105611707333426011355 0ustar libjs-swfobject (2.2+dfsg1-1) * Remove expressInstall.swf from source as its compiled on build. expressInstall.fla remains in source package because its needed to compile expressInstall.swf without mtasc. Both fla and as are the source of the swf. * Remove test.swf as it has no source and no copyright information. * ./swfobject.js is in the source package, because upstream ships it that way. The swfobject.js in the binary package is generated from src/swfobject.js. -- Christian Welzel Tue, 17 Jan 2011 22:00:00 +0100 debian/copyright0000644000000000000000000000315311705357464011137 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 Name: libjs-swfobject Maintainer: Christian Welzel Source: http://code.google.com/p/swfobject/downloads/list Copyright: 2004-2012 Geoff Stearns, Bobby van der Sluis, Michael Williams, Aran Rhee, Philip Hutchison, Kyle Simpson and others License: MIT Files: src/expressInstall.as src/expressInstall.fla Copyright: 2007-2008, Adobe Systems Incorporated and its licensors License: MIT Files: debian/* Copyright: 2012, Christian Welzel License: MIT License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/compat0000644000000000000000000000000211701330367010365 0ustar 7 debian/control0000644000000000000000000000204311705117230010565 0ustar Source: libjs-swfobject Section: web Priority: optional Maintainer: Christian Welzel Build-Depends: debhelper (>= 7.0.50~), yui-compressor, mtasc Standards-Version: 3.9.2 Homepage: http://code.google.com/p/swfobject/ Package: libjs-swfobject Architecture: all Depends: ${misc:Depends} Description: tool to embed Flash content into webpages SWFObject is an easy-to-use and standards-friendly method to embed Flash content, which utilizes one small JavaScript file. . * it offers two optimized Flash Player embed methods; a markup based approach and a method that relies on JavaScript * it offers a JavaScript API that aims to provide a complete tool set for embedding SWF files and retrieving Flash Player related information * it utilizes only one small JavaScript file (10Kb / GZIPed: 3.9Kb) * it is the successor of SWFObject 1.5, UFO and the Adobe Flash Player Detection Kit * it intends to unify all existing Flash Player embed methods and provide a new standard for embedding Adobe Flash Player content debian/changelog0000644000000000000000000000024511705357134011047 0ustar libjs-swfobject (2.2+dfsg-1) unstable; urgency=low * Initial release (Closes: #601160) -- Christian Welzel Thu, 05 Jan 2012 15:17:24 +0100 debian/watch0000644000000000000000000000021011705363467010224 0ustar version=3 opts="dversionmangle=s/\+dfsg//,uversionmangle=s/_/\./g" \ http://googlecode.debian.net/p/swfobject/swfobject_([\d_]+)\.zip debian/source/0000755000000000000000000000000011701330367010467 5ustar debian/source/format0000644000000000000000000000001411701330367011675 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000205711705366152010260 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 SRC_VERSION = $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p') ORIG_VERSION = $(shell echo $(SRC_VERSION) | sed -ne 's/+dfsg//p') ORIGTAR = libjs-swfobject_$(ORIG_VERSION).orig.tar.gz ORIGDIR = swfobject DEBTAR = libjs-swfobject_$(SRC_VERSION).orig.tar.gz %: dh $@ clean: dh_testdir dh_auto_clean dh_clean rm -rf build build: dh_testdir mkdir build mtasc -main -header 310:130:12 -version 6 -out build/expressInstall.swf -swf build/expressInstall.swf src/expressInstall.as /usr/bin/yui-compressor src/swfobject.js -o build/swfobject.js find src -type f -print0 | xargs -0 chmod a-x find . -maxdepth 1 -type f -print0 | xargs -0 chmod a-x get-orig-source: uscan --no-conf --force-download --rename --repack --download-current-version --destdir=. mkdir -p _unpack tar -xzf $(ORIGTAR) -C _unpack rm -f _unpack/$(ORIGDIR)/test.swf rm -f _unpack/$(ORIGDIR)/expressInstall.swf tar -czf $(DEBTAR) -C _unpack $(ORIGDIR) rm -rf _unpack debian/dirs0000644000000000000000000000004011701404316010041 0ustar usr/share/javascript/swfobject/ debian/examples0000644000000000000000000000003611701336511010724 0ustar index.html index_dynamic.html