Using Flash Events in Vb.Net
-
Working on a project and i want to use flash to spice up the user interface. However I dont' know how to set a Flash button to work with the VB form. If anyone can help me out or point me to a good ref on how to bind flash to VB events please let me know,
-
Working on a project and i want to use flash to spice up the user interface. However I dont' know how to set a Flash button to work with the VB form. If anyone can help me out or point me to a good ref on how to bind flash to VB events please let me know,
This is an example. Flash MX Create a button. Select “Window” menu. Select “Development Panel --> Actions” In the code editor, type this on (release) { fscommand ("Button1"); } Save the movie. (“Untitled-1.fla”) Select “Control” menu and Select “Test Movie” Flash will create (“Untitled-1.swf”) Exit from Flash. VB.Net Right click on the tool box. Select “Add/Remove Items…”. Select “COM Components” Select “Shockwave Flash Object”. Click OK Draw it on the form Name it “SF1” Right click on “SF1” and select “Properties” Type the path to “Untitled-1.swf” in the “Movie URL” textbox. Click OK Double Click on SF1 ( go to Code Editor ) Select “FS Command” from Procedure List Box Type this Private Sub SF1_FSCommand(ByVal sender As Object, ByVal e As AxShockwaveFlashObjects.DShockwaveFlashEvents_FSCommandEvent) Handles SF1.FSCommand If e.command = "Button1" Then MsgBox("it works") End If End Sub Run the program Click on Button1 chatura
-
This is an example. Flash MX Create a button. Select “Window” menu. Select “Development Panel --> Actions” In the code editor, type this on (release) { fscommand ("Button1"); } Save the movie. (“Untitled-1.fla”) Select “Control” menu and Select “Test Movie” Flash will create (“Untitled-1.swf”) Exit from Flash. VB.Net Right click on the tool box. Select “Add/Remove Items…”. Select “COM Components” Select “Shockwave Flash Object”. Click OK Draw it on the form Name it “SF1” Right click on “SF1” and select “Properties” Type the path to “Untitled-1.swf” in the “Movie URL” textbox. Click OK Double Click on SF1 ( go to Code Editor ) Select “FS Command” from Procedure List Box Type this Private Sub SF1_FSCommand(ByVal sender As Object, ByVal e As AxShockwaveFlashObjects.DShockwaveFlashEvents_FSCommandEvent) Handles SF1.FSCommand If e.command = "Button1" Then MsgBox("it works") End If End Sub Run the program Click on Button1 chatura
-
what can i SAY thist has got to be one of the coolest code I've learned for the last 10 months :laugh: Marvin N. Guerrero - Taje Kage_bunshinNunJutsU
Thank you!:) chatura