|
-
Oct 26th, 2006, 10:46 AM
#1
Thread Starter
Hyperactive Member
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!
-
Oct 26th, 2006, 11:56 AM
#2
Re: Playing Flash swf in the form?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 26th, 2006, 12:28 PM
#3
Thread Starter
Hyperactive Member
Re: Playing Flash swf in the form?
 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.
-
Oct 26th, 2006, 12:34 PM
#4
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?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 26th, 2006, 02:19 PM
#5
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
Last edited by Keithuk; Oct 26th, 2006 at 02:24 PM.
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
-
Oct 26th, 2006, 04:45 PM
#6
Thread Starter
Hyperactive Member
Re: Playing Flash swf in the form?
 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!
-
Oct 26th, 2006, 04:46 PM
#7
Thread Starter
Hyperactive Member
Re: Playing Flash swf in the form?
 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)
-
Oct 26th, 2006, 05:36 PM
#8
Re: Playing Flash swf in the form?
 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.
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|