|
-
Jun 16th, 2008, 08:04 PM
#1
Thread Starter
Member
ShockwaveFlash Component Help
I have a shockwave flash component in my form that I want to load swfs to from a URL (while also setting a value to the swf).
Here is an example of what it is like with the swf file in a directory:
Code:
ShockwaveFlash1.LoadMovie 2, ("C:\flash.swf?foo=" + Label1.Caption)
That code works fine for me, but instead of having flash files in a directory, I felt it would be easier to upload the swf file to a URL so vb can access it through that, this is what I tried however it did not work:
Code:
ShockwaveFlash1.LoadMovie 2, ("mydomain.com/flash.swf?foo=" + Label1.Caption)
Since that did not work, I then tried attaching the swf file to another shockwave flash component in my form so that the first shockwave flash component would load that. This is the coding I had.
Code:
ShockwaveFlash2.Movie = ("mydomain.com/flash.swf?foo=" + Label1.Caption)
And that did not work, what I found strange was that I was able to get it to work as long as I set a custom value to it, for example, the following code would work fine:
Code:
ShockwaveFlash2.Movie = ("mydomain.com/flash.swf?foo=100")
But if I try to set the variable to a label's caption it doesn't work. Please help me with this.
-
Jun 17th, 2008, 12:17 AM
#2
Re: ShockwaveFlash Component Help
Try not using the plus sign as its used to do a calculation and not a concatenation which an ampersand is used for. "&".
Code:
ShockwaveFlash2.Movie = ("mydomain.com/flash.swf?foo=" & Label1.Caption)
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 
-
Jun 17th, 2008, 06:11 AM
#3
Re: ShockwaveFlash Component Help
ShockwaveFlash files aren't that big why don't you put them into a Resource file extract them to a temp file and play them from there, I've done that with ease.
You are assuming that the user has an internet connection, don't assume.
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
|