A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: runnin flash in visual basic .NET

  1. #1
    Senior Member
    Join Date
    Jun 2001
    Posts
    250

    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

  2. #2
    say no more loydall's Avatar
    Join Date
    Feb 2001
    Location
    London
    Posts
    1,261
    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????

  3. #3
    Senior Member
    Join Date
    Jun 2001
    Posts
    250
    I'm building it as an executable.

  4. #4
    Retired Mod aversion's Avatar
    Join Date
    Jun 2000
    Location
    insomnia
    Posts
    7,917
    I don't know how useful this is but maybe it will help you...

    http://www.macromedia.com/devnet/mx/...s/flash_vb.pdf

  5. #5
    Member
    Join Date
    Oct 2002
    Posts
    32
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center