How can I run a Macromedia Flash Movie File in Visual Basic 6.0?

  • Thread starter Thread starter Mostafa A
  • Start date Start date
M

Mostafa A

Guest
Dear Friend

I have designed a Movie File in Macromedia Flash 8 Professional which has got extension .swf

Now I want to run that file from Visual Basic 6.0 by clicking on a command button.
I have added the component “ShockwaveFlash1” in Visual Basic 6.0 and have placed a command button and the “ShockwaveFlash1” tool on a form.

Please help by providing the necessary coding to run that file from VB.


Regards
Mostafa
 
'add command button and call it CmdPlayFlash

' write this code in Click Event


ShockwaveFlash1.Movie = "FlashFile.swf"
ShockwaveFlash1.Play
 
Back
Top