[ToolboxItem(true), DesignTimeVisible(true), Clsid("{d27cdb6e-ae6d-11cf-96b8-444553540000}")]
public class AxShockwaveFlash : AxHost
{
// Fields
private AxHost.ConnectionPointCookie cookie;
private AxShockwaveFlashEventMulticaster eventMulticaster;
private IShockwaveFlash ocx;
// Events
public event _IShockwaveFlashEvents_FlashCallEventHandler FlashCall;
public event _IShockwaveFlashEvents_FSCommandEventHandler FSCommand;
public event _IShockwaveFlashEvents_OnProgressEventHandler OnProgress;
public event _IShockwaveFlashEvents_OnReadyStateChangeEventHandler OnReadyStateChange;
// Methods
public AxShockwaveFlash() : base("d27cdb6e-ae6d-11cf-96b8-444553540000")
{
}
protected override void AttachInterfaces()
{
try
{
this.ocx = (IShockwaveFlash) base.GetOcx();
}
catch (Exception)
{
}
}
public virtual void Back()
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("Back", 0);
}
this.ocx.Back();
}
public virtual string CallFunction(string request) =>
this.ocx?.CallFunction(request);
protected override void CreateSink()
{
try
{
this.eventMulticaster = new AxShockwaveFlashEventMulticaster(this);
this.cookie = new AxHost.ConnectionPointCookie(this.ocx, this.eventMulticaster, typeof(_IShockwaveFlashEvents));
}
catch (Exception)
{
}
}
public virtual int CurrentFrame() =>
this.ocx?.CurrentFrame();
protected override void DetachSink()
{
try
{
this.cookie.Disconnect();
}
catch (Exception)
{
}
}
public virtual void DisableLocalSecurity()
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("DisableLocalSecurity", 0);
}
this.ocx.DisableLocalSecurity();
}
public virtual void EnforceLocalSecurity()
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("EnforceLocalSecurity", 0);
}
this.ocx.EnforceLocalSecurity();
}
public virtual int FlashVersion() =>
this.ocx?.FlashVersion();
public virtual void Forward()
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("Forward", 0);
}
this.ocx.Forward();
}
public virtual bool FrameLoaded(int frameNum) =>
this.ocx?.FrameLoaded(frameNum);
public virtual string GetVariable(string name) =>
this.ocx?.GetVariable(name);
public virtual void GotoFrame(int frameNum)
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("GotoFrame", 0);
}
this.ocx.GotoFrame(frameNum);
}
public virtual bool IsPlaying() =>
this.ocx?.IsPlaying();
public virtual void LoadMovie(int layer, string url)
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("LoadMovie", 0);
}
this.ocx.LoadMovie(layer, url);
}
public virtual void Pan(int x, int y, int mode)
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("Pan", 0);
}
this.ocx.Pan(x, y, mode);
}
public virtual int PercentLoaded() =>
this.ocx?.PercentLoaded();
public virtual void Play()
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("Play", 0);
}
this.ocx.Play();
}
internal void RaiseOnFlashCall(object sender, _IShockwaveFlashEvents_FlashCallEvent e)
{
if (this.FlashCall != null)
{
this.FlashCall(sender, e);
}
}
internal void RaiseOnFSCommand(object sender, _IShockwaveFlashEvents_FSCommandEvent e)
{
if (this.FSCommand != null)
{
this.FSCommand(sender, e);
}
}
internal void RaiseOnOnProgress(object sender, _IShockwaveFlashEvents_OnProgressEvent e)
{
if (this.OnProgress != null)
{
this.OnProgress(sender, e);
}
}
internal void RaiseOnOnReadyStateChange(object sender, _IShockwaveFlashEvents_OnReadyStateChangeEvent e)
{
if (this.OnReadyStateChange != null)
{
this.OnReadyStateChange(sender, e);
}
}
public virtual void Rewind()
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("Rewind", 0);
}
this.ocx.Rewind();
}
public virtual void SetReturnValue(string returnValue)
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("SetReturnValue", 0);
}
this.ocx.SetReturnValue(returnValue);
}
public virtual void SetVariable(string name, string value)
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("SetVariable", 0);
}
this.ocx.SetVariable(name, value);
}
public virtual void SetZoomRect(int left, int top, int right, int bottom)
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("SetZoomRect", 0);
}
this.ocx.SetZoomRect(left, top, right, bottom);
}
public virtual void Stop()
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("Stop", 0);
}
this.ocx.Stop();
}
public virtual void StopPlay()
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("StopPlay", 0);
}
this.ocx.StopPlay();
}
public virtual void TCallFrame(string target, int frameNum)
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("TCallFrame", 0);
}
this.ocx.TCallFrame(target, frameNum);
}
public virtual void TCallLabel(string target, string label)
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("TCallLabel", 0);
}
this.ocx.TCallLabel(target, label);
}
public virtual int TCurrentFrame(string target) =>
this.ocx?.TCurrentFrame(target);
public virtual string TCurrentLabel(string target) =>
this.ocx?.TCurrentLabel(target);
public virtual string TGetProperty(string target, int property) =>
this.ocx?.TGetProperty(target, property);
public virtual double TGetPropertyAsNumber(string target, int property) =>
this.ocx?.TGetPropertyAsNumber(target, property);
public virtual double TGetPropertyNum(string target, int property) =>
this.ocx?.TGetPropertyNum(target, property);
public virtual void TGotoFrame(string target, int frameNum)
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("TGotoFrame", 0);
}
this.ocx.TGotoFrame(target, frameNum);
}
public virtual void TGotoLabel(string target, string label)
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("TGotoLabel", 0);
}
this.ocx.TGotoLabel(target, label);
}
public virtual void TPlay(string target)
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("TPlay", 0);
}
this.ocx.TPlay(target);
}
public virtual void TSetProperty(string target, int property, string value)
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("TSetProperty", 0);
}
this.ocx.TSetProperty(target, property, value);
}
public virtual void TSetPropertyNum(string target, int property, double value)
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("TSetPropertyNum", 0);
}
this.ocx.TSetPropertyNum(target, property, value);
}
public virtual void TStopPlay(string target)
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("TStopPlay", 0);
}
this.ocx.TStopPlay(target);
}
public virtual void Zoom(int factor)
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("Zoom", 0);
}
this.ocx.Zoom(factor);
}
// Properties
[DesignerSerializationVisibility(0), DispId(0x79)]
public virtual int AlignMode
{
get =>
this.ocx?.AlignMode;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("AlignMode", 2);
}
this.ocx.AlignMode = value;
}
}
[DesignerSerializationVisibility(0), DispId(0xc9)]
public virtual string AllowNetworking
{
get =>
this.ocx?.AllowNetworking;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("AllowNetworking", 2);
}
this.ocx.AllowNetworking = value;
}
}
[DesignerSerializationVisibility(0), DispId(0xab)]
public virtual string AllowScriptAccess
{
get =>
this.ocx?.AllowScriptAccess;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("AllowScriptAccess", 2);
}
this.ocx.AllowScriptAccess = value;
}
}
[DesignerSerializationVisibility(0), DispId(0x7b)]
public virtual int BackgroundColor
{
get =>
this.ocx?.BackgroundColor;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("BackgroundColor", 2);
}
this.ocx.BackgroundColor = value;
}
}
[DispId(0x88), DesignerSerializationVisibility(0)]
public virtual string Base
{
get =>
this.ocx?.Base;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("Base", 2);
}
this.ocx.Base = value;
}
}
[DispId(140), DesignerSerializationVisibility(0)]
public virtual string BGColor
{
get =>
this.ocx?.BGColor;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("BGColor", 2);
}
this.ocx.BGColor = value;
}
}
[DispId(0x89), DesignerSerializationVisibility(0)]
public virtual string CtlScale
{
get =>
this.ocx?.Scale;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("CtlScale", 2);
}
this.ocx.Scale = value;
}
}
[DispId(0x8a), DesignerSerializationVisibility(0)]
public virtual bool DeviceFont
{
get =>
this.ocx?.DeviceFont;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("DeviceFont", 2);
}
this.ocx.DeviceFont = value;
}
}
[DesignerSerializationVisibility(0), DispId(0x8b)]
public virtual bool EmbedMovie
{
get =>
this.ocx?.EmbedMovie;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("EmbedMovie", 2);
}
this.ocx.EmbedMovie = value;
}
}
[DispId(170), DesignerSerializationVisibility(0)]
public virtual string FlashVars
{
get =>
this.ocx?.FlashVars;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("FlashVars", 2);
}
this.ocx.FlashVars = value;
}
}
[DispId(0x6b), DesignerSerializationVisibility(0)]
public virtual int FrameNum
{
get =>
this.ocx?.FrameNum;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("FrameNum", 2);
}
this.ocx.FrameNum = value;
}
}
[DesignerSerializationVisibility(0), DispId(0xbf)]
public virtual object InlineData
{
get =>
this.ocx?.InlineData;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("InlineData", 2);
}
this.ocx.InlineData = value;
}
}
[DispId(0x6a), DesignerSerializationVisibility(0)]
public virtual bool Loop
{
get =>
this.ocx?.Loop;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("Loop", 2);
}
this.ocx.Loop = value;
}
}
[DesignerSerializationVisibility(0), DispId(0x87)]
public virtual bool Menu
{
get =>
this.ocx?.Menu;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("Menu", 2);
}
this.ocx.Menu = value;
}
}
[DesignerSerializationVisibility(0), DispId(0x66)]
public virtual string Movie
{
get =>
this.ocx?.Movie;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("Movie", 2);
}
this.ocx.Movie = value;
}
}
[DispId(190), DesignerSerializationVisibility(0)]
public virtual string MovieData
{
get =>
this.ocx?.MovieData;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("MovieData", 2);
}
this.ocx.MovieData = value;
}
}
[DispId(0x7d), DesignerSerializationVisibility(0)]
public virtual bool Playing
{
get =>
this.ocx?.Playing;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("Playing", 2);
}
this.ocx.Playing = value;
}
}
[DesignerSerializationVisibility(0), DispId(0xc2)]
public virtual bool Profile
{
get =>
this.ocx?.Profile;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("Profile", 2);
}
this.ocx.Profile = value;
}
}
[DispId(0xc3), DesignerSerializationVisibility(0)]
public virtual string ProfileAddress
{
get =>
this.ocx?.ProfileAddress;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("ProfileAddress", 2);
}
this.ocx.ProfileAddress = value;
}
}
[DispId(0xc4), DesignerSerializationVisibility(0)]
public virtual int ProfilePort
{
get =>
this.ocx?.ProfilePort;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("ProfilePort", 2);
}
this.ocx.ProfilePort = value;
}
}
[DispId(0x69), DesignerSerializationVisibility(0)]
public virtual int Quality
{
get =>
this.ocx?.Quality;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("Quality", 2);
}
this.ocx.Quality = value;
}
}
[DesignerSerializationVisibility(0), DispId(0x8d)]
public virtual string Quality2
{
get =>
this.ocx?.Quality2;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("Quality2", 2);
}
this.ocx.Quality2 = value;
}
}
[DispId(-525), DesignerSerializationVisibility(0)]
public virtual int ReadyState =>
this.ocx?.ReadyState;
[DesignerSerializationVisibility(0), DispId(0x86)]
public virtual string SAlign
{
get =>
this.ocx?.SAlign;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("SAlign", 2);
}
this.ocx.SAlign = value;
}
}
[DispId(120), DesignerSerializationVisibility(0)]
public virtual int ScaleMode
{
get =>
this.ocx?.ScaleMode;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("ScaleMode", 2);
}
this.ocx.ScaleMode = value;
}
}
[DesignerSerializationVisibility(0), DispId(0xc0)]
public virtual bool SeamlessTabbing
{
get =>
this.ocx?.SeamlessTabbing;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("SeamlessTabbing", 2);
}
this.ocx.SeamlessTabbing = value;
}
}
[DispId(0x9f), DesignerSerializationVisibility(0)]
public virtual string SWRemote
{
get =>
this.ocx?.SWRemote;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("SWRemote", 2);
}
this.ocx.SWRemote = value;
}
}
[DispId(0x7c), DesignerSerializationVisibility(0)]
public virtual int TotalFrames =>
this.ocx?.TotalFrames;
[DispId(0x85), DesignerSerializationVisibility(0)]
public virtual string WMode
{
get =>
this.ocx?.WMode;
set
{
if (this.ocx == null)
{
throw new AxHost.InvalidActiveXStateException("WMode", 2);
}
this.ocx.WMode = value;
}
}
}
Collapse Methods