|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
how do i combine flash with visual basic?
I am going to make a great game over the www but I need to comine flash and visual basic in one program.
i would be verry happy if someone could send me a ".fla" with shows how to transport a variable from vb to flash and back again. thanks in advance |
|
#2
|
|||
|
|||
|
Merging Flash and VB is very simple. If you have already mounted your SWF Movie into a VB Form, just use these functions to communicate betwwen them:
From Flash to VB: Flash Code:_______________________ ... fscommand("Keyword", "Value"); //This will make VB Receive The KeyWord with the value specified VB Code:_________________________ ... Sub NameOfMovie_Fscommand(KeyWord As String, Value As String) '[Do here what you want] End Sub From VB to Flash: Flash Code:_______________________ //There's no need to do anything here VB Code:_________________________ ... aVariable = NameOfMovie.getVariable("_root.Path_and_Name_of_Variable") 'It will return the value of Flash's Variable as a String ... Call NameOfVariable.setVariable("_root.Path_and_Name_of_Variable", "Value") 'It will set a variable with the value specified |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > how do i combine flash with visual basic? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|