Results 1 to 5 of 5

Thread: playing flash in VB .NET Helppp!

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2003
    Posts
    2

    playing flash in VB .NET Helppp!

    Hello,

    The code I'm using to play a flash swf movie in VB . NET is...

    Dim vFile = "di7" & "." & "swf"
    Private myTarget = "Application.StartupPath" & vFile

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    PrintStartupPath() 'worsk fine
    Console.WriteLine(vFile)
    AxShockwaveFlash1.LoadMovie(0, myTarget)
    End Sub

    Error received...

    An unhandled exception of type 'System.NullReferenceException' occurred in axinterop.shockwaveflashobjects.dll

    Can some show me exactly how to play a Flash swf in VB. NET - not VB6 but VB. NET.

    I've tried...

    the absolute path C:\myMoviePath...
    the loadMovie(movie, taraget Path)...
    and the AxShockwaveFlash2 this crashes vb. NET when ran-shuts it down

    All samples I found are for VB6 not VB .NET


    Any information will be greatly appreciated.


    Thank You


    iaustin
    Last edited by iaustin; Sep 15th, 2003 at 06:24 AM.

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