Results 1 to 6 of 6

Thread: embedMovie property

  1. #1

    Thread Starter
    Fanatic Member Navarone's Avatar
    Join Date
    Jun 2003
    Location
    Akron, Ohio USA
    Posts
    740

    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?

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  3. #3

    Thread Starter
    Fanatic Member Navarone's Avatar
    Join Date
    Jun 2003
    Location
    Akron, Ohio USA
    Posts
    740

    Re: embedMovie property

    thats exactly what I have, well almost.
    VB Code:
    1. Call ShockwaveFlash1.LoadMovie(1, App.Path & "\XML_FLV_player.swf")
    2.     ShockwaveFlash1.Movie = App.Path & "\XML_FLV_player.swf"
    3.     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?

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  5. #5

    Thread Starter
    Fanatic Member Navarone's Avatar
    Join Date
    Jun 2003
    Location
    Akron, Ohio USA
    Posts
    740

    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?

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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
  •  



Click Here to Expand Forum to Full Width