-
runnin flash in visual basic .NET
I can't find any documentation in VB Help regarding shockwave/flash swf files.
I'm trying to run a flash.swf file in Visual Basic .NET.
The code below produces an exeption error "System.null reference exeption microsoft dll". I know the basic syntax has got to be all wrong.
I'm very new at VB, can someone help or direct me to the proper MS forum to post the question or at least where I might find documentation?
Thank You
iaustin
====== code starts here====
Private Sub AxShockwaveFlash1_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AxShockwaveFlash2.Enter
Dim writerscreen As ShockwaveFlashObjects.IShockwaveFlash
writerscreen = writerscreen.swf
Call AxShockwaveFlash1.LoadMovie(0, writerscreen.swf)
End Sub
-
say no more
I suspect this may be moved to scripting and backend....
To me it looks like you're refferincing a class that doesn't exist because you're missing a .dll in your bin folder:
Dim writerscreen As ShockwaveFlashObjects.IShockwaveFlash
Are you building this as an exe or are you building an asp.net application????
-
I'm building it as an executable.
-
Retired Mod
I don't know how useful this is but maybe it will help you...
http://www.macromedia.com/devnet/mx/...s/flash_vb.pdf
-
There are 2 ways to set the swf in a VB.net form:
1) Put the shockwave-flash ocx on your form and set the path to the movie in the properties field.
2) Set the path in the code, like:
Private Sub anything...
Me.Flash1.LoadMovie(0, Path)
End Sub
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
|