Hi all
I am trying to use the component for asp to play swf in the fly
But no thing display in the control
If some body please tell me what’s rong in my code
[/code]
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim c As f_in_box__aspnet.SWFPlayerControl.ProvideMovieContentDelegate
c = New f_in_box__aspnet.SWFPlayerControl.ProvideMovieContentDelegate(AddressOf SWFPlayerControl1_OnProvideMovieContent)
Dim source As Object = New Object
Dim MovieStream As System.IO.Stream = New MemoryStream
c.Invoke(source, MovieStream)
End Sub
Protected Sub SWFPlayerControl1_OnProvideMovieContent(ByVal source As Object, ByVal MovieStream As System.IO.Stream) Handles SWFPlayerControl1.OnProvideMovieContent
Dim myByte1() As Byte
myByte1 = My.Computer.FileSystem.ReadAllBytes("c:\main1.swf")
MovieStream.Write(myByte1, 0, myByte1.Length)
End Sub
Thank you in advance