Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

final

  • Loading branch information...
commit c392f0a93c2652340929f3c65ea618cdb0a74638 1 parent 3328da3
小小的狐狸 authored

Showing 35 changed files with 981 additions and 0 deletions. Show diff stats Hide diff stats

  1. BIN  Tfm3DToolDemo.fla
  2. BIN  Tfm3DToolDemo.swf
  3. BIN  Transform3DTool.fla
  4. BIN  assets/cursors.png
  5. BIN  assets/global_translation_tool.png
  6. BIN  assets/rotation_tool.png
  7. BIN  assets/rotation_tool_g_mode.png
  8. BIN  assets/styles.png
  9. BIN  assets/toolbar.png
  10. BIN  assets/translation_tool.png
  11. BIN  assets/translation_tool_g_mode.png
  12. BIN  doc/QuickGuide.doc
  13. +24 0 doc/QuickGuide.files/filelist.xml
  14. BIN  doc/QuickGuide.files/image001.png
  15. BIN  doc/QuickGuide.files/image002.gif
  16. BIN  doc/QuickGuide.files/image003.png
  17. BIN  doc/QuickGuide.files/image004.gif
  18. BIN  doc/QuickGuide.files/image005.png
  19. BIN  doc/QuickGuide.files/image006.gif
  20. BIN  doc/QuickGuide.files/image007.png
  21. BIN  doc/QuickGuide.files/image008.gif
  22. BIN  doc/QuickGuide.files/image009.png
  23. BIN  doc/QuickGuide.files/image010.gif
  24. BIN  doc/QuickGuide.files/image011.png
  25. BIN  doc/QuickGuide.files/image012.gif
  26. BIN  doc/QuickGuide.files/image013.gif
  27. BIN  doc/QuickGuide.files/image014.gif
  28. BIN  doc/QuickGuide.files/image015.png
  29. BIN  doc/QuickGuide.files/image016.gif
  30. BIN  doc/QuickGuide.files/image017.png
  31. BIN  doc/QuickGuide.files/image018.gif
  32. BIN  doc/QuickGuide.files/image019.png
  33. BIN  doc/QuickGuide.files/image020.gif
  34. +637 0 doc/QuickGuide.htm
  35. +320 0 index.html
BIN  Tfm3DToolDemo.fla
Binary file not shown
BIN  Tfm3DToolDemo.swf
Binary file not shown
BIN  Transform3DTool.fla
Binary file not shown
BIN  assets/cursors.png
BIN  assets/global_translation_tool.png
BIN  assets/rotation_tool.png
BIN  assets/rotation_tool_g_mode.png
BIN  assets/styles.png
BIN  assets/toolbar.png
BIN  assets/translation_tool.png
BIN  assets/translation_tool_g_mode.png
BIN  doc/QuickGuide.doc
Binary file not shown
24 doc/QuickGuide.files/filelist.xml
... ... @@ -0,0 +1,24 @@
  1 +<xml xmlns:o="urn:schemas-microsoft-com:office:office">
  2 + <o:MainFile HRef="../QuickGuide.htm"/>
  3 + <o:File HRef="image001.png"/>
  4 + <o:File HRef="image002.gif"/>
  5 + <o:File HRef="image003.png"/>
  6 + <o:File HRef="image004.gif"/>
  7 + <o:File HRef="image005.png"/>
  8 + <o:File HRef="image006.gif"/>
  9 + <o:File HRef="image007.png"/>
  10 + <o:File HRef="image008.gif"/>
  11 + <o:File HRef="image009.png"/>
  12 + <o:File HRef="image010.gif"/>
  13 + <o:File HRef="image011.png"/>
  14 + <o:File HRef="image012.gif"/>
  15 + <o:File HRef="image013.gif"/>
  16 + <o:File HRef="image014.gif"/>
  17 + <o:File HRef="image015.png"/>
  18 + <o:File HRef="image016.gif"/>
  19 + <o:File HRef="image017.png"/>
  20 + <o:File HRef="image018.gif"/>
  21 + <o:File HRef="image019.png"/>
  22 + <o:File HRef="image020.gif"/>
  23 + <o:File HRef="filelist.xml"/>
  24 +</xml>
