|
-
Aug 23rd, 2006, 07:42 AM
#1
Thread Starter
Fanatic Member
embedMovie property
I want to make my shockwave movie part of my exe, so I set my shockwave flash control's embedMovie property to true and made my exe, but the swf doesn't appear to be part of the exe.
I assume proof that the swf was embedded properly would be immediatley appearent if you could see the swf playing. It my case it is not,
what am I missing?
He who never made a mistake never made a discovery?
-
Aug 23rd, 2006, 11:38 AM
#2
Re: embedMovie property
AFAIK, the property is not for VB to embedd it as a resource bt perhaps as a web page property. Look at my code example on playing a flash movie in vb6 with the shockwave control and see if it helps. 
http://vbforums.com/showthread.php?t=328943&
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 
-
Aug 23rd, 2006, 12:27 PM
#3
Thread Starter
Fanatic Member
Re: embedMovie property
thats exactly what I have, well almost.
VB Code:
Call ShockwaveFlash1.LoadMovie(1, App.Path & "\XML_FLV_player.swf")
ShockwaveFlash1.Movie = App.Path & "\XML_FLV_player.swf"
Me.ShockwaveFlash1.GotoFrame (1)
I guess I was looking to include the swf as part of the exe and not have to always include the swf on a cd.
However, I use my swf as holder for playing flv's and I have yet to find a way to play a new flv without the sound of the previous flv continuing to play in the background.
I have a very simple Dir+Drive combo that lets you select an flv, that file name is then written to an XML file that the swf reads. The XML file is getting updated but the swf is not for the reason I metioned above.
I don't know of any other way to get the swf to play the flv. Any ideas?
He who never made a mistake never made a discovery?
-
Aug 23rd, 2006, 12:29 PM
#4
Re: embedMovie property
You could add the swf as a VB resource of Custom type. Then when you run your app you can extract it to the filesystem and not have to worry about distributing it. It will be embedded in the exe itself.
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 
-
Aug 23rd, 2006, 01:08 PM
#5
Thread Starter
Fanatic Member
Re: embedMovie property
I am not sure how to do that. You mean like a reference object?
He who never made a mistake never made a discovery?
-
Aug 23rd, 2006, 01:14 PM
#6
Re: embedMovie property
No, its an embedded resource file that gets compiled into the exe. You can not use the file in your program until after you extract it to disk.
Check my post on resource files.
http://vbforums.com/showthread.php?t=320041
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 
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
|