home *** CD-ROM | disk | FTP | other *** search
/ com!online 2002 June / comonline0602.iso / software / golive5 / GoLive5_Tryout.exe / MM7.Cab / F4953_Blende.action.A1180258_69AD_4130_944D_0B6274131723 < prev    next >
Encoding:
Text File  |  2000-08-23  |  7.7 KB  |  169 lines

  1. <html>
  2.     <head>
  3.         <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  4.         <title>Wipe Transition Action</title>
  5.         <meta name="generator" content="Adobe GoLive 5">
  6.     </head>
  7.     <body bgcolor="white">
  8.         <center> <font size="6">Wipe Transition Action</font>
  9.             <hr>
  10.         </center>
  11.         <csactionclass name="Wipe Transition" function="CSStartWipe" nsversion="4" ieversion="4">
  12.         <csactionparam name="layer" type="GLActionLayerParam"></csactionparam>
  13.         <csactionparam name="steps" type="GLActionNumParam"></csactionparam>
  14.         <csactionparam name="mode" type="GLActionEnumParam">
  15.         <csactionenum name="Einblenden von links nach rechts" value='"_inRight"'>
  16.         <csactionenum name="Einblenden von rechts nach links" value='"_inLeft"'>
  17.         <csactionenum name="Einblenden von oben nach unten" value='"_inBottom"'>
  18.         <csactionenum name="Einblenden von unten nach oben" value='"_inTop"'>
  19.         <csactionenum name="Ausblenden von links nach rechts" value='"_outRight"'>
  20.         <csactionenum name="Ausblenden von rechts nach links" value='"_outLeft"'>
  21.         <csactionenum name="Ausblenden von oben nach unten" value='"_outBottom"'>
  22.         <csactionenum name="Ausblenden von unten nach oben" value='"_outTop"'>
  23.         <csactionenum name="Zentriert einblenden" value='"_inCenter"'>
  24.         <csactionenum name="Zentriert ausblenden" value='"_outCenter"'>
  25.         </csactionparam>
  26.         </csactionclass>
  27.         <p>IE Functions Script
  28.         <script language="JavaScript1.2" src="../../GlobalScripts/IE.scpt" cyberversion="N1.2"></script>
  29.         </p>
  30.         <p>MainLoop Functions Script
  31.         <script language="JavaScript1.2" src="../../GlobalScripts/MainLoop.scpt"></script>
  32.         </p>
  33.         <p>StyleVis Functions Script
  34.         <script language="JavaScript1.2" src="../../GlobalScripts/StyleVis.scpt" cyberversion="N1.2"></script>
  35.         </p>
  36.         <p>SytleTrans Functions Script
  37.         <script language="JavaScript1.2" src="../../GlobalScripts/StyleTrans.scpt"></script>
  38.         </p>
  39.         <p>Wipe Transition Script
  40.         
  41. <script language="JavaScript1.2" cyberversion="N1.2"><!--
  42. function CSStartWipe (action)
  43. {
  44.     var el=CSCreateTransElement (action[1], action[2]);
  45.     if (el==null) return;
  46.     var dir=action[3];
  47.     if (dir=="_inLeft") {el.steps=el.clipRect.width/el.maxValue; el.modus="in";}
  48.     else if (dir=="_inRight") {el.steps=el.clipRect.width/el.maxValue; el.modus="in";}
  49.     else if (dir=="_outLeft") {el.steps=el.clipRect.width/el.maxValue; el.modus="out";}
  50.     else if (dir=="_outRight") {el.steps=el.clipRect.width/el.maxValue; el.modus="out";}
  51.     else if (dir=="_inTop") {el.steps=el.clipRect.height/el.maxValue; el.modus="in";}
  52.     else if (dir=="_inBottom") {el.steps=el.clipRect.height/el.maxValue; el.modus="in";}
  53.     else if (dir=="_outTop") {el.steps=el.clipRect.height/el.maxValue; el.modus="out";}
  54.     else if (dir=="_outBottom") {el.steps=el.clipRect.height/el.maxValue; el.modus="out";}
  55.     else if (dir=="_inCenter") {el.HSteps=el.clipRect.width/el.maxValue; el.VSteps=el.clipRect.height/el.maxValue; el.modus="in";}
  56.     else if (dir=="_outCenter") {el.HSteps=el.clipRect.width/el.maxValue; el.VSteps=el.clipRect.height/el.maxValue; el.modus="out";}
  57.     if (el.modus=="") return;
  58.     el.currentValue=0;
  59.     el.glDir=action[3];
  60.     CSStartFunction(CSDoWipe,el);
  61. }
  62. function CSDoWipe (info)
  63. {
  64.     var el = info.data;
  65.     if (el==null) return false;
  66.     if (el.currentValue==el.maxValue) { CSFinishWipe(el); return false; }
  67.     var r = new CSRect(el.clipRect.left,el.clipRect.top,el.clipRect.width,el.clipRect.height);
  68.     var dir=el.glDir;
  69.     if (dir=="_inLeft") {r.left=r.width-el.currentValue*el.steps;}
  70.     else if (dir=="_inTop") {r.top=r.height-el.currentValue*el.steps;}
  71.     else if (dir=="_inRight") {r.width=el.currentValue*el.steps;}
  72.     else if (dir=="_inBottom") {r.height=el.currentValue*el.steps;}
  73.     else if (dir=="_outLeft") {r.width=r.width-el.currentValue*el.steps;}
  74.     else if (dir=="_outTop") {r.height=r.height-el.currentValue*el.steps;}
  75.     else if (dir=="_outRight") {r.left=el.currentValue*el.steps;}
  76.     else if (dir=="_outBottom") {r.top=el.currentValue*el.steps;}
  77.     else if (dir=="_inCenter") {r=CSCenterRectIn(el,r);}
  78.     else if (dir=="_outCenter") {r=CSCenterRectOut(el,r);}
  79.     CSSetLayerClip(el,r);
  80.     el.currentValue+=1;
  81.     return true;
  82. }
  83. function CSFinishWipe (el)
  84. {
  85.     if (el.modus=="in") CSSetLayerClip(el,el.clipRect);
  86.     else {
  87.         el.clipRect=new CSRect(0,0,el.width,el.height);
  88.         CSSetLayerClip(el,el.clipRect);
  89.         CSSetStyleVis(el.layer,0);
  90.     }
  91.     CSDisposeTransElement(el);
  92. }
  93. function CSCenterRectIn(el,r)
  94. {
  95.     var hValue= el.currentValue*el.HSteps/2;
  96.     var vValue= el.currentValue*el.VSteps/2;
  97.     r.left=Math.round(r.left+r.width/2-hValue);
  98.     r.top=Math.round(r.top+r.height/2-vValue);
  99.     r.width=Math.round(hValue*2);
  100.     r.height=Math.round(vValue*2);
  101.     return r;
  102. }
  103. function CSCenterRectOut(el,r)
  104. {
  105.     var hValue= el.currentValue*el.HSteps/2;
  106.     var vValue= el.currentValue*el.VSteps/2;
  107.     r.left+=Math.round(hValue);
  108.     r.top+=Math.round(vValue);
  109.     r.width-=Math.round(hValue*2);
  110.     r.height-=Math.round(vValue*2);
  111.     return r;
  112. }
  113. // -->
  114.         </script>
  115.         </p>
  116.         <table cool width="233" height="153" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
  117.             <tr height="6">
  118.                 <td width="4" height="152" rowspan="7"><spacer type="block" width="4" height="152"></td>
  119.                 <td width="90" height="9" rowspan="2"><spacer type="block" width="90" height="9"></td>
  120.                 <td width="138" height="6"><spacer type="block" width="138" height="6"></td>
  121.                 <td width="1" height="6"><spacer type="block" width="1" height="6"></td>
  122.             </tr>
  123.             <tr height="3">
  124.                 <td width="138" height="22" rowspan="2" valign="top" align="left" xpos="94">
  125.                     <csactioncntrl name="layer" x="93" y="6" width="136" height="18" alignx="scale" aligny="top">
  126.                 </td>
  127.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  128.             </tr>
  129.             <tr height="19">
  130.                 <td width="90" height="19" valign="top" align="left" xpos="4">
  131.                     <csactioncntrl type="InfoText" value="Schweberahmen:" x="4" y="9" width="86" height="14" alignx="left" aligny="top">
  132.                 </td>
  133.                 <td width="1" height="19"><spacer type="block" width="1" height="19"></td>
  134.             </tr>
  135.             <tr height="3">
  136.                 <td width="90" height="3"><spacer type="block" width="90" height="3"></td>
  137.                 <td width="138" height="22" rowspan="2" valign="top" align="left" xpos="94">
  138.                     <csactioncntrl name="mode" x="93" y="28" width="136" height="18" alignx="scale" aligny="top">
  139.                 </td>
  140.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  141.             </tr>
  142.             <tr height="19">
  143.                 <td width="90" height="19" valign="top" align="left" xpos="4">
  144.                     <csactioncntrl type="InfoText" value="Blendeneffekt:" x="4" y="31" width="72" height="16" alignx="left" aligny="top">
  145.                 </td>
  146.                 <td width="1" height="19"><spacer type="block" width="1" height="19"></td>
  147.             </tr>
  148.             <tr height="3">
  149.                 <td width="90" height="3"><spacer type="block" width="90" height="3"></td>
  150.                 <td width="138" height="102" rowspan="2" valign="top" align="left" xpos="94">
  151.                     <csactioncntrl name="steps" x="93" y="50" width="63" height="18" alignx="left" aligny="top">
  152.                 </td>
  153.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  154.             </tr>
  155.             <tr height="99">
  156.                 <td width="90" height="99" valign="top" align="left" xpos="4">
  157.                     <csactioncntrl type="InfoText" value="Schrittzahl:" x="4" y="53" width="56" height="17" alignx="left" aligny="top">
  158.                 </td>
  159.                 <td width="1" height="99"><spacer type="block" width="1" height="99"></td>
  160.             </tr>
  161.             <tr height="1" cntrlrow>
  162.                 <td width="4" height="1"><spacer type="block" width="4" height="1"></td>
  163.                 <td width="90" height="1"><spacer type="block" width="90" height="1"></td>
  164.                 <td width="138" height="1"><spacer type="block" width="138" height="1"></td>
  165.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  166.             </tr>
  167.         </table>
  168.     </body>
  169. </html>