Call Flash
-
Hi ! I wont to call a flash exe inside a form I've created. How can I do this. (ps: I've heard there is a ocx that can be added but i dont know the name) Thanx in advance
-
Hi ! I wont to call a flash exe inside a form I've created. How can I do this. (ps: I've heard there is a ocx that can be added but i dont know the name) Thanx in advance
Is it an exe you want to call? if so just use
System.Diagnostics.Process.Start
if it's a swf file or a dcr (i think that's the director extension) then there are a couple of ocx's available "Shockwave flash object" which is a file called flash.ocx and "Shockwave activex control" which is a file called SwDir.dll depending on the type of movie you want to show, you should add these to your project and use as required. -
Is it an exe you want to call? if so just use
System.Diagnostics.Process.Start
if it's a swf file or a dcr (i think that's the director extension) then there are a couple of ocx's available "Shockwave flash object" which is a file called flash.ocx and "Shockwave activex control" which is a file called SwDir.dll depending on the type of movie you want to show, you should add these to your project and use as required.Sorry my mistake I want to call a swf not and exe .... Thanx for the reply
-
Is it an exe you want to call? if so just use
System.Diagnostics.Process.Start
if it's a swf file or a dcr (i think that's the director extension) then there are a couple of ocx's available "Shockwave flash object" which is a file called flash.ocx and "Shockwave activex control" which is a file called SwDir.dll depending on the type of movie you want to show, you should add these to your project and use as required.Sorry my mistake I want to call a *.swf file... not an *.exe file. Thanx for the reply.
-
Hi ! I wont to call a flash exe inside a form I've created. How can I do this. (ps: I've heard there is a ocx that can be added but i dont know the name) Thanx in advance
-Bring the Toolbox Window, right-click and choose Customize Toolbox -Select "Shockwave Flash Object" from the COM components tab. This will automagically build all interop libraries for the ActiveX control. -Drop the control on your Form -Depending on whether you want to dynamically set the .swf url or not : -Static url : bring the Properties Window. On the top is a "Property pages" button. Set the url there. This will show the .swf movie at design-time. -Dynamic url : once you have dropped the control, it creates a new member in your form, for instance axShockwaveFlash1. Just add this code : axShockwaveFlash1.Movie = "http://....swf";