Results 1 to 3 of 3

Thread: Shcokwave Flash in ASP.Net

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Location
    uk
    Posts
    2

    Shcokwave Flash in ASP.Net

    I am new to VB.Net and am trying to insert a .swf file into my Web Application.

    I have referenced the 'ShockwaveFlashObjects' and tried to insert a flash movie into my page and included the following code to run it.

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    Dim path As String
    path = "C:\Inetpub\wwwroot\BDWebApplication1\Images\bd_Lines.swf"
    With FlashObj
    .Stop()
    .Movie = path
    .Play()
    End With

    VB.Net throws an error saying that I the Object is not declared.

    Any thoughts?

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Have you instantiated FlashObj?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Location
    uk
    Posts
    2

    Shcokwave Flash in ASP.Net

    I didn't realise that I had to, sorry for the ignorance.

    I have tried to instantiate the Object as follows:

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    ############################
    Dim FlashObj As New ShockwaveFlashObjects.ShockwaveFlash

    Dim path As String
    path = "\\localhost\LaptopTest\Images\bd_Lines.swf"
    With FlashObj
    .Stop()
    .Movie = path
    .Play()
    End With
    ############################

    It doesnt now throw the error but hangs and never displays the page.

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