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?Have you instantiated FlashObj?
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.
Monday, March 26, 2012
Shcokwave Flash in ASP.Net
Labels:
application,
asp,
aspnet,
file,
flash,
insert,
net,
referenced,
shcokwave,
shockwaveflashobjects,
swf,
web
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment