Results 1 to 2 of 2

Thread: Comunication with Flash

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2000
    Posts
    20
    Hello!!!
    Well I got a flash movie (.swf) in a VB form, my problem is :
    I'm traying to get the value of a variable
    example
    The flash movie has a button and when the users press it the button set a variable with a value (for example 5)
    I need to know how can I teke that value in VB.
    the idea is to put a graphic button made in flash and for example when the users clicks it, a new form apears
    well I hope somebody give me some help
    Thanks

  2. #2
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877
    Hi Wolverine,
    To get a value from flash you need to use the FS Command. Say you have a variable called var1 then click on the "+" sign on the action tab and choose FS Command from the menu. Now you can type name of your variable (var1) next to where it says command, press ok.

    To get this value in vb, place ur .swf in the form, double click on the swave component now you should get something like the following. (assuming u named ur component as myMovie1)

    Private Sub myMovie1_FSCommand(ByVal command As String, ByVal args As String)
    msgbox Command

    select case Command
    case 0
    'do something
    case 1
    'do something else

    end select
    End Sub

    Hope this helps
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width