Permalink
Browse files

decrease swc file size

  • Loading branch information...
Elad Elrom
Elad Elrom committed Jul 31, 2010
1 parent 095455e commit fbdae83d10a123ac19195c3bd85bbfd75b9a7176
Showing with 447 additions and 269 deletions.
  1. +13 −0 .settings/com.powerflasher.fdt.classpath
  2. +15 −0 .settings/com.powerflasher.fdt.core.prefs
  3. +2 −2 .settings/org.eclipse.core.resources.prefs
  4. +3 −0 .settings/org.eclipse.ltk.core.refactoring.prefs
  5. +2 −0 .sourceMate
  6. +41 −38 bin-debug/BitmapCachingExample.html
  7. BIN bin-debug/BitmapCachingExample.swf
  8. +41 −38 bin-debug/CacheExternalAssetsExample.html
  9. BIN bin-debug/CacheExternalAssetsExample.swf
  10. +41 −38 bin-debug/FrameRateControlExample.html
  11. BIN bin-debug/FrameRateControlExample.swf
  12. +41 −38 bin-debug/OptimazingTools.html
  13. BIN bin-debug/OptimazingTools.swf
  14. BIN bin-debug/OptimazingTools_opt.swf
  15. +41 −38 bin-debug/TrackListenersExample.html
  16. BIN bin-debug/TrackListenersExample.swf
  17. BIN bin-debug/framework_4.5.0.16907.swf
  18. +3 −1 bin-debug/generate-swc-and-asdoc.xml
  19. BIN bin-debug/mx_4.5.0.16907.swf
  20. BIN bin-debug/osmf_1.0.0.16316.swf
  21. BIN bin-debug/rpc_4.5.0.16907.swf
  22. BIN bin-debug/spark_4.5.0.16907.swf
  23. BIN bin-debug/sparkskins_4.5.0.16907.swf
  24. BIN bin-debug/textLayout_1.1.0.604.swf
  25. +1 −14 html-template/history/history.js
  26. +40 −37 html-template/index.template.html
  27. +29 −0 launch/BitmapCachingExample.launch
  28. +29 −0 launch/CacheExternalAssetsExample.launch
  29. +29 −0 launch/FrameRateControlExample.launch
  30. +29 −0 launch/OptimazingTools.launch
  31. +29 −0 launch/TrackListenersExample.launch
  32. +2 −3 src/BitmapCachingExample.mxml
  33. +13 −21 src/OptimazingTools.mxml
  34. +3 −1 src/generate-swc-and-asdoc.xml
  35. BIN swc/OptimizeTools.swc
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<AS3Classpath>
+ <AS3Classpath generateProblems="false" sdkBased="true" type="lib" useAsSharedCode="false">frameworks/libs/player/{playerVersion}/playerglobal.swc</AS3Classpath>
+ <AS3Classpath generateProblems="false" sdkBased="true" type="lib" useAsSharedCode="false">frameworks/libs/flex.swc</AS3Classpath>
+ <AS3Classpath generateProblems="false" sdkBased="true" type="lib" useAsSharedCode="false">frameworks/libs/textLayout.swc</AS3Classpath>
+ <AS3Classpath generateProblems="false" sdkBased="true" type="lib" useAsSharedCode="false">frameworks/libs/framework.swc</AS3Classpath>
+ <AS3Classpath generateProblems="false" sdkBased="true" type="lib" useAsSharedCode="false">frameworks/libs/rpc.swc</AS3Classpath>
+ <AS3Classpath generateProblems="false" sdkBased="true" type="lib" useAsSharedCode="false">frameworks/libs/spark.swc</AS3Classpath>
+ <AS3Classpath generateProblems="false" sdkBased="true" type="lib" useAsSharedCode="false">frameworks/libs/sparkskins.swc</AS3Classpath>
+ <AS3Classpath generateProblems="false" sdkBased="true" type="lib" useAsSharedCode="false">frameworks/libs/utilities.swc</AS3Classpath>
+ <AS3Classpath generateProblems="false" sdkBased="true" type="lib" useAsSharedCode="false">frameworks/libs/datavisualization.swc</AS3Classpath>
+ <AS3Classpath generateProblems="true" sdkBased="false" type="source" useAsSharedCode="false">src</AS3Classpath>
+</AS3Classpath>
@@ -0,0 +1,15 @@
+#Fri Jul 30 19:58:47 EDT 2010
+com.powerflasher.fdt.core.CompatiblePlayers=External_SWF_Viewer\:Browser\:Standalone_Flash_Player
+com.powerflasher.fdt.core.CompilerArguments=-target-player\={playerVersion}\n-library-path {flexSDK}/frameworks/locale/en_US
+com.powerflasher.fdt.core.DefaultOutputFolder=bin-debug
+com.powerflasher.fdt.core.DefaultPlayer=External_SWF_Viewer
+com.powerflasher.fdt.core.Language=AS3
+com.powerflasher.fdt.core.PassClasspath=true
+com.powerflasher.fdt.core.PassMainclass=true
+com.powerflasher.fdt.core.PassRsls=true
+com.powerflasher.fdt.core.PassSwcs=true
+com.powerflasher.fdt.core.PlayerVersion=10.0
+com.powerflasher.fdt.core.ProjectTypeHint=Flex 4
+com.powerflasher.fdt.core.Runtime=Flash_Player
+com.powerflasher.fdt.core.SdkName=Flex 4.0
+eclipse.preferences.version=1
@@ -1,3 +1,3 @@
-#Wed Jun 30 08:04:17 EDT 2010
+#Fri Jul 30 19:58:46 EDT 2010
eclipse.preferences.version=1
-encoding/<project>=utf-8
+encoding/<project>=UTF-8
@@ -0,0 +1,3 @@
+#Fri Jul 30 19:36:49 EDT 2010
+eclipse.preferences.version=1
+org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
View
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project enableTaskMarkers="false" metadataChecking="false" unknownMetadataLevel="0" unknownEventNameLevel="0"></project>
@@ -1,6 +1,6 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0014)about:internet -->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<!--
Smart developers always View Source.
@@ -11,31 +11,34 @@
Learn more about Flex at http://flex.org
// -->
<head>
- <title></title>
+ <title></title>
+ <meta name="google" value="notranslate">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <!-- Include CSS to eliminate any default margins/padding and set the height of the html element and
- the body element to 100%, because Firefox, or any Gecko based browser, interprets percentage as
- the percentage of the height of its parent container, which has to be set explicitly. Initially,
- don't display flashContent div so it won't show if JavaScript disabled.
- -->
+ <!-- Include CSS to eliminate any default margins/padding and set the height of the html element and
+ the body element to 100%, because Firefox, or any Gecko based browser, interprets percentage as
+ the percentage of the height of its parent container, which has to be set explicitly. Fix for
+ Firefox 3.6 focus border issues. Initially, don't display flashContent div so it won't show
+ if JavaScript disabled.
+ -->
<style type="text/css" media="screen">
- html, body { height:100%; }
- body { margin:0; padding:0; overflow:auto; text-align:center;
- background-color: #ffffff; }
- #flashContent { display:none; }
+ html, body { height:100%; }
+ body { margin:0; padding:0; overflow:auto; text-align:center;
+ background-color: #ffffff; }
+ object:focus { outline:none; }
+ #flashContent { display:none; }
</style>
-
- <!-- Enable Browser History by replacing useBrowserHistory tokens with two hyphens -->
+
+ <!-- Enable Browser History by replacing useBrowserHistory tokens with two hyphens -->
<!-- BEGIN Browser History required section -->
<link rel="stylesheet" type="text/css" href="history/history.css" />
<script type="text/javascript" src="history/history.js"></script>
<!-- END Browser History required section -->
-
+
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
- <!-- For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. -->
- var swfVersionStr = "10.0.0";
- <!-- To use express install, set to playerProductInstall.swf, otherwise the empty string. -->
+ // For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection.
+ var swfVersionStr = "10.1.0";
+ // To use express install, set to playerProductInstall.swf, otherwise the empty string.
var xiSwfUrlStr = "playerProductInstall.swf";
var flashvars = {};
var params = {};
@@ -52,28 +55,28 @@
"100%", "100%",
swfVersionStr, xiSwfUrlStr,
flashvars, params, attributes);
- <!-- JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. -->
- swfobject.createCSS("#flashContent", "display:block;text-align:left;");
+ // JavaScript enabled so display the flashContent div in case it is not replaced with a swf object.
+ swfobject.createCSS("#flashContent", "display:block;text-align:left;");
</script>
</head>
<body>
<!-- SWFObject's dynamic embed method replaces this alternative HTML content with Flash content when enough
- JavaScript and Flash plug-in support is available. The div is initially hidden so that it doesn't show
- when JavaScript is disabled.
- -->
+ JavaScript and Flash plug-in support is available. The div is initially hidden so that it doesn't show
+ when JavaScript is disabled.
+ -->
<div id="flashContent">
- <p>
- To view this page ensure that Adobe Flash Player version
- 10.0.0 or greater is installed.
- </p>
- <script type="text/javascript">
- var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://");
- document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='"
- + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" );
- </script>
+ <p>
+ To view this page ensure that Adobe Flash Player version
+ 10.1.0 or greater is installed.
+ </p>
+ <script type="text/javascript">
+ var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://");
+ document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='"
+ + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" );
+ </script>
</div>
-
- <noscript>
+
+ <noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="BitmapCachingExample">
<param name="movie" value="BitmapCachingExample.swf" />
<param name="quality" value="high" />
@@ -88,10 +91,10 @@
<param name="allowFullScreen" value="true" />
<!--<![endif]-->
<!--[if gte IE 6]>-->
- <p>
- Either scripts and active content are not permitted to run or Adobe Flash Player version
- 10.0.0 or greater is not installed.
- </p>
+ <p>
+ Either scripts and active content are not permitted to run or Adobe Flash Player version
+ 10.1.0 or greater is not installed.
+ </p>
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" />
@@ -100,6 +103,6 @@
</object>
<!--<![endif]-->
</object>
- </noscript>
+ </noscript>
</body>
</html>
Binary file not shown.
@@ -1,6 +1,6 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0014)about:internet -->
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<!--
Smart developers always View Source.
@@ -11,31 +11,34 @@
Learn more about Flex at http://flex.org
// -->
<head>
- <title></title>
+ <title></title>
+ <meta name="google" value="notranslate">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <!-- Include CSS to eliminate any default margins/padding and set the height of the html element and
- the body element to 100%, because Firefox, or any Gecko based browser, interprets percentage as
- the percentage of the height of its parent container, which has to be set explicitly. Initially,
- don't display flashContent div so it won't show if JavaScript disabled.
- -->
+ <!-- Include CSS to eliminate any default margins/padding and set the height of the html element and
+ the body element to 100%, because Firefox, or any Gecko based browser, interprets percentage as
+ the percentage of the height of its parent container, which has to be set explicitly. Fix for
+ Firefox 3.6 focus border issues. Initially, don't display flashContent div so it won't show
+ if JavaScript disabled.
+ -->
<style type="text/css" media="screen">
- html, body { height:100%; }
- body { margin:0; padding:0; overflow:auto; text-align:center;
- background-color: #ffffff; }
- #flashContent { display:none; }
+ html, body { height:100%; }
+ body { margin:0; padding:0; overflow:auto; text-align:center;
+ background-color: #ffffff; }
+ object:focus { outline:none; }
+ #flashContent { display:none; }
</style>
-
- <!-- Enable Browser History by replacing useBrowserHistory tokens with two hyphens -->
+
+ <!-- Enable Browser History by replacing useBrowserHistory tokens with two hyphens -->
<!-- BEGIN Browser History required section -->
<link rel="stylesheet" type="text/css" href="history/history.css" />
<script type="text/javascript" src="history/history.js"></script>
<!-- END Browser History required section -->
-
+
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
- <!-- For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. -->
- var swfVersionStr = "10.0.0";
- <!-- To use express install, set to playerProductInstall.swf, otherwise the empty string. -->
+ // For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection.
+ var swfVersionStr = "10.1.0";
+ // To use express install, set to playerProductInstall.swf, otherwise the empty string.
var xiSwfUrlStr = "playerProductInstall.swf";
var flashvars = {};
var params = {};
@@ -52,28 +55,28 @@
"100%", "100%",
swfVersionStr, xiSwfUrlStr,
flashvars, params, attributes);
- <!-- JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. -->
- swfobject.createCSS("#flashContent", "display:block;text-align:left;");
+ // JavaScript enabled so display the flashContent div in case it is not replaced with a swf object.
+ swfobject.createCSS("#flashContent", "display:block;text-align:left;");
</script>
</head>
<body>
<!-- SWFObject's dynamic embed method replaces this alternative HTML content with Flash content when enough
- JavaScript and Flash plug-in support is available. The div is initially hidden so that it doesn't show
- when JavaScript is disabled.
- -->
+ JavaScript and Flash plug-in support is available. The div is initially hidden so that it doesn't show
+ when JavaScript is disabled.
+ -->
<div id="flashContent">
- <p>
- To view this page ensure that Adobe Flash Player version
- 10.0.0 or greater is installed.
- </p>
- <script type="text/javascript">
- var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://");
- document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='"
- + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" );
- </script>
+ <p>
+ To view this page ensure that Adobe Flash Player version
+ 10.1.0 or greater is installed.
+ </p>
+ <script type="text/javascript">
+ var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://");
+ document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='"
+ + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" );
+ </script>
</div>
-
- <noscript>
+
+ <noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="CacheExternalAssetsExample">
<param name="movie" value="CacheExternalAssetsExample.swf" />
<param name="quality" value="high" />
@@ -88,10 +91,10 @@
<param name="allowFullScreen" value="true" />
<!--<![endif]-->
<!--[if gte IE 6]>-->
- <p>
- Either scripts and active content are not permitted to run or Adobe Flash Player version
- 10.0.0 or greater is not installed.
- </p>
+ <p>
+ Either scripts and active content are not permitted to run or Adobe Flash Player version
+ 10.1.0 or greater is not installed.
+ </p>
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" />
@@ -100,6 +103,6 @@
</object>
<!--<![endif]-->
</object>
- </noscript>
+ </noscript>
</body>
</html>
Binary file not shown.
Oops, something went wrong.

0 comments on commit fbdae83

Please sign in to comment.