ads_header

How To Run Flash File In Visual Studio


How To Run Flash File In Visual Studio



Preview



Hello guys, on this occasion I will share a little around VB.Net is how to display or run a flash file.

A flash file or a file with .swf extension is a file that looks like some kind of animation that is commonly used in a website.

Okay, well we just start the tutorial, first of all you have to create a new project in Visual Studio, then you need to add a component in Toolbox named AxShockwaveFlash. by right-clicking on Toolbox and selecting Choose Items


This will bring up the Choose Toolbox Items dialog box, then on the .NET Framework Components tab Scroll down until you find the name AxShockwaveFlash then check it and click OK






Then automatically the AxShockwaveFlash component will be added to Toolbox




After that you drag into the form, do not forget you prepare flash file (.swf) and enter in a folder with the name of flash (example) in your Debug project folder. If all is ready double-click your form then enter the following code into Form Load

Public Class Form1

   Private Sub Form1_Load(Byval sender As System.Object, Byval e As System.EventArgs) Handles MyBase.Load  
        AxShockwaveFlash1.Movie = Application.StartupPath & "\flash\well.swf"
   End Sub

End Class

NOTES :

well.swf : adjust your filename
Now the program is ready to run.

For more details, please watch the video below


No comments:

Powered by Blogger.