bennythebear Member Posts: 1225 From: kentucky,usa Registered: 12-13-2003 |
i was wondering if anyone knew of a free tool that would allow me to play flash movies in a vb.net application? like something that would be added to the controls, like textbox, command button, etc...even if you don't know of free one, tell me about it, i'm still playing around with programming/game development, so i'm trying out a lot of different ideas and methods of going about this. ------------------ proverbs 25:7 www.gfa.org - Gospel for Asia www.persecution.com - Voice of the Martyrs |
Klumsy Administrator Posts: 1061 From: Port Angeles, WA, USA Registered: 10-25-2001 |
you can host the flash com control very easily... its just a matter of adding it to your toolbar, dropping it on a form and calling one or two methods.. ------------------ |
bennythebear Member Posts: 1225 From: kentucky,usa Registered: 12-13-2003 |
can you give me a few more details please...i'm still a newb at all this. i guess i'll do some googling... ------------------ proverbs 25:7 www.gfa.org - Gospel for Asia www.persecution.com - Voice of the Martyrs |
SSquared Member Posts: 654 From: Pacific Northwest Registered: 03-22-2005 |
I think Klumsy may have meant your Toolbox. I have never used Flash, but if you have it packaged in some type of COM component, you can add it easily to your project. What version of Visual Studio are you using? For VS.NET 2003, be sure the Toolbox is open. This is the window containing all of the WinForm controls (textbox, combo boxes, etc.). If it's not showing, go to the View menu and select Toolbox. Now, select 'My User Controls' if it's there. Otherwise, you can just select 'Windows Forms', I guess or simply add a 'New Tab' for your Flash components. Right click and select 'Add/Remove Items...' A new dialog will display. Select the 'COM Components' tab and select your Flash component. If it's not listed, then it may not be registered, and you will need to get it registered. One the component is in your Toolbox, you can drag and drop it on your Form. If this doesn't make sense, try doing a search for something like 'hosting Flash control in .net' and see what you get. I have not used Flash, so I don't know if these steps will actually work. But if your Flash control is written in COM, then this should work. The .NET Framework provides some really nice functionality, making integration with legacy code rather seamless. |
bennythebear Member Posts: 1225 From: kentucky,usa Registered: 12-13-2003 |
ok. so if i'm understanding correctly i need flash installed first? i'm using vb.net 2005 express right now, eventually visual studio 2005 standard. i'll have to wait until i get xp reinstalled on my computer, and get flash installed. thanks for the info. ------------------ proverbs 25:7 www.gfa.org - Gospel for Asia www.persecution.com - Voice of the Martyrs |
Klumsy Administrator Posts: 1061 From: Port Angeles, WA, USA Registered: 10-25-2001 |
yep. if flash player is installed on your computer in internet explorer then the control will be registered.. i can't remember what its called.. ok just went into visual studio its called Shockwave Flash Object... b.t.w here is an option that will give you more integration options (i.e intercepting events from in the flash) http://www.codeproject.com/cs/media/flashexternalapi.asp ------------------ |
kenman Member Posts: 518 From: Janesville WI Registered: 08-31-2006 |
Sorry, but there is a much easier way, that will direct the user to install flash if they do not have it. In your vb application add a web browser object, you may want to change the dock to none, as the default is fill, using flash, create your flash .html web page, and store it in the same directory as your project, such as flash.html with the flash.swf. You should be able to open flash.html to open the movie as you would like to use it in your form Now when you want the flash to open, you would use this code WebBrowser1.Visible = True One thing that you will want to remember, no matter how you use flash in a .net project, the flash object will not focus if it is an interactive object. There is an workaround that I had to use when I created our SYF internet browser, if you need it PM me and I will pull that chunk of code our for you. This works in vb.net 2003 and 2005. Hope this has been very helpful! |
SSquared Member Posts: 654 From: Pacific Northwest Registered: 03-22-2005 |
Sweet! Never crossed my mind to house it in HTML...and gives the user an opportunity to download Flash, if necessary. [This message has been edited by SSquared (edited December 01, 2006).] |