home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 73 / IOPROG_73.ISO / tips / Flash e menu contestuali / AxShockwaveFlashObjects.cs next >
Encoding:
Text File  |  2003-07-31  |  33.8 KB  |  732 lines

  1. //------------------------------------------------------------------------------
  2. // <autogenerated>
  3. //     This code was generated by a tool.
  4. //     Runtime Version: 1.1.4322.573
  5. //
  6. //     Changes to this file may cause incorrect behavior and will be lost if 
  7. //     the code is regenerated.
  8. // </autogenerated>
  9. //------------------------------------------------------------------------------
  10.  
  11. [assembly: System.Reflection.AssemblyVersion("1.0.0.0")]
  12. [assembly: System.Windows.Forms.AxHost.TypeLibraryTimeStamp("27/11/2002 10.46.46")]
  13.  
  14. namespace AxShockwaveFlashObjects {
  15.     
  16.     
  17.     [System.Windows.Forms.AxHost.ClsidAttribute("{d27cdb6e-ae6d-11cf-96b8-444553540000}")]
  18.     [System.ComponentModel.DesignTimeVisibleAttribute(true)]
  19.     public class AxShockwaveFlash : System.Windows.Forms.AxHost {
  20.  
  21.         // Costante dell'evento da intercettare
  22.         private readonly int rightMouseClickMessage = 516;
  23.  
  24.         // Disabilita il menu contestuale
  25.         protected override void WndProc(ref System.Windows.Forms.Message m)
  26.         {            
  27.             // Intercetta ed esegue tutti i messaggi tranne quello del tasto destro
  28.             // del mosue che causa la visualizzazione del menu contestuale
  29.             if (m.Msg != rightMouseClickMessage)
  30.                 base.WndProc(ref m);        
  31.         }
  32.         
  33.         private ShockwaveFlashObjects.IShockwaveFlash ocx;
  34.         
  35.         private AxShockwaveFlashEventMulticaster eventMulticaster;
  36.         
  37.         private System.Windows.Forms.AxHost.ConnectionPointCookie cookie;
  38.         
  39.         public AxShockwaveFlash() : 
  40.                 base("d27cdb6e-ae6d-11cf-96b8-444553540000") {
  41.         }
  42.         
  43.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  44.         [System.Runtime.InteropServices.DispIdAttribute(-525)]
  45.         public virtual int ReadyState {
  46.             get {
  47.                 if ((this.ocx == null)) {
  48.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ReadyState", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  49.                 }
  50.                 return this.ocx.ReadyState;
  51.             }
  52.         }
  53.         
  54.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  55.         [System.Runtime.InteropServices.DispIdAttribute(124)]
  56.         public virtual int TotalFrames {
  57.             get {
  58.                 if ((this.ocx == null)) {
  59.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("TotalFrames", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  60.                 }
  61.                 return this.ocx.TotalFrames;
  62.             }
  63.         }
  64.         
  65.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  66.         [System.Runtime.InteropServices.DispIdAttribute(125)]
  67.         public virtual bool Playing {
  68.             get {
  69.                 if ((this.ocx == null)) {
  70.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Playing", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  71.                 }
  72.                 return this.ocx.Playing;
  73.             }
  74.             set {
  75.                 if ((this.ocx == null)) {
  76.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Playing", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
  77.                 }
  78.                 this.ocx.Playing = value;
  79.             }
  80.         }
  81.         
  82.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  83.         [System.Runtime.InteropServices.DispIdAttribute(105)]
  84.         public virtual int Quality {
  85.             get {
  86.                 if ((this.ocx == null)) {
  87.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Quality", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  88.                 }
  89.                 return this.ocx.Quality;
  90.             }
  91.             set {
  92.                 if ((this.ocx == null)) {
  93.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Quality", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
  94.                 }
  95.                 this.ocx.Quality = value;
  96.             }
  97.         }
  98.         
  99.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  100.         [System.Runtime.InteropServices.DispIdAttribute(120)]
  101.         public virtual int ScaleMode {
  102.             get {
  103.                 if ((this.ocx == null)) {
  104.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ScaleMode", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  105.                 }
  106.                 return this.ocx.ScaleMode;
  107.             }
  108.             set {
  109.                 if ((this.ocx == null)) {
  110.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ScaleMode", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
  111.                 }
  112.                 this.ocx.ScaleMode = value;
  113.             }
  114.         }
  115.         
  116.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  117.         [System.Runtime.InteropServices.DispIdAttribute(121)]
  118.         public virtual int AlignMode {
  119.             get {
  120.                 if ((this.ocx == null)) {
  121.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("AlignMode", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  122.                 }
  123.                 return this.ocx.AlignMode;
  124.             }
  125.             set {
  126.                 if ((this.ocx == null)) {
  127.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("AlignMode", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
  128.                 }
  129.                 this.ocx.AlignMode = value;
  130.             }
  131.         }
  132.         
  133.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  134.         [System.Runtime.InteropServices.DispIdAttribute(123)]
  135.         public virtual int BackgroundColor {
  136.             get {
  137.                 if ((this.ocx == null)) {
  138.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("BackgroundColor", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  139.                 }
  140.                 return this.ocx.BackgroundColor;
  141.             }
  142.             set {
  143.                 if ((this.ocx == null)) {
  144.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("BackgroundColor", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
  145.                 }
  146.                 this.ocx.BackgroundColor = value;
  147.             }
  148.         }
  149.         
  150.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  151.         [System.Runtime.InteropServices.DispIdAttribute(106)]
  152.         public virtual bool Loop {
  153.             get {
  154.                 if ((this.ocx == null)) {
  155.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Loop", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  156.                 }
  157.                 return this.ocx.Loop;
  158.             }
  159.             set {
  160.                 if ((this.ocx == null)) {
  161.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Loop", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
  162.                 }
  163.                 this.ocx.Loop = value;
  164.             }
  165.         }
  166.         
  167.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  168.         [System.Runtime.InteropServices.DispIdAttribute(102)]
  169.         public virtual string Movie {
  170.             get {
  171.                 if ((this.ocx == null)) {
  172.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Movie", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  173.                 }
  174.                 return this.ocx.Movie;
  175.             }
  176.             set {
  177.                 if ((this.ocx == null)) {
  178.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Movie", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
  179.                 }
  180.                 this.ocx.Movie = value;
  181.             }
  182.         }
  183.         
  184.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  185.         [System.Runtime.InteropServices.DispIdAttribute(107)]
  186.         public virtual int FrameNum {
  187.             get {
  188.                 if ((this.ocx == null)) {
  189.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("FrameNum", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  190.                 }
  191.                 return this.ocx.FrameNum;
  192.             }
  193.             set {
  194.                 if ((this.ocx == null)) {
  195.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("FrameNum", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
  196.                 }
  197.                 this.ocx.FrameNum = value;
  198.             }
  199.         }
  200.         
  201.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  202.         [System.Runtime.InteropServices.DispIdAttribute(133)]
  203.         public virtual string WMode {
  204.             get {
  205.                 if ((this.ocx == null)) {
  206.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("WMode", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  207.                 }
  208.                 return this.ocx.WMode;
  209.             }
  210.             set {
  211.                 if ((this.ocx == null)) {
  212.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("WMode", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
  213.                 }
  214.                 this.ocx.WMode = value;
  215.             }
  216.         }
  217.         
  218.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  219.         [System.Runtime.InteropServices.DispIdAttribute(134)]
  220.         public virtual string SAlign {
  221.             get {
  222.                 if ((this.ocx == null)) {
  223.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SAlign", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  224.                 }
  225.                 return this.ocx.SAlign;
  226.             }
  227.             set {
  228.                 if ((this.ocx == null)) {
  229.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SAlign", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
  230.                 }
  231.                 this.ocx.SAlign = value;
  232.             }
  233.         }
  234.         
  235.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  236.         [System.Runtime.InteropServices.DispIdAttribute(135)]
  237.         public virtual bool Menu {
  238.             get {
  239.                 if ((this.ocx == null)) {
  240.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Menu", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  241.                 }
  242.                 return this.ocx.Menu;
  243.             }
  244.             set {
  245.                 if ((this.ocx == null)) {
  246.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Menu", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
  247.                 }
  248.                 this.ocx.Menu = value;
  249.             }
  250.         }
  251.         
  252.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  253.         [System.Runtime.InteropServices.DispIdAttribute(136)]
  254.         public virtual string Base {
  255.             get {
  256.                 if ((this.ocx == null)) {
  257.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Base", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  258.                 }
  259.                 return this.ocx.Base;
  260.             }
  261.             set {
  262.                 if ((this.ocx == null)) {
  263.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Base", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
  264.                 }
  265.                 this.ocx.Base = value;
  266.             }
  267.         }
  268.         
  269.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  270.         [System.Runtime.InteropServices.DispIdAttribute(137)]
  271.         public virtual string CtlScale {
  272.             get {
  273.                 if ((this.ocx == null)) {
  274.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("CtlScale", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  275.                 }
  276.                 return this.ocx.Scale;
  277.             }
  278.             set {
  279.                 if ((this.ocx == null)) {
  280.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("CtlScale", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
  281.                 }
  282.                 this.ocx.Scale = value;
  283.             }
  284.         }
  285.         
  286.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  287.         [System.Runtime.InteropServices.DispIdAttribute(138)]
  288.         public virtual bool DeviceFont {
  289.             get {
  290.                 if ((this.ocx == null)) {
  291.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("DeviceFont", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  292.                 }
  293.                 return this.ocx.DeviceFont;
  294.             }
  295.             set {
  296.                 if ((this.ocx == null)) {
  297.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("DeviceFont", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
  298.                 }
  299.                 this.ocx.DeviceFont = value;
  300.             }
  301.         }
  302.         
  303.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  304.         [System.Runtime.InteropServices.DispIdAttribute(139)]
  305.         public virtual bool EmbedMovie {
  306.             get {
  307.                 if ((this.ocx == null)) {
  308.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("EmbedMovie", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  309.                 }
  310.                 return this.ocx.EmbedMovie;
  311.             }
  312.             set {
  313.                 if ((this.ocx == null)) {
  314.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("EmbedMovie", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
  315.                 }
  316.                 this.ocx.EmbedMovie = value;
  317.             }
  318.         }
  319.         
  320.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  321.         [System.Runtime.InteropServices.DispIdAttribute(140)]
  322.         public virtual string BGColor {
  323.             get {
  324.                 if ((this.ocx == null)) {
  325.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("BGColor", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  326.                 }
  327.                 return this.ocx.BGColor;
  328.             }
  329.             set {
  330.                 if ((this.ocx == null)) {
  331.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("BGColor", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
  332.                 }
  333.                 this.ocx.BGColor = value;
  334.             }
  335.         }
  336.         
  337.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  338.         [System.Runtime.InteropServices.DispIdAttribute(141)]
  339.         public virtual string Quality2 {
  340.             get {
  341.                 if ((this.ocx == null)) {
  342.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Quality2", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  343.                 }
  344.                 return this.ocx.Quality2;
  345.             }
  346.             set {
  347.                 if ((this.ocx == null)) {
  348.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Quality2", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
  349.                 }
  350.                 this.ocx.Quality2 = value;
  351.             }
  352.         }
  353.         
  354.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  355.         [System.Runtime.InteropServices.DispIdAttribute(159)]
  356.         public virtual string SWRemote {
  357.             get {
  358.                 if ((this.ocx == null)) {
  359.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SWRemote", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  360.                 }
  361.                 return this.ocx.SWRemote;
  362.             }
  363.             set {
  364.                 if ((this.ocx == null)) {
  365.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SWRemote", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
  366.                 }
  367.                 this.ocx.SWRemote = value;
  368.             }
  369.         }
  370.         
  371.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  372.         [System.Runtime.InteropServices.DispIdAttribute(170)]
  373.         public virtual string FlashVars {
  374.             get {
  375.                 if ((this.ocx == null)) {
  376.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("FlashVars", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  377.                 }
  378.                 return this.ocx.FlashVars;
  379.             }
  380.             set {
  381.                 if ((this.ocx == null)) {
  382.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("FlashVars", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
  383.                 }
  384.                 this.ocx.FlashVars = value;
  385.             }
  386.         }
  387.         
  388.         [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  389.         [System.Runtime.InteropServices.DispIdAttribute(171)]
  390.         public virtual string AllowScriptAccess {
  391.             get {
  392.                 if ((this.ocx == null)) {
  393.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("AllowScriptAccess", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
  394.                 }
  395.                 return this.ocx.AllowScriptAccess;
  396.             }
  397.             set {
  398.                 if ((this.ocx == null)) {
  399.                     throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("AllowScriptAccess", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
  400.                 }
  401.                 this.ocx.AllowScriptAccess = value;
  402.             }
  403.         }
  404.         
  405.         public event _IShockwaveFlashEvents_FSCommandEventHandler FSCommand;
  406.         
  407.         public event _IShockwaveFlashEvents_OnProgressEventHandler OnProgress;
  408.         
  409.         public event _IShockwaveFlashEvents_OnReadyStateChangeEventHandler OnReadyStateChange;
  410.         
  411.         public virtual System.Double TGetPropertyAsNumber(string target, int property) {
  412.             if ((this.ocx == null)) {
  413.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("TGetPropertyAsNumber", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  414.             }
  415.             return this.ocx.TGetPropertyAsNumber(target, property);
  416.         }
  417.         
  418.         public virtual System.Double TGetPropertyNum(string target, int property) {
  419.             if ((this.ocx == null)) {
  420.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("TGetPropertyNum", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  421.             }
  422.             return this.ocx.TGetPropertyNum(target, property);
  423.         }
  424.         
  425.         public virtual void TSetPropertyNum(string target, int property, System.Double value) {
  426.             if ((this.ocx == null)) {
  427.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("TSetPropertyNum", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  428.             }
  429.             this.ocx.TSetPropertyNum(target, property, value);
  430.         }
  431.         
  432.         public virtual void TCallLabel(string target, string label) {
  433.             if ((this.ocx == null)) {
  434.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("TCallLabel", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  435.             }
  436.             this.ocx.TCallLabel(target, label);
  437.         }
  438.         
  439.         public virtual void TCallFrame(string target, int frameNum) {
  440.             if ((this.ocx == null)) {
  441.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("TCallFrame", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  442.             }
  443.             this.ocx.TCallFrame(target, frameNum);
  444.         }
  445.         
  446.         public virtual string TGetProperty(string target, int property) {
  447.             if ((this.ocx == null)) {
  448.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("TGetProperty", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  449.             }
  450.             return this.ocx.TGetProperty(target, property);
  451.         }
  452.         
  453.         public virtual void TSetProperty(string target, int property, string value) {
  454.             if ((this.ocx == null)) {
  455.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("TSetProperty", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  456.             }
  457.             this.ocx.TSetProperty(target, property, value);
  458.         }
  459.         
  460.         public virtual string GetVariable(string name) {
  461.             if ((this.ocx == null)) {
  462.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("GetVariable", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  463.             }
  464.             return this.ocx.GetVariable(name);
  465.         }
  466.         
  467.         public virtual void SetVariable(string name, string value) {
  468.             if ((this.ocx == null)) {
  469.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetVariable", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  470.             }
  471.             this.ocx.SetVariable(name, value);
  472.         }
  473.         
  474.         public virtual void TStopPlay(string target) {
  475.             if ((this.ocx == null)) {
  476.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("TStopPlay", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  477.             }
  478.             this.ocx.TStopPlay(target);
  479.         }
  480.         
  481.         public virtual void TPlay(string target) {
  482.             if ((this.ocx == null)) {
  483.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("TPlay", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  484.             }
  485.             this.ocx.TPlay(target);
  486.         }
  487.         
  488.         public virtual string TCurrentLabel(string target) {
  489.             if ((this.ocx == null)) {
  490.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("TCurrentLabel", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  491.             }
  492.             return this.ocx.TCurrentLabel(target);
  493.         }
  494.         
  495.         public virtual int TCurrentFrame(string target) {
  496.             if ((this.ocx == null)) {
  497.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("TCurrentFrame", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  498.             }
  499.             return this.ocx.TCurrentFrame(target);
  500.         }
  501.         
  502.         public virtual void TGotoLabel(string target, string label) {
  503.             if ((this.ocx == null)) {
  504.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("TGotoLabel", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  505.             }
  506.             this.ocx.TGotoLabel(target, label);
  507.         }
  508.         
  509.         public virtual void TGotoFrame(string target, int frameNum) {
  510.             if ((this.ocx == null)) {
  511.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("TGotoFrame", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  512.             }
  513.             this.ocx.TGotoFrame(target, frameNum);
  514.         }
  515.         
  516.         public virtual void LoadMovie(int layer, string url) {
  517.             if ((this.ocx == null)) {
  518.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("LoadMovie", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  519.             }
  520.             this.ocx.LoadMovie(layer, url);
  521.         }
  522.         
  523.         public virtual int FlashVersion() {
  524.             if ((this.ocx == null)) {
  525.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("FlashVersion", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  526.             }
  527.             return this.ocx.FlashVersion();
  528.         }
  529.         
  530.         public virtual bool FrameLoaded(int frameNum) {
  531.             if ((this.ocx == null)) {
  532.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("FrameLoaded", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  533.             }
  534.             return this.ocx.FrameLoaded(frameNum);
  535.         }
  536.         
  537.         public virtual int PercentLoaded() {
  538.             if ((this.ocx == null)) {
  539.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("PercentLoaded", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  540.             }
  541.             return this.ocx.PercentLoaded();
  542.         }
  543.         
  544.         public virtual bool IsPlaying() {
  545.             if ((this.ocx == null)) {
  546.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("IsPlaying", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  547.             }
  548.             return this.ocx.IsPlaying();
  549.         }
  550.         
  551.         public virtual int CurrentFrame() {
  552.             if ((this.ocx == null)) {
  553.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("CurrentFrame", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  554.             }
  555.             return this.ocx.CurrentFrame();
  556.         }
  557.         
  558.         public virtual void GotoFrame(int frameNum) {
  559.             if ((this.ocx == null)) {
  560.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("GotoFrame", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  561.             }
  562.             this.ocx.GotoFrame(frameNum);
  563.         }
  564.         
  565.         public virtual void StopPlay() {
  566.             if ((this.ocx == null)) {
  567.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("StopPlay", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  568.             }
  569.             this.ocx.StopPlay();
  570.         }
  571.         
  572.         public virtual void Rewind() {
  573.             if ((this.ocx == null)) {
  574.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Rewind", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  575.             }
  576.             this.ocx.Rewind();
  577.         }
  578.         
  579.         public virtual void Forward() {
  580.             if ((this.ocx == null)) {
  581.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Forward", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  582.             }
  583.             this.ocx.Forward();
  584.         }
  585.         
  586.         public virtual void Back() {
  587.             if ((this.ocx == null)) {
  588.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Back", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  589.             }
  590.             this.ocx.Back();
  591.         }
  592.         
  593.         public virtual void Stop() {
  594.             if ((this.ocx == null)) {
  595.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Stop", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  596.             }
  597.             this.ocx.Stop();
  598.         }
  599.         
  600.         public virtual void Play() {
  601.             if ((this.ocx == null)) {
  602.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Play", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  603.             }
  604.             this.ocx.Play();
  605.         }
  606.         
  607.         public virtual void Pan(int x, int y, int mode) {
  608.             if ((this.ocx == null)) {
  609.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Pan", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  610.             }
  611.             this.ocx.Pan(x, y, mode);
  612.         }
  613.         
  614.         public virtual void Zoom(int factor) {
  615.             if ((this.ocx == null)) {
  616.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Zoom", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  617.             }
  618.             this.ocx.Zoom(factor);
  619.         }
  620.         
  621.         public virtual void SetZoomRect(int left, int top, int right, int bottom) {
  622.             if ((this.ocx == null)) {
  623.                 throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetZoomRect", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
  624.             }
  625.             this.ocx.SetZoomRect(left, top, right, bottom);
  626.         }
  627.         
  628.         protected override void CreateSink() {
  629.             try {
  630.                 this.eventMulticaster = new AxShockwaveFlashEventMulticaster(this);
  631.                 this.cookie = new System.Windows.Forms.AxHost.ConnectionPointCookie(this.ocx, this.eventMulticaster, typeof(ShockwaveFlashObjects._IShockwaveFlashEvents));
  632.             }
  633.             catch (System.Exception ) {
  634.             }
  635.         }
  636.         
  637.         protected override void DetachSink() {
  638.             try {
  639.                 this.cookie.Disconnect();
  640.             }
  641.             catch (System.Exception ) {
  642.             }
  643.         }
  644.         
  645.         protected override void AttachInterfaces() {
  646.             try {
  647.                 this.ocx = ((ShockwaveFlashObjects.IShockwaveFlash)(this.GetOcx()));
  648.             }
  649.             catch (System.Exception ) {
  650.             }
  651.         }
  652.         
  653.         internal void RaiseOnFSCommand(object sender, _IShockwaveFlashEvents_FSCommandEvent e) {
  654.             if ((this.FSCommand != null)) {
  655.                 this.FSCommand(sender, e);
  656.             }
  657.         }
  658.         
  659.         internal void RaiseOnOnProgress(object sender, _IShockwaveFlashEvents_OnProgressEvent e) {
  660.             if ((this.OnProgress != null)) {
  661.                 this.OnProgress(sender, e);
  662.             }
  663.         }
  664.         
  665.         internal void RaiseOnOnReadyStateChange(object sender, _IShockwaveFlashEvents_OnReadyStateChangeEvent e) {
  666.             if ((this.OnReadyStateChange != null)) {
  667.                 this.OnReadyStateChange(sender, e);
  668.             }
  669.         }
  670.     }
  671.     
  672.     public delegate void _IShockwaveFlashEvents_FSCommandEventHandler(object sender, _IShockwaveFlashEvents_FSCommandEvent e);
  673.     
  674.     public class _IShockwaveFlashEvents_FSCommandEvent {
  675.         
  676.         public string command;
  677.         
  678.         public string args;
  679.         
  680.         public _IShockwaveFlashEvents_FSCommandEvent(string command, string args) {
  681.             this.command = command;
  682.             this.args = args;
  683.         }
  684.     }
  685.     
  686.     public delegate void _IShockwaveFlashEvents_OnProgressEventHandler(object sender, _IShockwaveFlashEvents_OnProgressEvent e);
  687.     
  688.     public class _IShockwaveFlashEvents_OnProgressEvent {
  689.         
  690.         public int percentDone;
  691.         
  692.         public _IShockwaveFlashEvents_OnProgressEvent(int percentDone) {
  693.             this.percentDone = percentDone;
  694.         }
  695.     }
  696.     
  697.     public delegate void _IShockwaveFlashEvents_OnReadyStateChangeEventHandler(object sender, _IShockwaveFlashEvents_OnReadyStateChangeEvent e);
  698.     
  699.     public class _IShockwaveFlashEvents_OnReadyStateChangeEvent {
  700.         
  701.         public int newState;
  702.         
  703.         public _IShockwaveFlashEvents_OnReadyStateChangeEvent(int newState) {
  704.             this.newState = newState;
  705.         }
  706.     }
  707.     
  708.     public class AxShockwaveFlashEventMulticaster : ShockwaveFlashObjects._IShockwaveFlashEvents {
  709.         
  710.         private AxShockwaveFlash parent;
  711.         
  712.         public AxShockwaveFlashEventMulticaster(AxShockwaveFlash parent) {
  713.             this.parent = parent;
  714.         }
  715.         
  716.         public virtual void FSCommand(string command, string args) {
  717.             _IShockwaveFlashEvents_FSCommandEvent fscommandEvent = new _IShockwaveFlashEvents_FSCommandEvent(command, args);
  718.             this.parent.RaiseOnFSCommand(this.parent, fscommandEvent);
  719.         }
  720.         
  721.         public virtual void OnProgress(int percentDone) {
  722.             _IShockwaveFlashEvents_OnProgressEvent onprogressEvent = new _IShockwaveFlashEvents_OnProgressEvent(percentDone);
  723.             this.parent.RaiseOnOnProgress(this.parent, onprogressEvent);
  724.         }
  725.         
  726.         public virtual void OnReadyStateChange(int newState) {
  727.             _IShockwaveFlashEvents_OnReadyStateChangeEvent onreadystatechangeEvent = new _IShockwaveFlashEvents_OnReadyStateChangeEvent(newState);
  728.             this.parent.RaiseOnOnReadyStateChange(this.parent, onreadystatechangeEvent);
  729.         }
  730.     }
  731. }
  732.