SolvedRun .SWF in Visual studio

Posts 1–2 of 2 · Page 1 of 1
Run .SWF in Visual studio
Has anyone came across this situation before? I want to run my bot.swf in an Visual studio application. Is this possible?
It's possible and is actually pretty easy to do... first of all you need to make sure you have the shockwave flash component on basic.
How to add: Tools -> Choose Toolbox Items -> .COM Componenents -> Shockwave Flash Object
Make sure to check it and then it'll appear in your toolbox. Then you drag and drop it into the form.


There's a few ways to load shockwave files into visual basic but I'll go with the one I like to use (for local files)
Code:
Me.AxShockwaveFlash1.LoadMovie(2, Application.StartupPath & "/SWF/bot.swf")
For it to work you need to have a folder called SWF in the project files and inside the folder your file "bot.swf".

I'm full of free time so I went ahead and did an example in visual basic doing all this. You can download the file and just replace the shockwave file and it'll work.

VS Xⓘ | Xⓘ
WindowsApplication1_mpgh.net.zip137 KB · 6 downloads Clean
Posts 1–2 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us