Control Flash Game

L

LN Mike

Please provide direction to control a flash game through vb.net 2008 or
vb.net 2010.

I have not started coding, and need direction.
I want to see if I can code a script to move my character around on an
online flash game. Basically send keystrokes to the game, but in order to
contain the game, I think I will have to use the vb.net web control, as the
game fills the whole screen and "takes control" of the computer. For example
Ultima Online, Wizards101 and World of Warcraft.
 
J

Jie Wang [MSFT]

Hi,

You don't need the WebBrowser control to host a Flash file in your Windows
Forms application.

The Flash Player itself is an ActiveX control which you can directly put on
your Form.

The Steps:

1. Create a new VB.NET Windows Forms Application.
2. Right click on the Toolbox and choose Add Tab, name the new Tab as
"ActiveX Controls" or whatever you like
3. Right click on the newly added tab "ActiveX Controls" and select "Choose
Items..."
4. In the Choose Toolbox Items dialog, select COM Components Tab and find
"Shockwave Flash Object", select it and press OK.
5. Drag & Drop a Shockwave Flash Object control onto your Form.
6. Set the Flash controls's Dock property to Fill.
7. Set the Flash controls's Movie property to the SWF file's path.
8. Set the Form's FormBorderStyle property to None.
9. Set the Form's TopMost property to True.
10. Set the Form's WindowState to Maximized.
11. Set the Project's Target CPU to x86 (because Flash ActiveX control only
has an x86 version).

Run the project, you'll get a topmost full screen form filled by the Flash
content.

That's the work need to be done on the VB.NET side.

Regarding the "code a script to move my character around on an online flash
game" part, I believe that belongs to the Flash development area, you can
try find help from the Flash developers communities.

Regards,

Jie Wang

Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business days is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top