IcantspellXIII

I am making a game using Adobe Flash to creat the game. But I want to use C# so people can download the game and it has it's own .exe and it does not have to run in their browser/I don't need to creat a prejector. So I put a Web Browser into a blank form and direct it to the .swf file that Flash made. I test the application and I cannot click buttions in the flash file. I can only click one but then it does not let me click anymore.

I would use the Shockwave Flash object, but I also have some HTML files that I want to display before the game starts. So web browser is what I have to use.

Can someone help me with this I do not know ANY coding in C# I barly know how to do what I am doing. So keep it basic if you can =).

Thanks


Re: Windows Forms General I need help with the web browser.

Alok.Ganguly

hi

can you write the extension of flash file. Is it .swf






Re: Windows Forms General I need help with the web browser.

IcantspellXIII

Yes, it is a .swf.





Re: Windows Forms General I need help with the web browser.

Rong-Chun Zhang - MSFT

Hi IcantspellXIII,

Try to use the AxWebBrowser component instead of WebBrowser. If you cannot see this control on the toolbox, take the following steps:

  1. Right click on the ToolBox and select 'Choose Items ...'
  2. Select the COM tab
  3. Locate "Microsoft Web Browser" in the list and check it
  4. Cilck Ok

There should now be a Microsoft Web Browser item in your toolbox, and drag it onto your form.It will automatically add necessary references to SHDocVw and AxSHDocVw. The following code show how to navigate the .swf file.

Code Snippet
this.axWebBrowser1.Navigate(filepath);

Hope this helps.

Best regards.






Re: Windows Forms General I need help with the web browser.

Evan Mulawski

Why not use the ShockwaveFlash object to view HTML files






Re: Windows Forms General I need help with the web browser.

kendvanpool

Like others that have probably surfed this direction looking for some answers on how to integrate flash into a vb exe, I have the object issue that others do. another thread lead to this one as a solution however if you go this route can you pass variables between the vb code and actionscript