Playing Flash swf in the form?
Hi,
I did put the flash movie playing in the Splash form while waiting for the program load, but the movie just not playing, it display it on the form, but the animation not moving.
Here is the code
Private Sub Form_Load()
ShockwaveFlash1.LoadMovie (0, "C:\Flash.swf")
ShockwaveFlash1.Visible = True
ShockwaveFlash1.Play
End Sub
Thanks!
Re: Playing Flash swf in the form?
Check out my code example in this thread. :)
http://vbforums.com/showthread.php?t=328943&
Re: Playing Flash swf in the form?
Quote:
Originally Posted by RobDog888
Thanks!
but the problem is the movie don't have a chance to play then the other proccess start.. If nothing to do next after the movie shows then it will play perfectly, but it is in splash screen and that is why there are some task start at the background. Kind like need multithreaded to make this work.
Re: Playing Flash swf in the form?
I dont recall the swf being modal. Perhaps the 0 in your Loadmovie line of code is setting that?
Re: Playing Flash swf in the form?
Put a few DoEvents in your other Form that your trying to load at the same time. ;)
This is how I play swf movies.
VB Code:
SWF.LoadMovie 1, App.Path & "\Movie.swf"
SWF.Movie = App.Path & "\Movie.swf"
SWF.Playing = True
'If you want to
'SWF.GotoFrame 1
Re: Playing Flash swf in the form?
Quote:
Originally Posted by Keithuk
Put a few
DoEvents in your other Form that your trying to load at the same time. ;)
This is how I play swf movies.
VB Code:
SWF.LoadMovie 1, App.Path & "\Movie.swf"
SWF.Movie = App.Path & "\Movie.swf"
SWF.Playing = True
'If you want to
'SWF.GotoFrame 1
Problem is I'm not trying to load other form at the same time. after the splash screen comes up then load the swf movie then it start the long process at the background which is no UI, just pulling data from mainframe. It takes about 1 mintue to finish the process then unload the splash screen and main form comes up.
What I want is when processing the data, let the swf movie playing on the splash screen at the same time.
Thanks!
Re: Playing Flash swf in the form?
Quote:
Originally Posted by mapperkids
Problem is I'm not trying to load other form at the same time. after the splash screen comes up then load the swf movie then it start the long process at the background which is no UI, just pulling data from mainframe. It takes about 1 mintue to finish the process then unload the splash screen and main form comes up.
What I want is when processing the data, let the swf movie playing on the splash screen at the same time.
Thanks!
I did tried to convert the swf to animated GIF and create a picture box in the splash screen then insert the GIF in it, it still not working, ( not animated)
Re: Playing Flash swf in the form?
Quote:
Originally Posted by mapperkids
after the splash screen comes up then load the swf movie then it start the long process at the background which is no UI, just pulling data from mainframe.
Try some DoEvents in this long process.