Results 1 to 2 of 2
  1. #1
    Neloth's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Posts
    39
    Reputation
    22
    Thanks
    22
    My Mood
    Amused

    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?
    Last edited by Neloth; 11-29-2013 at 06:40 PM.

  2. #2
    Rance-Sama's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    Ice
    Posts
    6,339
    Reputation
    653
    Thanks
    7,506
    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
    <b>Downloadable Files</b> Downloadable Files

Similar Threads

  1. [Help Request] Open Process fails when not running in visual studio
    By _corn_ in forum Crossfire Coding Help & Discussion
    Replies: 5
    Last Post: 01-02-2013, 03:39 PM
  2. Visual Studio .NET 2003
    By RoB07 in forum C++/C Programming
    Replies: 0
    Last Post: 02-23-2008, 05:03 PM
  3. Would Visual Studio 2008 work for making trainers?
    By laserdude45 in forum C++/C Programming
    Replies: 5
    Last Post: 02-05-2008, 08:37 PM
  4. Visual Studio 2008 Beta 2 Standard Edition
    By nukeist_ in forum C++/C Programming
    Replies: 3
    Last Post: 11-21-2007, 03:18 PM
  5. Visual Studio
    By jaqq3000 in forum Visual Basic Programming
    Replies: 2
    Last Post: 10-26-2007, 08:22 PM