Re: Any way to stop flash click event when swf is embeded in vb form?
- From: Mike Williams <gagamomo@xxxxxxxxxxx>
- Date: Sat, 1 Aug 2009 10:12:16 -0700 (PDT)
On 1 Aug, 13:42, "Mojo" <ple...@xxxxxxxxxxxxx> wrote:
Hi Mike . . . Apols, yes it is the Shockwave Flash component.
Although I really haven't got a clue myself at the mo, I've
done the following:
[instructions to insert the ocx onto a Form snipped]
3) In the Form Load, add the following code:
Form1.ScaleMode = vbPixels
Flash.Movie = App.Path & "\anim.swf"
4) When you run the app the flash anim will play in this object.
Okay, I've done that and I've changed the name to a .swf file that
actually exists on my own machine, but the Flash movie did not play.
All that happend was that the Flash control on the Form changed to a
different solid colour but no image showed and no animation or
anything played, there was just a static solid coloured background. I
tried it with a few different .swf files on my machine but none of
them played. Each one just showed a different solid background colour.
After some checking on Google I discovered (I think?) that the VB6
Shockwaver Flash Player Control will not play .swf files produced by
Flash6 and later unless you install something called FlashMX, which
can itself apparently cause some problems so I didn't bother looking
for it. I did manage to find a .flv file that would play (so it was
presumably created by a version earlier than Flash7?) but it did not
show any "ad" when I clicked it so presumably that sort of behaviour
(the showing of an ad or whatever) is programmed into the .flv file
itself?
As I've said, I know nothing at all about Flash movies or about what
kind of things and interactions they can contain but I'm fairly sure
that if I had a .flv file that does exhibit the behaviour you
described in your original post then I would be able to stop it
reacting to the mouse button in that way, although the only method I
can think of that would probably work would also stop it recating to
the mouse button completely, so if that is okay then I'll give it a
go. However, in order to sort it out I would need to have a .swf file
that behaves in exactly the same way as the one you described in your
initial question. Preferably of course it would be ideal to have an
exact copy of the same .flv file that you are using yourself. Perhaps
you can post it to a web page from where I can download it, or perhaps
you can post a link to wherever it was you obtained it from, or even
email it to me (if you want to do that then let me know and I'll set
up a suitable temporary email address where you can send it).
Mike
.
- Follow-Ups:
- Re: Any way to stop flash click event when swf is embeded in vb form?
- From: Mike Williams
- Re: Any way to stop flash click event when swf is embeded in vb form?
- References:
- Prev by Date: Re: Any way to stop flash click event when swf is embeded in vb form?
- Next by Date: Re: Any way to stop flash click event when swf is embeded in vb form?
- Previous by thread: Re: Any way to stop flash click event when swf is embeded in vb form?
- Next by thread: Re: Any way to stop flash click event when swf is embeded in vb form?
- Index(es):
Relevant Pages
|