I have tried looking at c#/j#//Vb# code generated by vs2003.net
but I get stuck trying to figure out what datatype
AxShockwaveFlashObjects.AxShockwaveFlash is??
i tried private var swf:AxShockwaveFlashObjects.AxShockwaveFlash;
with no luck...
I cant find any documentation on it anywhere on the internet,
please help!
--
Jarrad Hope
jhope [a.t] lungshrimp , com
public class swfWindow extends System.Windows.Forms.Form {
private var mrSwf : Object;
//private var btnProgressControl : System.Windows.Forms.Button;
function swfWindow() {
this.mrSwf = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
/*print(mrSwf.FlashVersion());
mrSwf.Enabled = true;
mrSwf.Location = new System.Drawing.Point(96,40);
mrSwf.Size = new System.Drawing.Size(192,192);
mrSwf.Name = "mrSwf";
mrSwf.TabIndex = 0;
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(288, 198);*/
//this.Controls.Add(mrSwf);
//mrSwf.Movie=System.IO.Path.Combine(Directory.GetCurrentDirectory(),"test.swf");
// mrSwf.RegisterCallback("echo",new DgEcho(Echo));
this.Controls.Add(this.mrSwf); // <- causes crash?
}
}
var window : swfWindow = new swfWindow();
window.ShowDialog();
If you use the ActiveXObject constructor, you will get back a loosely-typed
object.
If you want a strongly-typed object, you should use the AXImp command-line
tool to generate a wrapper for you.
Peter
--
Peter Torr - http://blogs.msdn.com/ptorr
HD DVD Program Manager