BIN  doc/QuickGuide.files/image001.png
BIN  doc/QuickGuide.files/image002.gif
BIN  doc/QuickGuide.files/image003.png
BIN  doc/QuickGuide.files/image004.gif
BIN  doc/QuickGuide.files/image005.png
BIN  doc/QuickGuide.files/image006.gif
BIN  doc/QuickGuide.files/image007.png
BIN  doc/QuickGuide.files/image008.gif
BIN  doc/QuickGuide.files/image009.png
BIN  doc/QuickGuide.files/image010.gif
BIN  doc/QuickGuide.files/image011.png
BIN  doc/QuickGuide.files/image012.gif
BIN  doc/QuickGuide.files/image013.gif
BIN  doc/QuickGuide.files/image014.gif
BIN  doc/QuickGuide.files/image015.png
BIN  doc/QuickGuide.files/image016.gif
BIN  doc/QuickGuide.files/image017.png
BIN  doc/QuickGuide.files/image018.gif
BIN  doc/QuickGuide.files/image019.png
BIN  doc/QuickGuide.files/image020.gif
637 doc/QuickGuide.htm
... ... @@ -0,0 +1,637 @@
  1 +<html xmlns:v="urn:schemas-microsoft-com:vml"
  2 +xmlns:o="urn:schemas-microsoft-com:office:office"
  3 +xmlns:w="urn:schemas-microsoft-com:office:word"
  4 +xmlns="http://www.w3.org/TR/REC-html40">
  5 +
  6 +<head>
  7 +<meta http-equiv=Content-Type content="text/html; charset=gb2312">
  8 +<meta name=ProgId content=Word.Document>
  9 +<meta name=Generator content="Microsoft Word 11">
  10 +<meta name=Originator content="Microsoft Word 11">
  11 +<link rel=File-List href="QuickGuide.files/filelist.xml">
  12 +<link rel=Edit-Time-Data href="QuickGuide.files/editdata.mso">
  13 +<!--[if !mso]>
  14 +<style>
  15 +v\:* {behavior:url(#default#VML);}
  16 +o\:* {behavior:url(#default#VML);}
  17 +w\:* {behavior:url(#default#VML);}
  18 +.shape {behavior:url(#default#VML);}
  19 +</style>
  20 +<![endif]-->
  21 +<title>Transform3DTool</title>
  22 +<!--[if gte mso 9]><xml>
  23 + <o:DocumentProperties>
  24 + <o:Author>����ľ��</o:Author>
  25 + <o:LastAuthor>����ľ��</o:LastAuthor>
  26 + <o:Revision>2</o:Revision>
  27 + <o:TotalTime>823</o:TotalTime>
  28 + <o:Created>2010-12-18T05:26:00Z</o:Created>
  29 + <o:LastSaved>2010-12-18T05:26:00Z</o:LastSaved>
  30 + <o:Pages>1</o:Pages>
  31 + <o:Words>491</o:Words>
  32 + <o:Characters>2805</o:Characters>
  33 + <o:Company>WWW.YlmF.CoM</o:Company>
  34 + <o:Lines>23</o:Lines>
  35 + <o:Paragraphs>6</o:Paragraphs>
  36 + <o:CharactersWithSpaces>3290</o:CharactersWithSpaces>
  37 + <o:Version>11.9999</o:Version>
  38 + </o:DocumentProperties>
  39 +</xml><![endif]--><!--[if gte mso 9]><xml>
  40 + <w:WordDocument>
  41 + <w:PunctuationKerning/>
  42 + <w:DrawingGridVerticalSpacing>7.8 ��</w:DrawingGridVerticalSpacing>
  43 + <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>
  44 + <w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
  45 + <w:ValidateAgainstSchemas/>
  46 + <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  47 + <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  48 + <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  49 + <w:Compatibility>
  50 + <w:SpaceForUL/>
  51 + <w:BalanceSingleByteDoubleByteWidth/>
  52 + <w:DoNotLeaveBackslashAlone/>
  53 + <w:ULTrailSpace/>
  54 + <w:DoNotExpandShiftReturn/>
  55 + <w:AdjustLineHeightInTable/>
  56 + <w:BreakWrappedTables/>
  57 + <w:SnapToGridInCell/>
  58 + <w:WrapTextWithPunct/>
  59 + <w:UseAsianBreakRules/>
  60 + <w:DontGrowAutofit/>
  61 + <w:UseFELayout/>
  62 + </w:Compatibility>
  63 + <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
  64 + </w:WordDocument>
  65 +</xml><![endif]--><!--[if gte mso 9]><xml>
  66 + <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
  67 + </w:LatentStyles>
  68 +</xml><![endif]-->
  69 +<style>
  70 +<!--
  71 + /* Font Definitions */
  72 + @font-face
  73 + {font-family:Wingdings;
  74 + panose-1:5 0 0 0 0 0 0 0 0 0;
  75 + mso-font-charset:2;
  76 + mso-generic-font-family:auto;
  77 + mso-font-pitch:variable;
  78 + mso-font-signature:0 268435456 0 0 -2147483648 0;}
  79 +@font-face
  80 + {font-family:����;
  81 + panose-1:2 1 6 0 3 1 1 1 1 1;
  82 + mso-font-alt:SimSun;
  83 + mso-font-charset:134;
  84 + mso-generic-font-family:auto;
  85 + mso-font-pitch:variable;
  86 + mso-font-signature:3 135135232 16 0 262145 0;}
  87 +@font-face
  88 + {font-family:����;
  89 + panose-1:2 1 6 0 3 1 1 1 1 1;
  90 + mso-font-alt:SimHei;
  91 + mso-font-charset:134;
  92 + mso-generic-font-family:auto;
  93 + mso-font-pitch:variable;
  94 + mso-font-signature:1 135135232 16 0 262144 0;}
  95 +@font-face
  96 + {font-family:Verdana;
  97 + panose-1:2 11 6 4 3 5 4 4 2 4;
  98 + mso-font-charset:0;
  99 + mso-generic-font-family:swiss;
  100 + mso-font-pitch:variable;
  101 + mso-font-signature:536871559 0 0 0 415 0;}
  102 +@font-face
  103 + {font-family:"\@����";
  104 + panose-1:2 1 6 0 3 1 1 1 1 1;
  105 + mso-font-charset:134;
  106 + mso-generic-font-family:auto;
  107 + mso-font-pitch:variable;
  108 + mso-font-signature:3 135135232 16 0 262145 0;}
  109 +@font-face
  110 + {font-family:"\@����";
  111 + panose-1:2 1 6 0 3 1 1 1 1 1;
  112 + mso-font-charset:134;
  113 + mso-generic-font-family:auto;
  114 + mso-font-pitch:variable;
  115 + mso-font-signature:1 135135232 16 0 262144 0;}
  116 + /* Style Definitions */
  117 + p.MsoNormal, li.MsoNormal, div.MsoNormal
  118 + {mso-style-parent:"";
  119 + margin:0cm;
  120 + margin-bottom:.0001pt;
  121 + text-align:justify;
  122 + text-justify:inter-ideograph;
  123 + mso-pagination:none;
  124 + font-size:10.5pt;
  125 + mso-bidi-font-size:12.0pt;
  126 + font-family:"Times New Roman";
  127 + mso-fareast-font-family:����;
  128 + mso-font-kerning:1.0pt;}
  129 +h1
  130 + {mso-style-next:����;
  131 + margin-top:17.0pt;
  132 + margin-right:0cm;
  133 + margin-bottom:16.5pt;
  134 + margin-left:0cm;
  135 + text-align:justify;
  136 + text-justify:inter-ideograph;
  137 + line-height:240%;
  138 + mso-pagination:lines-together;
  139 + page-break-after:avoid;
  140 + mso-outline-level:1;
  141 + font-size:22.0pt;
  142 + font-family:"Times New Roman";
  143 + mso-font-kerning:22.0pt;}
  144 +h2
  145 + {mso-style-next:����;
  146 + margin-top:13.0pt;
  147 + margin-right:0cm;
  148 + margin-bottom:13.0pt;
  149 + margin-left:0cm;
  150 + text-align:justify;
  151 + text-justify:inter-ideograph;
  152 + line-height:173%;
  153 + mso-pagination:lines-together;
  154 + page-break-after:avoid;
  155 + mso-outline-level:2;
  156 + font-size:16.0pt;
  157 + font-family:Arial;
  158 + mso-fareast-font-family:����;
  159 + mso-bidi-font-family:"Times New Roman";
  160 + mso-font-kerning:1.0pt;}
  161 +a:link, span.MsoHyperlink
  162 + {color:blue;
  163 + text-decoration:underline;
  164 + text-underline:single;}
  165 +a:visited, span.MsoHyperlinkFollowed
  166 + {color:purple;
  167 + text-decoration:underline;
  168 + text-underline:single;}
  169 + /* Page Definitions */
  170 + @page
  171 + {mso-page-border-surround-header:no;
  172 + mso-page-border-surround-footer:no;}
  173 +@page Section1
  174 + {size:595.3pt 841.9pt;
  175 + margin:72.0pt 90.0pt 72.0pt 90.0pt;
  176 + mso-header-margin:42.55pt;
  177 + mso-footer-margin:49.6pt;
  178 + mso-paper-source:0;
  179 + layout-grid:15.6pt;}
  180 +div.Section1
  181 + {page:Section1;}
  182 + /* List Definitions */
  183 + @list l0
  184 + {mso-list-id:350228871;
  185 + mso-list-type:hybrid;
  186 + mso-list-template-ids:-1162689462 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
  187 +@list l0:level1
  188 + {mso-level-number-format:bullet;
  189 + mso-level-text:\F06C;
  190 + mso-level-tab-stop:42.05pt;
  191 + mso-level-number-position:left;
  192 + margin-left:42.05pt;
  193 + text-indent:-21.0pt;
  194 + font-family:Wingdings;}
  195 +ol
  196 + {margin-bottom:0cm;}
  197 +ul
  198 + {margin-bottom:0cm;}
  199 +-->
  200 +</style>
  201 +<!--[if gte mso 10]>
  202 +<style>
  203 + /* Style Definitions */
  204 + table.MsoNormalTable
  205 + {mso-style-name:��ͨ���;
  206 + mso-tstyle-rowband-size:0;
  207 + mso-tstyle-colband-size:0;
  208 + mso-style-noshow:yes;
  209 + mso-style-parent:"";
  210 + mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
  211 + mso-para-margin:0cm;
  212 + mso-para-margin-bottom:.0001pt;
  213 + mso-pagination:widow-orphan;
  214 + font-size:10.0pt;
  215 + font-family:"Times New Roman";
  216 + mso-ansi-language:#0400;
  217 + mso-fareast-language:#0400;
  218 + mso-bidi-language:#0400;}
  219 +table.MsoTableGrid
  220 + {mso-style-name:�����;
  221 + mso-tstyle-rowband-size:0;
  222 + mso-tstyle-colband-size:0;
  223 + border:solid windowtext 1.0pt;
  224 + mso-border-alt:solid windowtext .5pt;
  225 + mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
  226 + mso-border-insideh:.5pt solid windowtext;
  227 + mso-border-insidev:.5pt solid windowtext;
  228 + mso-para-margin:0cm;
  229 + mso-para-margin-bottom:.0001pt;
  230 + text-align:justify;
  231 + text-justify:inter-ideograph;
  232 + mso-pagination:none;
  233 + font-size:10.0pt;
  234 + font-family:"Times New Roman";
  235 + mso-ansi-language:#0400;
  236 + mso-fareast-language:#0400;
  237 + mso-bidi-language:#0400;}
  238 +</style>
  239 +<![endif]-->
  240 +</head>
  241 +
  242 +<body lang=ZH-CN link=blue vlink=purple style='tab-interval:21.0pt;text-justify-trim:
  243 +punctuation'>
  244 +
  245 +<div class=Section1 style='layout-grid:15.6pt'>
  246 +
  247 +<h1 align=center style='text-align:center'><span lang=EN-US>Transform3DTool</span></h1>
  248 +
  249 +<h2><span lang=EN-US>Overview</span></h2>
  250 +
  251 +<p class=MsoNormal><span lang=EN-US>There are many AS3 librarys for transform
  252 +DisplayObject, such as senocular��s <a
  253 +href="http://www.senocular.com/flash/tutorials/transformtool/">TransformTool</a>,
  254 +GreenSock��s <a href="http://www.greensock.com/tag/transformmanager/">TransformManager</a>,
  255 +etc. DisplayObject become 3D in Flash Player 10. Transform3DTool is a library
  256 +like TransformTool, but it��s for 3D in Flash Player 10!</span></p>
  257 +
  258 +<p class=MsoNormal><span lang=EN-US>Transform3Dtool is designed like the 3D
  259 +tool in Flash CS4/5.</span></p>
  260 +
  261 +<p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><!--[if gte vml 1]><v:shapetype
  262 + id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"
  263 + path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
  264 + <v:stroke joinstyle="miter"/>
  265 + <v:formulas>
  266 + <v:f eqn="if lineDrawn pixelLineWidth 0"/>
  267 + <v:f eqn="sum @0 1 0"/>
  268 + <v:f eqn="sum 0 0 @1"/>
  269 + <v:f eqn="prod @2 1 2"/>
  270 + <v:f eqn="prod @3 21600 pixelWidth"/>
  271 + <v:f eqn="prod @3 21600 pixelHeight"/>
  272 + <v:f eqn="sum @0 0 1"/>
  273 + <v:f eqn="prod @6 1 2"/>
  274 + <v:f eqn="prod @7 21600 pixelWidth"/>
  275 + <v:f eqn="sum @8 21600 0"/>
  276 + <v:f eqn="prod @7 21600 pixelHeight"/>
  277 + <v:f eqn="sum @10 21600 0"/>
  278 + </v:formulas>
  279 + <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
  280 + <o:lock v:ext="edit" aspectratio="t"/>
  281 +</v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:297.75pt;
  282 + height:150.75pt'>
  283 + <v:imagedata src="QuickGuide.files/image001.png" o:title="preview"/>
  284 +</v:shape><![endif]--><![if !vml]><img border=0 width=397 height=201
  285 +src="QuickGuide.files/image002.gif" v:shapes="_x0000_i1025"><![endif]></span></p>
  286 +
  287 +<h2><span lang=EN-US>Usage</span></h2>
  288 +
  289 +<p class=MsoNormal><span lang=EN-US>Create a Transform3DTool, add it to the
  290 +display list, and set Transform3DTool.target. For example:</span></p>
  291 +
  292 +<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
  293 +color:maroon'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
  294 +style='mso-spacerun:yes'>&nbsp;</span>var tool3d:Transform3DTool = new
  295 +Transform3DTool();<o:p></o:p></span></p>
  296 +
  297 +<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
  298 +color:maroon'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
  299 +style='mso-spacerun:yes'>&nbsp;</span>addChild(tool3d);<o:p></o:p></span></p>
  300 +
  301 +<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
  302 +color:maroon'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
  303 +style='mso-spacerun:yes'>&nbsp;</span>tool3d.target = mc1;<o:p></o:p></span></p>
  304 +
  305 +<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
  306 +color:maroon'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
  307 +style='mso-spacerun:yes'>&nbsp;</span>tool3d.addEventListener(TransformEvent.UPDATE,
  308 +updateEventHandler);<o:p></o:p></span></p>
  309 +
  310 +<h2><span lang=EN-US>Components</span></h2>
  311 +
  312 +<p class=MsoNormal><span lang=EN-US>Transform3DTool consists of RotationTool, TranslationTool
  313 +and GlobalTranslationTool.</span></p>
  314 +
  315 +<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
  316 +
  317 +<table class=MsoTableGrid border=1 cellspacing=0 cellpadding=0
  318 + style='border-collapse:collapse;border:none;mso-border-alt:solid windowtext .5pt;
  319 + mso-yfti-tbllook:480;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;mso-border-insideh:
  320 + .5pt solid windowtext;mso-border-insidev:.5pt solid windowtext'>
  321 + <tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'>
  322 + <td width=189 valign=top style='width:142.0pt;border:solid windowtext 1.0pt;
  323 + mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
  324 + <p class=MsoNormal><span lang=EN-US><!--[if gte vml 1]><v:shape id="_x0000_i1027"
  325 + type="#_x0000_t75" style='width:135pt;height:123pt'>
  326 + <v:imagedata src="QuickGuide.files/image003.png" o:title="rotation_tool"/>
  327 + </v:shape><![endif]--><![if !vml]><img border=0 width=180 height=164
  328 + src="QuickGuide.files/image004.gif" v:shapes="_x0000_i1027"><![endif]></span></p>
  329 + </td>
  330 + <td width=189 valign=top style='width:142.05pt;border:solid windowtext 1.0pt;
  331 + border-left:none;mso-border-left-alt:solid windowtext .5pt;mso-border-alt:
  332 + solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
  333 + <p class=MsoNormal><span lang=EN-US><!--[if gte vml 1]><v:shape id="_x0000_i1028"
  334 + type="#_x0000_t75" style='width:134.25pt;height:122.25pt'>
  335 + <v:imagedata src="QuickGuide.files/image005.png" o:title="translation_tool"/>
  336 + </v:shape><![endif]--><![if !vml]><img border=0 width=179 height=163
  337 + src="QuickGuide.files/image006.gif" v:shapes="_x0000_i1028"><![endif]></span></p>
  338 + </td>
  339 + <td width=189 valign=top style='width:142.05pt;border:solid windowtext 1.0pt;
  340 + border-left:none;mso-border-left-alt:solid windowtext .5pt;mso-border-alt:
  341 + solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
  342 + <p class=MsoNormal><span lang=EN-US><!--[if gte vml 1]><v:shape id="_x0000_i1029"
  343 + type="#_x0000_t75" style='width:132pt;height:120.75pt'>
  344 + <v:imagedata src="QuickGuide.files/image007.png" o:title="global_translation_tool"/>
  345 + </v:shape><![endif]--><![if !vml]><img border=0 width=176 height=161
  346 + src="QuickGuide.files/image008.gif" v:shapes="_x0000_i1029"><![endif]></span></p>
  347 + </td>
  348 + </tr>
  349 + <tr style='mso-yfti-irow:1;mso-yfti-lastrow:yes'>
  350 + <td width=189 valign=top style='width:142.0pt;border:solid windowtext 1.0pt;
  351 + border-top:none;mso-border-top-alt:solid windowtext .5pt;mso-border-alt:solid windowtext .5pt;
  352 + padding:0cm 5.4pt 0cm 5.4pt'>
  353 + <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US>RotationTool</span></p>
  354 + </td>
  355 + <td width=189 valign=top style='width:142.05pt;border-top:none;border-left:
  356 + none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  357 + mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
  358 + mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
  359 + <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US>TranslationTool</span></p>
  360 + </td>
  361 + <td width=189 valign=top style='width:142.05pt;border-top:none;border-left:
  362 + none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  363 + mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
  364 + mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
  365 + <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US>GlobalTranslationTool</span></p>
  366 + </td>
  367 + </tr>
  368 +</table>
  369 +
  370 +<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
  371 +
  372 +<p class=MsoNormal><span lang=EN-US>You can set <span style='color:red'>Transform3DTool.tool</span>
  373 +to specify which tool to use. The tool names are listed in <span
  374 +style='color:red'>TransformToolMode</span>. There are 4 tool mode:</span></p>
  375 +
  376 +<p class=MsoNormal style='margin-left:42.05pt;text-indent:-21.0pt;mso-list:
  377 +l0 level1 lfo1;tab-stops:list 42.05pt'><![if !supportLists]><span lang=EN-US
  378 +style='font-family:Wingdings;mso-fareast-font-family:Wingdings;mso-bidi-font-family:
  379 +Wingdings'><span style='mso-list:Ignore'>l<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  380 +</span></span></span><![endif]><span lang=EN-US>��all��</span></p>
  381 +
  382 +<p class=MsoNormal style='margin-left:42.05pt;text-indent:-21.0pt;mso-list:
  383 +l0 level1 lfo1;tab-stops:list 42.05pt'><![if !supportLists]><span lang=EN-US
  384 +style='font-family:Wingdings;mso-fareast-font-family:Wingdings;mso-bidi-font-family:
  385 +Wingdings'><span style='mso-list:Ignore'>l<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  386 +</span></span></span><![endif]><span lang=EN-US>��rotation��</span></p>
  387 +
  388 +<p class=MsoNormal style='margin-left:42.05pt;text-indent:-21.0pt;mso-list:
  389 +l0 level1 lfo1;tab-stops:list 42.05pt'><![if !supportLists]><span lang=EN-US
  390 +style='font-family:Wingdings;mso-fareast-font-family:Wingdings;mso-bidi-font-family:
  391 +Wingdings'><span style='mso-list:Ignore'>l<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  392 +</span></span></span><![endif]><span lang=EN-US>��translation��</span></p>
  393 +
  394 +<p class=MsoNormal style='margin-left:42.05pt;text-indent:-21.0pt;mso-list:
  395 +l0 level1 lfo1;tab-stops:list 42.05pt'><![if !supportLists]><span lang=EN-US
  396 +style='font-family:Wingdings;mso-fareast-font-family:Wingdings;mso-bidi-font-family:
  397 +Wingdings'><span style='mso-list:Ignore'>l<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  398 +</span></span></span><![endif]><span lang=EN-US>��global translation��</span></p>
  399 +
  400 +<h2><span lang=EN-US>Transform Mode</span></h2>
  401 +
  402 +<p class=MsoNormal><span lang=EN-US>There are two transform modes in
  403 +Transform3DTool: <span style='color:red'>Internal</span> and <span
  404 +style='color:red'>Global</span>, just like 3D tool in Flash CS4/5. Set <span
  405 +style='color:red'>Transform3DTool.mode</span> to specify which transform mode. The
  406 +mode names are listed in <span style='color:red'>Transform3DMode</span>.</span></p>
  407 +
  408 +<p class=MsoNormal><span lang=EN-US>Global transform mode means that the 3D
  409 +transformations move in relationship to the Transform3DTool��s coordinates. </span></p>
  410 +
  411 +<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
  412 +
  413 +<table class=MsoTableGrid border=1 cellspacing=0 cellpadding=0
  414 + style='border-collapse:collapse;border:none;mso-border-alt:solid windowtext .5pt;
  415 + mso-yfti-tbllook:480;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;mso-border-insideh:
  416 + .5pt solid windowtext;mso-border-insidev:.5pt solid windowtext'>
  417 + <tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'>
  418 + <td width=58 valign=top style='width:43.45pt;border:solid windowtext 1.0pt;
  419 + mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
  420 + <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
  421 + <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
  422 + <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
  423 + <p class=MsoNormal><span lang=EN-US>Global</span></p>
  424 + </td>
  425 + <td width=249 valign=top style='width:186.95pt;border:solid windowtext 1.0pt;
  426 + border-left:none;mso-border-left-alt:solid windowtext .5pt;mso-border-alt:
  427 + solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
  428 + <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><!--[if gte vml 1]><v:shape
  429 + id="_x0000_i1030" type="#_x0000_t75" style='width:135pt;height:123.75pt'>
  430 + <v:imagedata src="QuickGuide.files/image009.png" o:title="rotation_tool_g_mode"/>
  431 + </v:shape><![endif]--><![if !vml]><img border=0 width=180 height=165
  432 + src="QuickGuide.files/image010.gif" v:shapes="_x0000_i1030"><![endif]></span></p>
  433 + </td>
  434 + <td width=261 valign=top style='width:195.7pt;border:solid windowtext 1.0pt;
  435 + border-left:none;mso-border-left-alt:solid windowtext .5pt;mso-border-alt:
  436 + solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
  437 + <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><!--[if gte vml 1]><v:shape
  438 + id="_x0000_i1031" type="#_x0000_t75" style='width:134.25pt;height:123pt'>
  439 + <v:imagedata src="QuickGuide.files/image011.png" o:title="translation_tool_g_mode"/>
  440 + </v:shape><![endif]--><![if !vml]><img border=0 width=179 height=164
  441 + src="QuickGuide.files/image012.gif" v:shapes="_x0000_i1031"><![endif]></span></p>
  442 + </td>
  443 + </tr>
  444 + <tr style='mso-yfti-irow:1'>
  445 + <td width=58 valign=top style='width:43.45pt;border:solid windowtext 1.0pt;
  446 + border-top:none;mso-border-top-alt:solid windowtext .5pt;mso-border-alt:solid windowtext .5pt;
  447 + padding:0cm 5.4pt 0cm 5.4pt'>
  448 + <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
  449 + <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
  450 + <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
  451 + <p class=MsoNormal><span lang=EN-US>Internal</span></p>
  452 + </td>
  453 + <td width=249 valign=top style='width:186.95pt;border-top:none;border-left:
  454 + none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  455 + mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
  456 + mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
  457 + <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><!--[if gte vml 1]><v:shape
  458 + id="_x0000_i1032" type="#_x0000_t75" style='width:135pt;height:123pt'>
  459 + <v:imagedata src="QuickGuide.files/image003.png" o:title="rotation_tool"/>
  460 + </v:shape><![endif]--><![if !vml]><img border=0 width=180 height=164
  461 + src="QuickGuide.files/image013.gif" v:shapes="_x0000_i1032"><![endif]></span></p>
  462 + </td>
  463 + <td width=261 valign=top style='width:195.7pt;border-top:none;border-left:
  464 + none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  465 + mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
  466 + mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
  467 + <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><!--[if gte vml 1]><v:shape
  468 + id="_x0000_i1033" type="#_x0000_t75" style='width:134.25pt;height:122.25pt'>
  469 + <v:imagedata src="QuickGuide.files/image005.png" o:title="translation_tool"/>
  470 + </v:shape><![endif]--><![if !vml]><img border=0 width=179 height=163
  471 + src="QuickGuide.files/image014.gif" v:shapes="_x0000_i1033"><![endif]></span></p>
  472 + </td>
  473 + </tr>
  474 + <tr style='mso-yfti-irow:2;mso-yfti-lastrow:yes'>
  475 + <td width=58 valign=top style='width:43.45pt;border:solid windowtext 1.0pt;
  476 + border-top:none;mso-border-top-alt:solid windowtext .5pt;mso-border-alt:solid windowtext .5pt;
  477 + padding:0cm 5.4pt 0cm 5.4pt'>
  478 + <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
  479 + </td>
  480 + <td width=249 valign=top style='width:186.95pt;border-top:none;border-left:
  481 + none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  482 + mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
  483 + mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
  484 + <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US>RotationTool</span></p>
  485 + </td>
  486 + <td width=261 valign=top style='width:195.7pt;border-top:none;border-left:
  487 + none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  488 + mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
  489 + mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
  490 + <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US>TranslationTool</span></p>
  491 + </td>
  492 + </tr>
  493 +</table>
  494 +
  495 +<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
  496 +
  497 +<p class=MsoNormal><span lang=EN-US>GlobalTranslationTool is always ��Global��.</span></p>
  498 +
  499 +<h2><span lang=EN-US>Styles</span></h2>
  500 +
  501 +<p class=MsoNormal><span lang=EN-US>By default, Transform3DTool x control is
  502 +Red. If you want change the color or thickness of line, You need set the <span
  503 +style='color:red'>Transform3DTool.xCtrlStyle</span>. For y, z controls, set the
  504 +<span style='color:red'>yCtrlStyle</span>, <span style='color:red'>zCtrlStyle</span>.
  505 +</span></p>
  506 +
  507 +<p class=MsoNormal><span lang=EN-US>For more detail styles:</span></p>
  508 +
  509 +<p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><!--[if gte vml 1]><v:shape
  510 + id="_x0000_i1034" type="#_x0000_t75" style='width:336pt;height:275.25pt'>
  511 + <v:imagedata src="QuickGuide.files/image015.png" o:title="styles"/>
  512 +</v:shape><![endif]--><![if !vml]><img border=0 width=448 height=367
  513 +src="QuickGuide.files/image016.gif" v:shapes="_x0000_i1034"><![endif]></span></p>
  514 +
  515 +<h2><span lang=EN-US>Cursors</span></h2>
  516 +
  517 +<p class=MsoNormal><span lang=EN-US><!--[if gte vml 1]><v:shape id="_x0000_i1035"
  518 + type="#_x0000_t75" style='width:146.25pt;height:30pt'>
  519 + <v:imagedata src="QuickGuide.files/image017.png" o:title="cursors"/>
  520 +</v:shape><![endif]--><![if !vml]><img border=0 width=195 height=40
  521 +src="QuickGuide.files/image018.gif" v:shapes="_x0000_i1035"><![endif]></span></p>
  522 +
  523 +<p class=MsoNormal><span lang=EN-US>Transform3DTool consists of RotationTool,
  524 +TranslationTool and GlobalTranslationTool. You can custom mouse cursor for every
  525 +tool for each DimentionControl. For example, you can set the control cursor of tool
  526 +by giving a DisplayObject: </span></p>
  527 +
  528 +<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
  529 +style='font-size:9.0pt;font-family:Verdana;color:maroon'>Transform3DTool.rotationTool.xCursor
  530 += new Circle;<o:p></o:p></span></p>
  531 +
  532 +<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
  533 +style='font-size:9.0pt;font-family:Verdana;color:maroon'>Transform3DTool.rotationTool.yCursor
  534 += new Circle; <o:p></o:p></span></p>
  535 +
  536 +<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
  537 +style='font-size:9.0pt;font-family:Verdana;color:maroon'>Transform3DTool.rotationTool.zCursor
  538 += new Circle; <o:p></o:p></span></p>
  539 +
  540 +<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
  541 +style='font-size:9.0pt;font-family:Verdana;color:maroon'>Transform3DTool.rotationTool.pCursor
  542 += new Circle;<o:p></o:p></span></p>
  543 +
  544 +<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
  545 +style='font-size:9.0pt;font-family:Verdana;color:maroon'>Transform3DTool.rotationTool.RegCursor
  546 += new Circle;<o:p></o:p></span></p>
  547 +
  548 +<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
  549 +style='font-size:9.0pt;font-family:Verdana;color:maroon'><o:p>&nbsp;</o:p></span></p>
  550 +
  551 +<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
  552 +style='font-size:9.0pt;font-family:Verdana;color:maroon'>Transform3DTool.translationTool.xCursor
  553 += new Circle ;<o:p></o:p></span></p>
  554 +
  555 +<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
  556 +style='font-size:9.0pt;font-family:Verdana;color:maroon'>Transform3DTool.translationTool.yCursor
  557 += new Circle;<o:p></o:p></span></p>
  558 +
  559 +<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
  560 +style='font-size:9.0pt;font-family:Verdana;color:maroon'>Transform3DTool.translationTool.zCursor
  561 += new Circle; <o:p></o:p></span></p>
  562 +
  563 +<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
  564 +style='font-size:9.0pt;font-family:Verdana;color:maroon'>Transform3DTool.translationTool.regCursor
  565 += new Circle ;<o:p></o:p></span></p>
  566 +
  567 +<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
  568 +style='font-size:9.0pt;font-family:Verdana;color:maroon'><o:p>&nbsp;</o:p></span></p>
  569 +
  570 +<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
  571 +style='font-size:9.0pt;font-family:Verdana;color:maroon'>Transform3DTool.globalTranslationTool.cursor
  572 += new Circle;<o:p></o:p></span></p>
  573 +
  574 +<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
  575 +style='font-size:9.0pt;font-family:Verdana;color:maroon'><o:p>&nbsp;</o:p></span></p>
  576 +
  577 +<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
  578 +
  579 +<h2><span lang=EN-US>ToolBar</span></h2>
  580 +
  581 +<p class=MsoNormal><span lang=EN-US><!--[if gte vml 1]><v:shape id="_x0000_i1026"
  582 + type="#_x0000_t75" style='width:189pt;height:30pt'>
  583 + <v:imagedata src="QuickGuide.files/image019.png" o:title="toolbar"/>
  584 +</v:shape><![endif]--><![if !vml]><img border=0 width=252 height=40
  585 +src="QuickGuide.files/image020.gif" v:shapes="_x0000_i1026"><![endif]></span></p>
  586 +
  587 +<p class=MsoNormal><span lang=EN-US style='color:red'>transform3d.toolbar.ToolBar</span><span
  588 +lang=EN-US> is completely independent from Transform3DTool, It was used in Tfm3DToolDemo.
  589 +ToolBar consists of ToolButton instances. For custom development, you need build
  590 +custome Class extends ToolButton. For example, add three custom ToolButton to
  591 +ToolBar. </span></p>
  592 +
  593 +<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
  594 +color:#993300'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>_bar
  595 += new ToolBar();<o:p></o:p></span></p>
  596 +
  597 +<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
  598 +color:#993300'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>_tToolBtn
  599 += new TranslationToolButton();<o:p></o:p></span></p>
  600 +
  601 +<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
  602 +color:#993300'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>_rToolBtn
  603 += new RotationToolButton();<o:p></o:p></span></p>
  604 +
  605 +<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
  606 +color:#993300'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>_modeBtn
  607 += new TransformModeButton();<o:p></o:p></span></p>
  608 +
  609 +<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
  610 +color:#993300'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>_bar.addToolButton(_tToolBtn);<o:p></o:p></span></p>
  611 +
  612 +<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
  613 +color:#993300'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>_bar.addToolButton(_rToolBtn);<o:p></o:p></span></p>
  614 +
  615 +<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
  616 +color:#993300'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>_bar.addToolButton(_modeBtn,
  617 +&quot;right&quot;);<o:p></o:p></span></p>
  618 +
  619 +<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
  620 +color:#993300'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>addChild(_bar);<o:p></o:p></span></p>
  621 +
  622 +<h2><span lang=EN-US>Support</span></h2>
  623 +
  624 +<p class=MsoNormal><span lang=EN-US>You can email me at <a
  625 +href="http://activeden.net/user/itamt">http://activeden.net/user/itamt</a> for
  626 +any problems. I hope Transform3DTool is useful to you.</span></p>
  627 +
  628 +<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
  629 +
  630 +<p class=MsoNormal><span lang=EN-US>Best wishes to you.</span><span lang=EN-US
  631 +style='mso-bidi-font-size:9.0pt'><o:p></o:p></span></p>
  632 +
  633 +</div>
  634 +
  635 +</body>
  636 +
  637 +</html>
320 index.html
... ... @@ -0,0 +1,320 @@
  1 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh_cn" lang="zh_cn">
  2 +<head>
  3 +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4 +<title>Transform3DTool Demo</title>
  5 +<script language="JavaScript" type="text/javascript">
  6 +<!--
  7 +//v1.7
  8 +// Flash Player Version Detection
  9 +// Detect Client Browser type
  10 +// Copyright 2005-2008 Adobe Systems Incorporated. All rights reserved.
  11 +var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
  12 +var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
  13 +var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
  14 +function ControlVersion()
  15 +{
  16 + var version;
  17 + var axo;
  18 + var e;
  19 + // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
  20 + try {
  21 + // version will be set for 7.X or greater players
  22 + axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
  23 + version = axo.GetVariable("$version");
  24 + } catch (e) {
  25 + }
  26 + if (!version)
  27 + {
  28 + try {
  29 + // version will be set for 6.X players only
  30 + axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
  31 +
  32 + // installed player is some revision of 6.0
  33 + // GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
  34 + // so we have to be careful.
  35 +
  36 + // default to the first public version
  37 + version = "WIN 6,0,21,0";
  38 + // throws if AllowScripAccess does not exist (introduced in 6.0r47)
  39 + axo.AllowScriptAccess = "always";
  40 + // safe to call for 6.0r47 or greater
  41 + version = axo.GetVariable("$version");
  42 + } catch (e) {
  43 + }
  44 + }
  45 + if (!version)
  46 + {
  47 + try {
  48 + // version will be set for 4.X or 5.X player
  49 + axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
  50 + version = axo.GetVariable("$version");
  51 + } catch (e) {
  52 + }
  53 + }
  54 + if (!version)
  55 + {
  56 + try {
  57 + // version will be set for 3.X player
  58 + axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
  59 + version = "WIN 3,0,18,0";
  60 + } catch (e) {
  61 + }
  62 + }
  63 + if (!version)
  64 + {
  65 + try {
  66 + // version will be set for 2.X player
  67 + axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
  68 + version = "WIN 2,0,0,11";
  69 + } catch (e) {
  70 + version = -1;
  71 + }
  72 + }
  73 +
  74 + return version;
  75 +}
  76 +// JavaScript helper required to detect Flash Player PlugIn version information
  77 +function GetSwfVer(){
  78 + // NS/Opera version >= 3 check for Flash plugin in plugin array
  79 + var flashVer = -1;
  80 +
  81 + if (navigator.plugins != null && navigator.plugins.length > 0) {
  82 + if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
  83 + var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
  84 + var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
  85 + var descArray = flashDescription.split(" ");
  86 + var tempArrayMajor = descArray[2].split(".");
  87 + var versionMajor = tempArrayMajor[0];
  88 + var versionMinor = tempArrayMajor[1];
  89 + var versionRevision = descArray[3];
  90 + if (versionRevision == "") {
  91 + versionRevision = descArray[4];
  92 + }
  93 + if (versionRevision[0] == "d") {
  94 + versionRevision = versionRevision.substring(1);
  95 + } else if (versionRevision[0] == "r") {
  96 + versionRevision = versionRevision.substring(1);
  97 + if (versionRevision.indexOf("d") > 0) {
  98 + versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
  99 + }
  100 + }
  101 + var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
  102 + }
  103 + }
  104 + // MSN/WebTV 2.6 supports Flash 4
  105 + else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
  106 + // WebTV 2.5 supports Flash 3
  107 + else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
  108 + // older WebTV supports Flash 2
  109 + else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
  110 + else if ( isIE && isWin && !isOpera ) {
  111 + flashVer = ControlVersion();
  112 + }
  113 + return flashVer;
  114 +}
  115 +// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
  116 +function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
  117 +{
  118 + versionStr = GetSwfVer();
  119 + if (versionStr == -1 ) {
  120 + return false;
  121 + } else if (versionStr != 0) {
  122 + if(isIE && isWin && !isOpera) {
  123 + // Given "WIN 2,0,0,11"
  124 + tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"]
  125 + tempString = tempArray[1]; // "2,0,0,11"
  126 + versionArray = tempString.split(","); // ['2', '0', '0', '11']
  127 + } else {
  128 + versionArray = versionStr.split(".");
  129 + }
  130 + var versionMajor = versionArray[0];
  131 + var versionMinor = versionArray[1];
  132 + var versionRevision = versionArray[2];
  133 + // is the major.revision >= requested major.revision AND the minor version >= requested minor
  134 + if (versionMajor > parseFloat(reqMajorVer)) {
  135 + return true;
  136 + } else if (versionMajor == parseFloat(reqMajorVer)) {
  137 + if (versionMinor > parseFloat(reqMinorVer))
  138 + return true;
  139 + else if (versionMinor == parseFloat(reqMinorVer)) {
  140 + if (versionRevision >= parseFloat(reqRevision))
  141 + return true;
  142 + }
  143 + }
  144 + return false;
  145 + }
  146 +}
  147 +function AC_AddExtension(src, ext)
  148 +{
  149 + if (src.indexOf('?') != -1)
  150 + return src.replace(/\?/, ext+'?');
  151 + else
  152 + return src + ext;
  153 +}
  154 +function AC_Generateobj(objAttrs, params, embedAttrs)
  155 +{
  156 + var str = '';
  157 + if (isIE && isWin && !isOpera)
  158 + {
  159 + str += '<object ';
  160 + for (var i in objAttrs)
  161 + {
  162 + str += i + '="' + objAttrs[i] + '" ';
  163 + }
  164 + str += '>';
  165 + for (var i in params)
  166 + {
  167 + str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  168 + }
  169 + str += '</object>';
  170 + }
  171 + else
  172 + {
  173 + str += '<embed ';
  174 + for (var i in embedAttrs)
  175 + {
  176 + str += i + '="' + embedAttrs[i] + '" ';
  177 + }
  178 + str += '> </embed>';
  179 + }
  180 + document.write(str);
  181 +}
  182 +function AC_FL_RunContent(){
  183 + var ret =
  184 + AC_GetArgs
  185 + ( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
  186 + , "application/x-shockwave-flash"
  187 + );
  188 + AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
  189 +}
  190 +function AC_SW_RunContent(){
  191 + var ret =
  192 + AC_GetArgs
  193 + ( arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
  194 + , null
  195 + );
  196 + AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
  197 +}
  198 +function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  199 + var ret = new Object();
  200 + ret.embedAttrs = new Object();
  201 + ret.params = new Object();
  202 + ret.objAttrs = new Object();
  203 + for (var i=0; i < args.length; i=i+2){
  204 + var currArg = args[i].toLowerCase();
  205 + switch (currArg){
  206 + case "classid":
  207 + break;
  208 + case "pluginspage":
  209 + ret.embedAttrs[args[i]] = args[i+1];
  210 + break;
  211 + case "src":
  212 + case "movie":
  213 + args[i+1] = AC_AddExtension(args[i+1], ext);
  214 + ret.embedAttrs["src"] = args[i+1];
  215 + ret.params[srcParamName] = args[i+1];
  216 + break;
  217 + case "onafterupdate":
  218 + case "onbeforeupdate":
  219 + case "onblur":
  220 + case "oncellchange":
  221 + case "onclick":
  222 + case "ondblclick":
  223 + case "ondrag":
  224 + case "ondragend":
  225 + case "ondragenter":
  226 + case "ondragleave":
  227 + case "ondragover":
  228 + case "ondrop":
  229 + case "onfinish":
  230 + case "onfocus":
  231 + case "onhelp":
  232 + case "onmousedown":
  233 + case "onmouseup":
  234 + case "onmouseover":
  235 + case "onmousemove":
  236 + case "onmouseout":
  237 + case "onkeypress":
  238 + case "onkeydown":
  239 + case "onkeyup":
  240 + case "onload":
  241 + case "onlosecapture":
  242 + case "onpropertychange":
  243 + case "onreadystatechange":
  244 + case "onrowsdelete":
  245 + case "onrowenter":
  246 + case "onrowexit":
  247 + case "onrowsinserted":
  248 + case "onstart":
  249 + case "onscroll":
  250 + case "onbeforeeditfocus":
  251 + case "onactivate":
  252 + case "onbeforedeactivate":
  253 + case "ondeactivate":
  254 + case "type":
  255 + case "codebase":
  256 + case "id":
  257 + ret.objAttrs[args[i]] = args[i+1];
  258 + break;
  259 + case "width":
  260 + case "height":
  261 + case "align":
  262 + case "vspace":
  263 + case "hspace":
  264 + case "class":
  265 + case "title":
  266 + case "accesskey":
  267 + case "name":
  268 + case "tabindex":
  269 + ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
  270 + break;
  271 + default:
  272 + ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
  273 + }
  274 + }
  275 + ret.objAttrs["classid"] = classid;
  276 + if (mimeType) ret.embedAttrs["type"] = mimeType;
  277 + return ret;
  278 +}
  279 +// -->
  280 +</script>
  281 +</head>
  282 +<body bgcolor="#000000" style="text-align:center;">
  283 +<div id="wrap" style="text-align:left;width:600px;margin:0 auto;">
  284 +<!--影片中使用的 URL-->
  285 +<!--影片中使用的文本-->
  286 +<!-- saved from url=(0013)about:internet -->
  287 +<script language="JavaScript" type="text/javascript">
  288 + AC_FL_RunContent(
  289 + 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
  290 + 'width', '600',
  291 + 'height', '450',
  292 + 'src', 'Tfm3DToolDemo',
  293 + 'quality', 'high',
  294 + 'pluginspage', 'http://www.adobe.com/go/getflashplayer_cn',
  295 + 'align', 'middle',
  296 + 'play', 'true',
  297 + 'loop', 'true',
  298 + 'scale', 'showall',
  299 + 'wmode', 'window',
  300 + 'devicefont', 'false',
  301 + 'id', 'preview',
  302 + 'bgcolor', '#000000',
  303 + 'name', 'preview',
  304 + 'menu', 'true',
  305 + 'allowFullScreen', 'false',
  306 + 'allowScriptAccess','sameDomain',
  307 + 'movie', 'Tfm3DToolDemo',
  308 + 'salign', ''
  309 + ); //end AC code
  310 +</script>
  311 +<noscript>
  312 + <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="600" height="450" id="preview" align="middle">
  313 + <param name="allowScriptAccess" value="sameDomain" />
  314 + <param name="allowFullScreen" value="false" />
  315 + <param name="movie" value="Tfm3DToolDemo.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /> <embed src="Tfm3DToolDemo.swf" quality="high" bgcolor="#000000" width="600" height="450" name="preview" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer_cn" />
  316 + </object>
  317 +</noscript>
  318 +</div>
  319 +</body>
  320 +</html>

0 comments on commit c392f0a

Please sign in to comment.
Something went wrong with that request. Please try again.