Question How To Load A .swf From Program

griffithdesign

Active member
Joined
Sep 17, 2008
Messages
34
Programming Experience
Beginner
Basically what I want is for the program to have an extension/directory called "Flash" and then when you click button one for example it will get that file. Anyone know how to do this and make it work? I have the following code:

VB.NET:
AxShockwaveFlash1.Movie = "/flash/flash.swf"
 
Hi,

If you are looking for how to get the Startuppath then here is the code

VB.NET:
Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim path As String = Application.StartupPath & "\home.swf"
        Me.AxShockwaveFlash1.LoadMovie(0, path)
    End Sub
End Class
 
ajeeshco,
Thank you, that is exactly what I wanted. Lemme try it and see if this is the way I needed it thought.

Works perfectly repped and thank you.
 
Last edited:
Back
Top