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.
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)
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. ;)