Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Using Flash Events in Vb.Net

Using Flash Events in Vb.Net

Scheduled Pinned Locked Moved Visual Basic
csharpdesignadobehelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    James A 0
    wrote on last edited by
    #1

    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,

    C 1 Reply Last reply
    0
    • J James A 0

      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,

      C Offline
      C Offline
      Chatura Dilan
      wrote on last edited by
      #2

      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

      G 1 Reply Last reply
      0
      • C Chatura Dilan

        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

        G Offline
        G Offline
        Guerven
        wrote on last edited by
        #3

        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

        C 1 Reply Last reply
        0
        • G Guerven

          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

          C Offline
          C Offline
          Chatura Dilan
          wrote on last edited by
          #4

          Thank you!:) chatura

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups