Skip to content
Browse files

final

  • Loading branch information...
1 parent 3328da3 commit c392f0a93c2652340929f3c65ea618cdb0a74638 @tamt committed Dec 18, 2010
View
BIN Tfm3DToolDemo.fla
Binary file not shown.
View
BIN Tfm3DToolDemo.swf
Binary file not shown.
View
BIN Transform3DTool.fla
Binary file not shown.
View
BIN assets/cursors.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN assets/global_translation_tool.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN assets/rotation_tool.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN assets/rotation_tool_g_mode.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN assets/styles.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN assets/toolbar.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN assets/translation_tool.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN assets/translation_tool_g_mode.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/QuickGuide.doc
Binary file not shown.
View
24 doc/QuickGuide.files/filelist.xml
@@ -0,0 +1,24 @@
+<xml xmlns:o="urn:schemas-microsoft-com:office:office">
+ <o:MainFile HRef="../QuickGuide.htm"/>
+ <o:File HRef="image001.png"/>
+ <o:File HRef="image002.gif"/>
+ <o:File HRef="image003.png"/>
+ <o:File HRef="image004.gif"/>
+ <o:File HRef="image005.png"/>
+ <o:File HRef="image006.gif"/>
+ <o:File HRef="image007.png"/>
+ <o:File HRef="image008.gif"/>
+ <o:File HRef="image009.png"/>
+ <o:File HRef="image010.gif"/>
+ <o:File HRef="image011.png"/>
+ <o:File HRef="image012.gif"/>
+ <o:File HRef="image013.gif"/>
+ <o:File HRef="image014.gif"/>
+ <o:File HRef="image015.png"/>
+ <o:File HRef="image016.gif"/>
+ <o:File HRef="image017.png"/>
+ <o:File HRef="image018.gif"/>
+ <o:File HRef="image019.png"/>
+ <o:File HRef="image020.gif"/>
+ <o:File HRef="filelist.xml"/>
+</xml>
View
BIN doc/QuickGuide.files/image001.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/QuickGuide.files/image002.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/QuickGuide.files/image003.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/QuickGuide.files/image004.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/QuickGuide.files/image005.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/QuickGuide.files/image006.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/QuickGuide.files/image007.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/QuickGuide.files/image008.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/QuickGuide.files/image009.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/QuickGuide.files/image010.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/QuickGuide.files/image011.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/QuickGuide.files/image012.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/QuickGuide.files/image013.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/QuickGuide.files/image014.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/QuickGuide.files/image015.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/QuickGuide.files/image016.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/QuickGuide.files/image017.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN doc/QuickGuide.files/image018.gif
Diff not rendered.
View
BIN doc/QuickGuide.files/image019.png
Diff not rendered.
View
BIN doc/QuickGuide.files/image020.gif
Diff not rendered.
View
637 doc/QuickGuide.htm
@@ -0,0 +1,637 @@
+<html xmlns:v="urn:schemas-microsoft-com:vml"
+xmlns:o="urn:schemas-microsoft-com:office:office"
+xmlns:w="urn:schemas-microsoft-com:office:word"
+xmlns="http://www.w3.org/TR/REC-html40">
+
+<head>
+<meta http-equiv=Content-Type content="text/html; charset=gb2312">
+<meta name=ProgId content=Word.Document>
+<meta name=Generator content="Microsoft Word 11">
+<meta name=Originator content="Microsoft Word 11">
+<link rel=File-List href="QuickGuide.files/filelist.xml">
+<link rel=Edit-Time-Data href="QuickGuide.files/editdata.mso">
+<!--[if !mso]>
+<style>
+v\:* {behavior:url(#default#VML);}
+o\:* {behavior:url(#default#VML);}
+w\:* {behavior:url(#default#VML);}
+.shape {behavior:url(#default#VML);}
+</style>
+<![endif]-->
+<title>Transform3DTool</title>
+<!--[if gte mso 9]><xml>
+ <o:DocumentProperties>
+ <o:Author>雨林木风</o:Author>
+ <o:LastAuthor>雨林木风</o:LastAuthor>
+ <o:Revision>2</o:Revision>
+ <o:TotalTime>823</o:TotalTime>
+ <o:Created>2010-12-18T05:26:00Z</o:Created>
+ <o:LastSaved>2010-12-18T05:26:00Z</o:LastSaved>
+ <o:Pages>1</o:Pages>
+ <o:Words>491</o:Words>
+ <o:Characters>2805</o:Characters>
+ <o:Company>WWW.YlmF.CoM</o:Company>
+ <o:Lines>23</o:Lines>
+ <o:Paragraphs>6</o:Paragraphs>
+ <o:CharactersWithSpaces>3290</o:CharactersWithSpaces>
+ <o:Version>11.9999</o:Version>
+ </o:DocumentProperties>
+</xml><![endif]--><!--[if gte mso 9]><xml>
+ <w:WordDocument>
+ <w:PunctuationKerning/>
+ <w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing>
+ <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>
+ <w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
+ <w:ValidateAgainstSchemas/>
+ <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
+ <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
+ <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
+ <w:Compatibility>
+ <w:SpaceForUL/>
+ <w:BalanceSingleByteDoubleByteWidth/>
+ <w:DoNotLeaveBackslashAlone/>
+ <w:ULTrailSpace/>
+ <w:DoNotExpandShiftReturn/>
+ <w:AdjustLineHeightInTable/>
+ <w:BreakWrappedTables/>
+ <w:SnapToGridInCell/>
+ <w:WrapTextWithPunct/>
+ <w:UseAsianBreakRules/>
+ <w:DontGrowAutofit/>
+ <w:UseFELayout/>
+ </w:Compatibility>
+ <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
+ </w:WordDocument>
+</xml><![endif]--><!--[if gte mso 9]><xml>
+ <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
+ </w:LatentStyles>
+</xml><![endif]-->
+<style>
+<!--
+ /* Font Definitions */
+ @font-face
+ {font-family:Wingdings;
+ panose-1:5 0 0 0 0 0 0 0 0 0;
+ mso-font-charset:2;
+ mso-generic-font-family:auto;
+ mso-font-pitch:variable;
+ mso-font-signature:0 268435456 0 0 -2147483648 0;}
+@font-face
+ {font-family:宋体;
+ panose-1:2 1 6 0 3 1 1 1 1 1;
+ mso-font-alt:SimSun;
+ mso-font-charset:134;
+ mso-generic-font-family:auto;
+ mso-font-pitch:variable;
+ mso-font-signature:3 135135232 16 0 262145 0;}
+@font-face
+ {font-family:黑体;
+ panose-1:2 1 6 0 3 1 1 1 1 1;
+ mso-font-alt:SimHei;
+ mso-font-charset:134;
+ mso-generic-font-family:auto;
+ mso-font-pitch:variable;
+ mso-font-signature:1 135135232 16 0 262144 0;}
+@font-face
+ {font-family:Verdana;
+ panose-1:2 11 6 4 3 5 4 4 2 4;
+ mso-font-charset:0;
+ mso-generic-font-family:swiss;
+ mso-font-pitch:variable;
+ mso-font-signature:536871559 0 0 0 415 0;}
+@font-face
+ {font-family:"\@宋体";
+ panose-1:2 1 6 0 3 1 1 1 1 1;
+ mso-font-charset:134;
+ mso-generic-font-family:auto;
+ mso-font-pitch:variable;
+ mso-font-signature:3 135135232 16 0 262145 0;}
+@font-face
+ {font-family:"\@黑体";
+ panose-1:2 1 6 0 3 1 1 1 1 1;
+ mso-font-charset:134;
+ mso-generic-font-family:auto;
+ mso-font-pitch:variable;
+ mso-font-signature:1 135135232 16 0 262144 0;}
+ /* Style Definitions */
+ p.MsoNormal, li.MsoNormal, div.MsoNormal
+ {mso-style-parent:"";
+ margin:0cm;
+ margin-bottom:.0001pt;
+ text-align:justify;
+ text-justify:inter-ideograph;
+ mso-pagination:none;
+ font-size:10.5pt;
+ mso-bidi-font-size:12.0pt;
+ font-family:"Times New Roman";
+ mso-fareast-font-family:宋体;
+ mso-font-kerning:1.0pt;}
+h1
+ {mso-style-next:正文;
+ margin-top:17.0pt;
+ margin-right:0cm;
+ margin-bottom:16.5pt;
+ margin-left:0cm;
+ text-align:justify;
+ text-justify:inter-ideograph;
+ line-height:240%;
+ mso-pagination:lines-together;
+ page-break-after:avoid;
+ mso-outline-level:1;
+ font-size:22.0pt;
+ font-family:"Times New Roman";
+ mso-font-kerning:22.0pt;}
+h2
+ {mso-style-next:正文;
+ margin-top:13.0pt;
+ margin-right:0cm;
+ margin-bottom:13.0pt;
+ margin-left:0cm;
+ text-align:justify;
+ text-justify:inter-ideograph;
+ line-height:173%;
+ mso-pagination:lines-together;
+ page-break-after:avoid;
+ mso-outline-level:2;
+ font-size:16.0pt;
+ font-family:Arial;
+ mso-fareast-font-family:黑体;
+ mso-bidi-font-family:"Times New Roman";
+ mso-font-kerning:1.0pt;}
+a:link, span.MsoHyperlink
+ {color:blue;
+ text-decoration:underline;
+ text-underline:single;}
+a:visited, span.MsoHyperlinkFollowed
+ {color:purple;
+ text-decoration:underline;
+ text-underline:single;}
+ /* Page Definitions */
+ @page
+ {mso-page-border-surround-header:no;
+ mso-page-border-surround-footer:no;}
+@page Section1
+ {size:595.3pt 841.9pt;
+ margin:72.0pt 90.0pt 72.0pt 90.0pt;
+ mso-header-margin:42.55pt;
+ mso-footer-margin:49.6pt;
+ mso-paper-source:0;
+ layout-grid:15.6pt;}
+div.Section1
+ {page:Section1;}
+ /* List Definitions */
+ @list l0
+ {mso-list-id:350228871;
+ mso-list-type:hybrid;
+ mso-list-template-ids:-1162689462 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
+@list l0:level1
+ {mso-level-number-format:bullet;
+ mso-level-text:\F06C;
+ mso-level-tab-stop:42.05pt;
+ mso-level-number-position:left;
+ margin-left:42.05pt;
+ text-indent:-21.0pt;
+ font-family:Wingdings;}
+ol
+ {margin-bottom:0cm;}
+ul
+ {margin-bottom:0cm;}
+-->
+</style>
+<!--[if gte mso 10]>
+<style>
+ /* Style Definitions */
+ table.MsoNormalTable
+ {mso-style-name:普通表格;
+ mso-tstyle-rowband-size:0;
+ mso-tstyle-colband-size:0;
+ mso-style-noshow:yes;
+ mso-style-parent:"";
+ mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
+ mso-para-margin:0cm;
+ mso-para-margin-bottom:.0001pt;
+ mso-pagination:widow-orphan;
+ font-size:10.0pt;
+ font-family:"Times New Roman";
+ mso-ansi-language:#0400;
+ mso-fareast-language:#0400;
+ mso-bidi-language:#0400;}
+table.MsoTableGrid
+ {mso-style-name:网格型;
+ mso-tstyle-rowband-size:0;
+ mso-tstyle-colband-size:0;
+ border:solid windowtext 1.0pt;
+ mso-border-alt:solid windowtext .5pt;
+ mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
+ mso-border-insideh:.5pt solid windowtext;
+ mso-border-insidev:.5pt solid windowtext;
+ mso-para-margin:0cm;
+ mso-para-margin-bottom:.0001pt;
+ text-align:justify;
+ text-justify:inter-ideograph;
+ mso-pagination:none;
+ font-size:10.0pt;
+ font-family:"Times New Roman";
+ mso-ansi-language:#0400;
+ mso-fareast-language:#0400;
+ mso-bidi-language:#0400;}
+</style>
+<![endif]-->
+</head>
+
+<body lang=ZH-CN link=blue vlink=purple style='tab-interval:21.0pt;text-justify-trim:
+punctuation'>
+
+<div class=Section1 style='layout-grid:15.6pt'>
+
+<h1 align=center style='text-align:center'><span lang=EN-US>Transform3DTool</span></h1>
+
+<h2><span lang=EN-US>Overview</span></h2>
+
+<p class=MsoNormal><span lang=EN-US>There are many AS3 librarys for transform
+DisplayObject, such as senocular’s <a
+href="http://www.senocular.com/flash/tutorials/transformtool/">TransformTool</a>,
+GreenSock’s <a href="http://www.greensock.com/tag/transformmanager/">TransformManager</a>,
+etc. DisplayObject become 3D in Flash Player 10. Transform3DTool is a library
+like TransformTool, but it’s for 3D in Flash Player 10!</span></p>
+
+<p class=MsoNormal><span lang=EN-US>Transform3Dtool is designed like the 3D
+tool in Flash CS4/5.</span></p>
+
+<p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><!--[if gte vml 1]><v:shapetype
+ id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"
+ path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
+ <v:stroke joinstyle="miter"/>
+ <v:formulas>
+ <v:f eqn="if lineDrawn pixelLineWidth 0"/>
+ <v:f eqn="sum @0 1 0"/>
+ <v:f eqn="sum 0 0 @1"/>
+ <v:f eqn="prod @2 1 2"/>
+ <v:f eqn="prod @3 21600 pixelWidth"/>
+ <v:f eqn="prod @3 21600 pixelHeight"/>
+ <v:f eqn="sum @0 0 1"/>
+ <v:f eqn="prod @6 1 2"/>
+ <v:f eqn="prod @7 21600 pixelWidth"/>
+ <v:f eqn="sum @8 21600 0"/>
+ <v:f eqn="prod @7 21600 pixelHeight"/>
+ <v:f eqn="sum @10 21600 0"/>
+ </v:formulas>
+ <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
+ <o:lock v:ext="edit" aspectratio="t"/>
+</v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:297.75pt;
+ height:150.75pt'>
+ <v:imagedata src="QuickGuide.files/image001.png" o:title="preview"/>
+</v:shape><![endif]--><![if !vml]><img border=0 width=397 height=201
+src="QuickGuide.files/image002.gif" v:shapes="_x0000_i1025"><![endif]></span></p>
+
+<h2><span lang=EN-US>Usage</span></h2>
+
+<p class=MsoNormal><span lang=EN-US>Create a Transform3DTool, add it to the
+display list, and set Transform3DTool.target. For example:</span></p>
+
+<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
+color:maroon'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
+style='mso-spacerun:yes'>&nbsp;</span>var tool3d:Transform3DTool = new
+Transform3DTool();<o:p></o:p></span></p>
+
+<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
+color:maroon'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
+style='mso-spacerun:yes'>&nbsp;</span>addChild(tool3d);<o:p></o:p></span></p>
+
+<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
+color:maroon'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
+style='mso-spacerun:yes'>&nbsp;</span>tool3d.target = mc1;<o:p></o:p></span></p>
+
+<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
+color:maroon'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
+style='mso-spacerun:yes'>&nbsp;</span>tool3d.addEventListener(TransformEvent.UPDATE,
+updateEventHandler);<o:p></o:p></span></p>
+
+<h2><span lang=EN-US>Components</span></h2>
+
+<p class=MsoNormal><span lang=EN-US>Transform3DTool consists of RotationTool, TranslationTool
+and GlobalTranslationTool.</span></p>
+
+<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
+
+<table class=MsoTableGrid border=1 cellspacing=0 cellpadding=0
+ style='border-collapse:collapse;border:none;mso-border-alt:solid windowtext .5pt;
+ mso-yfti-tbllook:480;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;mso-border-insideh:
+ .5pt solid windowtext;mso-border-insidev:.5pt solid windowtext'>
+ <tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'>
+ <td width=189 valign=top style='width:142.0pt;border:solid windowtext 1.0pt;
+ mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
+ <p class=MsoNormal><span lang=EN-US><!--[if gte vml 1]><v:shape id="_x0000_i1027"
+ type="#_x0000_t75" style='width:135pt;height:123pt'>
+ <v:imagedata src="QuickGuide.files/image003.png" o:title="rotation_tool"/>
+ </v:shape><![endif]--><![if !vml]><img border=0 width=180 height=164
+ src="QuickGuide.files/image004.gif" v:shapes="_x0000_i1027"><![endif]></span></p>
+ </td>
+ <td width=189 valign=top style='width:142.05pt;border:solid windowtext 1.0pt;
+ border-left:none;mso-border-left-alt:solid windowtext .5pt;mso-border-alt:
+ solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
+ <p class=MsoNormal><span lang=EN-US><!--[if gte vml 1]><v:shape id="_x0000_i1028"
+ type="#_x0000_t75" style='width:134.25pt;height:122.25pt'>
+ <v:imagedata src="QuickGuide.files/image005.png" o:title="translation_tool"/>
+ </v:shape><![endif]--><![if !vml]><img border=0 width=179 height=163
+ src="QuickGuide.files/image006.gif" v:shapes="_x0000_i1028"><![endif]></span></p>
+ </td>
+ <td width=189 valign=top style='width:142.05pt;border:solid windowtext 1.0pt;
+ border-left:none;mso-border-left-alt:solid windowtext .5pt;mso-border-alt:
+ solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
+ <p class=MsoNormal><span lang=EN-US><!--[if gte vml 1]><v:shape id="_x0000_i1029"
+ type="#_x0000_t75" style='width:132pt;height:120.75pt'>
+ <v:imagedata src="QuickGuide.files/image007.png" o:title="global_translation_tool"/>
+ </v:shape><![endif]--><![if !vml]><img border=0 width=176 height=161
+ src="QuickGuide.files/image008.gif" v:shapes="_x0000_i1029"><![endif]></span></p>
+ </td>
+ </tr>
+ <tr style='mso-yfti-irow:1;mso-yfti-lastrow:yes'>
+ <td width=189 valign=top style='width:142.0pt;border:solid windowtext 1.0pt;
+ border-top:none;mso-border-top-alt:solid windowtext .5pt;mso-border-alt:solid windowtext .5pt;
+ padding:0cm 5.4pt 0cm 5.4pt'>
+ <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US>RotationTool</span></p>
+ </td>
+ <td width=189 valign=top style='width:142.05pt;border-top:none;border-left:
+ none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
+ mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
+ mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
+ <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US>TranslationTool</span></p>
+ </td>
+ <td width=189 valign=top style='width:142.05pt;border-top:none;border-left:
+ none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
+ mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
+ mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
+ <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US>GlobalTranslationTool</span></p>
+ </td>
+ </tr>
+</table>
+
+<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
+
+<p class=MsoNormal><span lang=EN-US>You can set <span style='color:red'>Transform3DTool.tool</span>
+to specify which tool to use. The tool names are listed in <span
+style='color:red'>TransformToolMode</span>. There are 4 tool mode:</span></p>
+
+<p class=MsoNormal style='margin-left:42.05pt;text-indent:-21.0pt;mso-list:
+l0 level1 lfo1;tab-stops:list 42.05pt'><![if !supportLists]><span lang=EN-US
+style='font-family:Wingdings;mso-fareast-font-family:Wingdings;mso-bidi-font-family:
+Wingdings'><span style='mso-list:Ignore'>l<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+</span></span></span><![endif]><span lang=EN-US>“all”</span></p>
+
+<p class=MsoNormal style='margin-left:42.05pt;text-indent:-21.0pt;mso-list:
+l0 level1 lfo1;tab-stops:list 42.05pt'><![if !supportLists]><span lang=EN-US
+style='font-family:Wingdings;mso-fareast-font-family:Wingdings;mso-bidi-font-family:
+Wingdings'><span style='mso-list:Ignore'>l<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+</span></span></span><![endif]><span lang=EN-US>“rotation”</span></p>
+
+<p class=MsoNormal style='margin-left:42.05pt;text-indent:-21.0pt;mso-list:
+l0 level1 lfo1;tab-stops:list 42.05pt'><![if !supportLists]><span lang=EN-US
+style='font-family:Wingdings;mso-fareast-font-family:Wingdings;mso-bidi-font-family:
+Wingdings'><span style='mso-list:Ignore'>l<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+</span></span></span><![endif]><span lang=EN-US>“translation”</span></p>
+
+<p class=MsoNormal style='margin-left:42.05pt;text-indent:-21.0pt;mso-list:
+l0 level1 lfo1;tab-stops:list 42.05pt'><![if !supportLists]><span lang=EN-US
+style='font-family:Wingdings;mso-fareast-font-family:Wingdings;mso-bidi-font-family:
+Wingdings'><span style='mso-list:Ignore'>l<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+</span></span></span><![endif]><span lang=EN-US>“global translation”</span></p>
+
+<h2><span lang=EN-US>Transform Mode</span></h2>
+
+<p class=MsoNormal><span lang=EN-US>There are two transform modes in
+Transform3DTool: <span style='color:red'>Internal</span> and <span
+style='color:red'>Global</span>, just like 3D tool in Flash CS4/5. Set <span
+style='color:red'>Transform3DTool.mode</span> to specify which transform mode. The
+mode names are listed in <span style='color:red'>Transform3DMode</span>.</span></p>
+
+<p class=MsoNormal><span lang=EN-US>Global transform mode means that the 3D
+transformations move in relationship to the Transform3DTool’s coordinates. </span></p>
+
+<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
+
+<table class=MsoTableGrid border=1 cellspacing=0 cellpadding=0
+ style='border-collapse:collapse;border:none;mso-border-alt:solid windowtext .5pt;
+ mso-yfti-tbllook:480;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;mso-border-insideh:
+ .5pt solid windowtext;mso-border-insidev:.5pt solid windowtext'>
+ <tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'>
+ <td width=58 valign=top style='width:43.45pt;border:solid windowtext 1.0pt;
+ mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
+ <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
+ <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
+ <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
+ <p class=MsoNormal><span lang=EN-US>Global</span></p>
+ </td>
+ <td width=249 valign=top style='width:186.95pt;border:solid windowtext 1.0pt;
+ border-left:none;mso-border-left-alt:solid windowtext .5pt;mso-border-alt:
+ solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
+ <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><!--[if gte vml 1]><v:shape
+ id="_x0000_i1030" type="#_x0000_t75" style='width:135pt;height:123.75pt'>
+ <v:imagedata src="QuickGuide.files/image009.png" o:title="rotation_tool_g_mode"/>
+ </v:shape><![endif]--><![if !vml]><img border=0 width=180 height=165
+ src="QuickGuide.files/image010.gif" v:shapes="_x0000_i1030"><![endif]></span></p>
+ </td>
+ <td width=261 valign=top style='width:195.7pt;border:solid windowtext 1.0pt;
+ border-left:none;mso-border-left-alt:solid windowtext .5pt;mso-border-alt:
+ solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
+ <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><!--[if gte vml 1]><v:shape
+ id="_x0000_i1031" type="#_x0000_t75" style='width:134.25pt;height:123pt'>
+ <v:imagedata src="QuickGuide.files/image011.png" o:title="translation_tool_g_mode"/>
+ </v:shape><![endif]--><![if !vml]><img border=0 width=179 height=164
+ src="QuickGuide.files/image012.gif" v:shapes="_x0000_i1031"><![endif]></span></p>
+ </td>
+ </tr>
+ <tr style='mso-yfti-irow:1'>
+ <td width=58 valign=top style='width:43.45pt;border:solid windowtext 1.0pt;
+ border-top:none;mso-border-top-alt:solid windowtext .5pt;mso-border-alt:solid windowtext .5pt;
+ padding:0cm 5.4pt 0cm 5.4pt'>
+ <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
+ <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
+ <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
+ <p class=MsoNormal><span lang=EN-US>Internal</span></p>
+ </td>
+ <td width=249 valign=top style='width:186.95pt;border-top:none;border-left:
+ none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
+ mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
+ mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
+ <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><!--[if gte vml 1]><v:shape
+ id="_x0000_i1032" type="#_x0000_t75" style='width:135pt;height:123pt'>
+ <v:imagedata src="QuickGuide.files/image003.png" o:title="rotation_tool"/>
+ </v:shape><![endif]--><![if !vml]><img border=0 width=180 height=164
+ src="QuickGuide.files/image013.gif" v:shapes="_x0000_i1032"><![endif]></span></p>
+ </td>
+ <td width=261 valign=top style='width:195.7pt;border-top:none;border-left:
+ none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
+ mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
+ mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
+ <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><!--[if gte vml 1]><v:shape
+ id="_x0000_i1033" type="#_x0000_t75" style='width:134.25pt;height:122.25pt'>
+ <v:imagedata src="QuickGuide.files/image005.png" o:title="translation_tool"/>
+ </v:shape><![endif]--><![if !vml]><img border=0 width=179 height=163
+ src="QuickGuide.files/image014.gif" v:shapes="_x0000_i1033"><![endif]></span></p>
+ </td>
+ </tr>
+ <tr style='mso-yfti-irow:2;mso-yfti-lastrow:yes'>
+ <td width=58 valign=top style='width:43.45pt;border:solid windowtext 1.0pt;
+ border-top:none;mso-border-top-alt:solid windowtext .5pt;mso-border-alt:solid windowtext .5pt;
+ padding:0cm 5.4pt 0cm 5.4pt'>
+ <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
+ </td>
+ <td width=249 valign=top style='width:186.95pt;border-top:none;border-left:
+ none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
+ mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
+ mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
+ <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US>RotationTool</span></p>
+ </td>
+ <td width=261 valign=top style='width:195.7pt;border-top:none;border-left:
+ none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
+ mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
+ mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
+ <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US>TranslationTool</span></p>
+ </td>
+ </tr>
+</table>
+
+<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
+
+<p class=MsoNormal><span lang=EN-US>GlobalTranslationTool is always “Global”.</span></p>
+
+<h2><span lang=EN-US>Styles</span></h2>
+
+<p class=MsoNormal><span lang=EN-US>By default, Transform3DTool x control is
+Red. If you want change the color or thickness of line, You need set the <span
+style='color:red'>Transform3DTool.xCtrlStyle</span>. For y, z controls, set the
+<span style='color:red'>yCtrlStyle</span>, <span style='color:red'>zCtrlStyle</span>.
+</span></p>
+
+<p class=MsoNormal><span lang=EN-US>For more detail styles:</span></p>
+
+<p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><!--[if gte vml 1]><v:shape
+ id="_x0000_i1034" type="#_x0000_t75" style='width:336pt;height:275.25pt'>
+ <v:imagedata src="QuickGuide.files/image015.png" o:title="styles"/>
+</v:shape><![endif]--><![if !vml]><img border=0 width=448 height=367
+src="QuickGuide.files/image016.gif" v:shapes="_x0000_i1034"><![endif]></span></p>
+
+<h2><span lang=EN-US>Cursors</span></h2>
+
+<p class=MsoNormal><span lang=EN-US><!--[if gte vml 1]><v:shape id="_x0000_i1035"
+ type="#_x0000_t75" style='width:146.25pt;height:30pt'>
+ <v:imagedata src="QuickGuide.files/image017.png" o:title="cursors"/>
+</v:shape><![endif]--><![if !vml]><img border=0 width=195 height=40
+src="QuickGuide.files/image018.gif" v:shapes="_x0000_i1035"><![endif]></span></p>
+
+<p class=MsoNormal><span lang=EN-US>Transform3DTool consists of RotationTool,
+TranslationTool and GlobalTranslationTool. You can custom mouse cursor for every
+tool for each DimentionControl. For example, you can set the control cursor of tool
+by giving a DisplayObject: </span></p>
+
+<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
+style='font-size:9.0pt;font-family:Verdana;color:maroon'>Transform3DTool.rotationTool.xCursor
+= new Circle;<o:p></o:p></span></p>
+
+<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
+style='font-size:9.0pt;font-family:Verdana;color:maroon'>Transform3DTool.rotationTool.yCursor
+= new Circle; <o:p></o:p></span></p>
+
+<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
+style='font-size:9.0pt;font-family:Verdana;color:maroon'>Transform3DTool.rotationTool.zCursor
+= new Circle; <o:p></o:p></span></p>
+
+<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
+style='font-size:9.0pt;font-family:Verdana;color:maroon'>Transform3DTool.rotationTool.pCursor
+= new Circle;<o:p></o:p></span></p>
+
+<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
+style='font-size:9.0pt;font-family:Verdana;color:maroon'>Transform3DTool.rotationTool.RegCursor
+= new Circle;<o:p></o:p></span></p>
+
+<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
+style='font-size:9.0pt;font-family:Verdana;color:maroon'><o:p>&nbsp;</o:p></span></p>
+
+<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
+style='font-size:9.0pt;font-family:Verdana;color:maroon'>Transform3DTool.translationTool.xCursor
+= new Circle ;<o:p></o:p></span></p>
+
+<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
+style='font-size:9.0pt;font-family:Verdana;color:maroon'>Transform3DTool.translationTool.yCursor
+= new Circle;<o:p></o:p></span></p>
+
+<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
+style='font-size:9.0pt;font-family:Verdana;color:maroon'>Transform3DTool.translationTool.zCursor
+= new Circle; <o:p></o:p></span></p>
+
+<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
+style='font-size:9.0pt;font-family:Verdana;color:maroon'>Transform3DTool.translationTool.regCursor
+= new Circle ;<o:p></o:p></span></p>
+
+<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
+style='font-size:9.0pt;font-family:Verdana;color:maroon'><o:p>&nbsp;</o:p></span></p>
+
+<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
+style='font-size:9.0pt;font-family:Verdana;color:maroon'>Transform3DTool.globalTranslationTool.cursor
+= new Circle;<o:p></o:p></span></p>
+
+<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
+style='font-size:9.0pt;font-family:Verdana;color:maroon'><o:p>&nbsp;</o:p></span></p>
+
+<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
+
+<h2><span lang=EN-US>ToolBar</span></h2>
+
+<p class=MsoNormal><span lang=EN-US><!--[if gte vml 1]><v:shape id="_x0000_i1026"
+ type="#_x0000_t75" style='width:189pt;height:30pt'>
+ <v:imagedata src="QuickGuide.files/image019.png" o:title="toolbar"/>
+</v:shape><![endif]--><![if !vml]><img border=0 width=252 height=40
+src="QuickGuide.files/image020.gif" v:shapes="_x0000_i1026"><![endif]></span></p>
+
+<p class=MsoNormal><span lang=EN-US style='color:red'>transform3d.toolbar.ToolBar</span><span
+lang=EN-US> is completely independent from Transform3DTool, It was used in Tfm3DToolDemo.
+ToolBar consists of ToolButton instances. For custom development, you need build
+custome Class extends ToolButton. For example, add three custom ToolButton to
+ToolBar. </span></p>
+
+<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
+color:#993300'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>_bar
+= new ToolBar();<o:p></o:p></span></p>
+
+<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
+color:#993300'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>_tToolBtn
+= new TranslationToolButton();<o:p></o:p></span></p>
+
+<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
+color:#993300'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>_rToolBtn
+= new RotationToolButton();<o:p></o:p></span></p>
+
+<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
+color:#993300'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>_modeBtn
+= new TransformModeButton();<o:p></o:p></span></p>
+
+<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
+color:#993300'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>_bar.addToolButton(_tToolBtn);<o:p></o:p></span></p>
+
+<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
+color:#993300'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>_bar.addToolButton(_rToolBtn);<o:p></o:p></span></p>
+
+<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
+color:#993300'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>_bar.addToolButton(_modeBtn,
+&quot;right&quot;);<o:p></o:p></span></p>
+
+<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:Verdana;
+color:#993300'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>addChild(_bar);<o:p></o:p></span></p>
+
+<h2><span lang=EN-US>Support</span></h2>
+
+<p class=MsoNormal><span lang=EN-US>You can email me at <a
+href="http://activeden.net/user/itamt">http://activeden.net/user/itamt</a> for
+any problems. I hope Transform3DTool is useful to you.</span></p>
+
+<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
+
+<p class=MsoNormal><span lang=EN-US>Best wishes to you.</span><span lang=EN-US
+style='mso-bidi-font-size:9.0pt'><o:p></o:p></span></p>
+
+</div>
+
+</body>
+
+</html>
View
320 index.html
@@ -0,0 +1,320 @@
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh_cn" lang="zh_cn">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>Transform3DTool Demo</title>
+<script language="JavaScript" type="text/javascript">
+<!--
+//v1.7
+// Flash Player Version Detection
+// Detect Client Browser type
+// Copyright 2005-2008 Adobe Systems Incorporated. All rights reserved.
+var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
+var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
+var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
+function ControlVersion()
+{
+ var version;
+ var axo;
+ var e;
+ // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
+ try {
+ // version will be set for 7.X or greater players
+ axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
+ version = axo.GetVariable("$version");
+ } catch (e) {
+ }
+ if (!version)
+ {
+ try {
+ // version will be set for 6.X players only
+ axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
+
+ // installed player is some revision of 6.0
+ // GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
+ // so we have to be careful.
+
+ // default to the first public version
+ version = "WIN 6,0,21,0";
+ // throws if AllowScripAccess does not exist (introduced in 6.0r47)
+ axo.AllowScriptAccess = "always";
+ // safe to call for 6.0r47 or greater
+ version = axo.GetVariable("$version");
+ } catch (e) {
+ }
+ }
+ if (!version)
+ {
+ try {
+ // version will be set for 4.X or 5.X player
+ axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
+ version = axo.GetVariable("$version");
+ } catch (e) {
+ }
+ }
+ if (!version)
+ {
+ try {
+ // version will be set for 3.X player
+ axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
+ version = "WIN 3,0,18,0";
+ } catch (e) {
+ }
+ }
+ if (!version)
+ {
+ try {
+ // version will be set for 2.X player
+ axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
+ version = "WIN 2,0,0,11";
+ } catch (e) {
+ version = -1;
+ }
+ }
+
+ return version;
+}
+// JavaScript helper required to detect Flash Player PlugIn version information
+function GetSwfVer(){
+ // NS/Opera version >= 3 check for Flash plugin in plugin array
+ var flashVer = -1;
+
+ if (navigator.plugins != null && navigator.plugins.length > 0) {
+ if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
+ var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
+ var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
+ var descArray = flashDescription.split(" ");
+ var tempArrayMajor = descArray[2].split(".");
+ var versionMajor = tempArrayMajor[0];
+ var versionMinor = tempArrayMajor[1];
+ var versionRevision = descArray[3];
+ if (versionRevision == "") {
+ versionRevision = descArray[4];
+ }
+ if (versionRevision[0] == "d") {
+ versionRevision = versionRevision.substring(1);
+ } else if (versionRevision[0] == "r") {
+ versionRevision = versionRevision.substring(1);
+ if (versionRevision.indexOf("d") > 0) {
+ versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
+ }
+ }
+ var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
+ }
+ }
+ // MSN/WebTV 2.6 supports Flash 4
+ else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
+ // WebTV 2.5 supports Flash 3
+ else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
+ // older WebTV supports Flash 2
+ else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
+ else if ( isIE && isWin && !isOpera ) {
+ flashVer = ControlVersion();
+ }
+ return flashVer;
+}
+// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
+function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
+{
+ versionStr = GetSwfVer();
+ if (versionStr == -1 ) {
+ return false;
+ } else if (versionStr != 0) {
+ if(isIE && isWin && !isOpera) {
+ // Given "WIN 2,0,0,11"
+ tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"]
+ tempString = tempArray[1]; // "2,0,0,11"
+ versionArray = tempString.split(","); // ['2', '0', '0', '11']
+ } else {
+ versionArray = versionStr.split(".");
+ }
+ var versionMajor = versionArray[0];
+ var versionMinor = versionArray[1];
+ var versionRevision = versionArray[2];
+ // is the major.revision >= requested major.revision AND the minor version >= requested minor
+ if (versionMajor > parseFloat(reqMajorVer)) {
+ return true;
+ } else if (versionMajor == parseFloat(reqMajorVer)) {
+ if (versionMinor > parseFloat(reqMinorVer))
+ return true;
+ else if (versionMinor == parseFloat(reqMinorVer)) {
+ if (versionRevision >= parseFloat(reqRevision))
+ return true;
+ }
+ }
+ return false;
+ }
+}
+function AC_AddExtension(src, ext)
+{
+ if (src.indexOf('?') != -1)
+ return src.replace(/\?/, ext+'?');
+ else
+ return src + ext;
+}
+function AC_Generateobj(objAttrs, params, embedAttrs)
+{
+ var str = '';
+ if (isIE && isWin && !isOpera)
+ {
+ str += '<object ';
+ for (var i in objAttrs)
+ {
+ str += i + '="' + objAttrs[i] + '" ';
+ }
+ str += '>';
+ for (var i in params)
+ {
+ str += '<param name="' + i + '" value="' + params[i] + '" /> ';
+ }
+ str += '</object>';
+ }
+ else
+ {
+ str += '<embed ';
+ for (var i in embedAttrs)
+ {
+ str += i + '="' + embedAttrs[i] + '" ';
+ }
+ str += '> </embed>';
+ }
+ document.write(str);
+}
+function AC_FL_RunContent(){
+ var ret =
+ AC_GetArgs
+ ( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
+ , "application/x-shockwave-flash"
+ );
+ AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
+}
+function AC_SW_RunContent(){
+ var ret =
+ AC_GetArgs
+ ( arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
+ , null
+ );
+ AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
+}
+function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
+ var ret = new Object();
+ ret.embedAttrs = new Object();
+ ret.params = new Object();
+ ret.objAttrs = new Object();
+ for (var i=0; i < args.length; i=i+2){
+ var currArg = args[i].toLowerCase();
+ switch (currArg){
+ case "classid":
+ break;
+ case "pluginspage":
+ ret.embedAttrs[args[i]] = args[i+1];
+ break;
+ case "src":
+ case "movie":
+ args[i+1] = AC_AddExtension(args[i+1], ext);
+ ret.embedAttrs["src"] = args[i+1];
+ ret.params[srcParamName] = args[i+1];
+ break;
+ case "onafterupdate":
+ case "onbeforeupdate":
+ case "onblur":
+ case "oncellchange":
+ case "onclick":
+ case "ondblclick":
+ case "ondrag":
+ case "ondragend":
+ case "ondragenter":
+ case "ondragleave":
+ case "ondragover":
+ case "ondrop":
+ case "onfinish":
+ case "onfocus":
+ case "onhelp":
+ case "onmousedown":
+ case "onmouseup":
+ case "onmouseover":
+ case "onmousemove":
+ case "onmouseout":
+ case "onkeypress":
+ case "onkeydown":
+ case "onkeyup":
+ case "onload":
+ case "onlosecapture":
+ case "onpropertychange":
+ case "onreadystatechange":
+ case "onrowsdelete":
+ case "onrowenter":
+ case "onrowexit":
+ case "onrowsinserted":
+ case "onstart":
+ case "onscroll":
+ case "onbeforeeditfocus":
+ case "onactivate":
+ case "onbeforedeactivate":
+ case "ondeactivate":
+ case "type":
+ case "codebase":
+ case "id":
+ ret.objAttrs[args[i]] = args[i+1];
+ break;
+ case "width":
+ case "height":
+ case "align":
+ case "vspace":
+ case "hspace":
+ case "class":
+ case "title":
+ case "accesskey":
+ case "name":
+ case "tabindex":
+ ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
+ break;
+ default:
+ ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
+ }
+ }
+ ret.objAttrs["classid"] = classid;
+ if (mimeType) ret.embedAttrs["type"] = mimeType;
+ return ret;
+}
+// -->
+</script>
+</head>
+<body bgcolor="#000000" style="text-align:center;">
+<div id="wrap" style="text-align:left;width:600px;margin:0 auto;">
+<!--影片中使用的 URL-->
+<!--影片中使用的文本-->
+<!-- saved from url=(0013)about:internet -->
+<script language="JavaScript" type="text/javascript">
+ AC_FL_RunContent(
+ 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
+ 'width', '600',
+ 'height', '450',
+ 'src', 'Tfm3DToolDemo',
+ 'quality', 'high',
+ 'pluginspage', 'http://www.adobe.com/go/getflashplayer_cn',
+ 'align', 'middle',
+ 'play', 'true',
+ 'loop', 'true',
+ 'scale', 'showall',
+ 'wmode', 'window',
+ 'devicefont', 'false',
+ 'id', 'preview',
+ 'bgcolor', '#000000',
+ 'name', 'preview',
+ 'menu', 'true',
+ 'allowFullScreen', 'false',
+ 'allowScriptAccess','sameDomain',
+ 'movie', 'Tfm3DToolDemo',
+ 'salign', ''
+ ); //end AC code
+</script>
+<noscript>
+ <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">
+ <param name="allowScriptAccess" value="sameDomain" />
+ <param name="allowFullScreen" value="false" />
+ <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" />
+ </object>
+</noscript>
+</div>
+</body>
+</html>

0 comments on commit c392f0a

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