Falsh in VB form

Lydecker

New member
Joined
Jul 1, 2003
Messages
4
Okay - I have the flash plugin installed from the COM components tab in Add/Remove items in toolbox.

Jowever I have no idea how to actually add the movie! I have dragged the Shockwave flash object fromt the toolbar onto the form - but whereabouts do I actually specify the path of the .swf movie I want to use?

Thanks!
 
You can set it in the code part by
Suppose the object is swf
swf.Movie = Path of your flash movie
 
I have tried:

Code:
Private Sub playflash() 
        With AxShockwaveFlash1 
            .Stop() 
            .Movie = "C:\Documents and Settings\Zachary\My Documents\Visual Studio Projects\flashwork\bin\admin.swf" 
            .Playing = True 
        End With 
    End Sub

However the movie is still not loading :(
 
well you need to give the Path to HTML File not swf!
Just Set the properties using the properties window;
specify the HTML file and the SWF file
 
No, nothing has to do with HTML here, listen i just tried just threw in a shockwaveflash object and in Form_Load i put
AxShockwaveFlash1.Movie = Application.StartupPath & "/Error.swf"
and it showed perfeclty and by the way from inside your application use Application.startuppath this would lead you direclty to your bin folder so no need to type the whole path.

Cheers...
 
Back
Top