borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (3d graphics in VB)Next Topic (I Need Someone To Look At This Code, and help by adding bit's to it, making it better and better.) New Topic New Poll Post Reply
AndreaVB Forum : Multimedia : How to run the .swf in vb6
Poster Message
sathishgforum
Level: Guest


icon How to run the .swf in vb6

Hi Friends!

  Howz the day? Can anyone came across of this situation before? I want to run the .swf(which is already in the specified folder) in the VB6.

What are all the components to be included and the neccesary things for the above task.

30-09-2003 at 11:02 AM
| Quote Reply
vbgen
Level: Moderator

Registered: 10-10-2002
Posts: 876
icon 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
View Profile Send Email to User Show All Posts | Quote Reply
vbgen
Level: Moderator

Registered: 10-10-2002
Posts: 876
icon 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
View Profile Send Email to User Show All Posts | Quote Reply
sathishgforum
Level: Guest

icon 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
| Quote Reply
vbgen
Level: Moderator

Registered: 10-10-2002
Posts: 876
icon 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
View Profile Send Email to User Show All Posts | Quote Reply
Keithuk
Level: Graduate


Registered: 02-11-2006
Posts: 9
icon 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.  

[Edited by Keithuk on 03-11-2006 at 12:43 PM GMT]

____________________________
I've been programming with VB for 13 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
03-11-2006 at 12:43 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : Multimedia : How to run the .swf in vb6
Previous Topic (3d graphics in VB)Next Topic (I Need Someone To Look At This Code, and help by adding bit's to it, making it better and better.) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder