Flash & Swish  Home Flash & Swish Flash Tutorials Importing Flash into VB6, C++, c# .NET
rss

Importing Flash into VB6, C++, c# .NET

Author: mix-fx.com More by this author


Importing Flash into VB6, C++, c# .NETBy following these simple steps, you will be up and running in no time at all and impressing all of your visitors with your talents! You basically need 2 simple things: use the Flash player as a component in your project and then catch and act on the events that it is raising.

1. You need to include the Flash component in your project. In VB6 you would just navigate to Project|Components|Browse, and then select Flash.ocx
2. Now you can create a ShockwaveFlash control on your form
3. You should tell the Flash component to load and play an SWF file by setting the Movie property
4. The player will raise FSCommand events (named ShockwaveFlash1_FSCommand in VB6 if your control was named ShockwaveFlash1)
5. The command string indicates with button was pressed. The command will look like "on_releaseb1_1", where the 2 numbers separated by the underscore indicates the row and column of the button that was pressed
6. If you distribute your application, make sure you distribute Flash.ocx as well and run regsvr32 to register the component


Rate this Material: Bad 1 2 3 4 5 Excellent
print this page tell a friend subscribe to newsletter subscribe to rss

Read/Add comments to "Importing Flash into VB6, C++, c# .NET"

comments  matheswaranm June 07, 2006 says:
Importing Flash into VB6, C++, c# .NET
good