vbgen Level: Moderator Registered: 10-10-2002 Posts: 876
Re: How to run the .swf in vb6
First, you'll need the ActiveX Shockwave Control, usually named as Flash.ocx.
next, you have to tell us what you need,..
we can play swf files in a vb project(program) by instanciating the flash control on a form and then specifying the location of the file, will it be playing at the start(which is when the form loads) and others....
____________________________
Been busy trying to take a second degree <--it's not working out...
30-09-2003 at 11:54 AM
|
vbgen Level: Moderator Registered: 10-10-2002 Posts: 876
Re: How to run the .swf in vb6
well... if your intention is to merely play the flash file, then i guess this thread ends here.
otherwise... we'd have to get into FSCOMMANDS and other stuff, eh?
____________________________
Been busy trying to take a second degree <--it's not working out...
30-09-2003 at 03:33 PM
|
sathishgforum Level: Guest
Re: How to run the .swf in vb6
Hi VbGen,
I think the FSCOMMANDS are in FlashScript.Thanks to your snippets.
I would like to tell you more about my questions in precise way.I generated the XML through VB, through the XML file i have to generate the flash file(Anyway i written the coding part related to that xml) automatically and convert to .swf file.
Later that .swf file has to play in the flash.ocx in the vb environment.
N.B: The flash part (i written the code part related to the xml file and stored it as .fla but automatically that .fla has to run and created the .swf file) on behind the screen and finally that .swf file has to play in the vb environment.
Any idea about this preoblem,just tell your suggestion,snippets or peice-of-code to go further.Thanks in advance.
Cheers
SATHISH KUMAR G
06-10-2003 at 10:24 AM
|
vbgen Level: Moderator Registered: 10-10-2002 Posts: 876
Re: How to run the .swf in vb6
i wouldn't know if it's possible to run the .fla file and have it create its .swf version, although send keys method may work, but if you want it to happen behind screen(invisible), i don't think that'll work..
i do think that loading a .swf into a flash control in a vb program is possible.
so far, unless you can compromise the scenario you want, i don't think you can go any further..
____________________________
Been busy trying to take a second degree <--it's not working out...
06-10-2003 at 04:27 PM
|
Keithuk Level: Professor Registered: 02-11-2006 Posts: 73
Re: How to run the .swf in vb6
quote:vbgen wrote:
i do think that loading a .swf into a flash control in a vb program is possible.
It is possible, this is how I play swf files. You just need flash.ocx or flash8.ocx depending on what version you have installed.
SWF.LoadMovie 1, App.Path & "\Movie.swf"
SWF.Movie = App.Path & "\Movie.swf"
SWF.Playing = True
'If you want to
'SWF.GotoFrame 1
Or you can use a CommonDialog to load the swf files.
I've been programming with VB for 14 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
Include the ActiveX Control into your project (include the Flash player).Add that activex control to your form, then to that object try including the source and then run the form..