More problems communicating between flash and vb.net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dave

    More problems communicating between flash and vb.net

    Hello everyone, its me again.

    I have been stuck on this problem forever, and cannot find any
    documentation or any help to solve it. From what I have seen online,
    what I need to do should be pretty simple, but I am running into
    problems with everything I read or try.

    I have a flash movie inside of a vb.net application. That part works
    fine. The part that I am having problems with is passing information
    from the flash movie to the vb application. I have tried using
    externalEvent, that has done nothing but waste time. I found a site
    that shows how to do it with FSCommand. I have implemented the
    function on the site. Here it is:

    Private Sub axShockwaveFlas h1_FSCommand(By Val sender As Object, ByVal
    e As _
    AxShockwaveFlas hObjects._IShoc kwaveFlashEvent s_FSCommandEven t) _
    Handles axShockwaveFlas h1.FSCommand

    ' Use a select case statement to filter the command being passed
    through
    Select Case e.command

    Case "yourCustomFSCo mmandName"
    ' Output the arguments
    MessageBox.Show ("The Arguments were: " & e.args)
    Case "anotherCustomF SCommandName"
    ' etc.
    End Select
    End Sub

    Now when I try to run my code, I get the following error:

    An unhandled exception of type 'System.TypeLoa dException' occurred in
    program.exe

    Additional information: Could not load type
    AxShockwaveFlas hObjects._IShoc kwaveFlashEvent s_FSCommandEven tHandler
    from assembly AxInterop.Shock waveFlashObject s, Version=1.0.0.0 ,
    Culture=neutral , PublicKeyToken= null.


    arrrrrrrrrrrrgg gggggggghhhhhh

    Has anyone else had this problem, or know how to solve it?
  • Bishoy Ghaly

    #2
    Re: More problems communicating between flash and vb.net

    Hi Dave,
    I used flash with some other languages like VB6 and Delphi and i (((
    think ))) with the info you provided that the problem is in the .net
    Framework translation of the Type Library. this is not a problrm of your
    coding this is with the framework.

    "Dave" <goldhors64@aol .com> wrote in message
    news:3cb859f7.0 410151126.7e662 eb@posting.goog le.com...[color=blue]
    > Hello everyone, its me again.
    >
    > I have been stuck on this problem forever, and cannot find any
    > documentation or any help to solve it. From what I have seen online,
    > what I need to do should be pretty simple, but I am running into
    > problems with everything I read or try.
    >
    > I have a flash movie inside of a vb.net application. That part works
    > fine. The part that I am having problems with is passing information
    > from the flash movie to the vb application. I have tried using
    > externalEvent, that has done nothing but waste time. I found a site
    > that shows how to do it with FSCommand. I have implemented the
    > function on the site. Here it is:
    >
    > Private Sub axShockwaveFlas h1_FSCommand(By Val sender As Object, ByVal
    > e As _
    > AxShockwaveFlas hObjects._IShoc kwaveFlashEvent s_FSCommandEven t) _
    > Handles axShockwaveFlas h1.FSCommand
    >
    > ' Use a select case statement to filter the command being passed
    > through
    > Select Case e.command
    >
    > Case "yourCustomFSCo mmandName"
    > ' Output the arguments
    > MessageBox.Show ("The Arguments were: " & e.args)
    > Case "anotherCustomF SCommandName"
    > ' etc.
    > End Select
    > End Sub
    >
    > Now when I try to run my code, I get the following error:
    >
    > An unhandled exception of type 'System.TypeLoa dException' occurred in
    > program.exe
    >
    > Additional information: Could not load type
    > AxShockwaveFlas hObjects._IShoc kwaveFlashEvent s_FSCommandEven tHandler
    > from assembly AxInterop.Shock waveFlashObject s, Version=1.0.0.0 ,
    > Culture=neutral , PublicKeyToken= null.
    >
    >
    > arrrrrrrrrrrrgg gggggggghhhhhh
    >
    > Has anyone else had this problem, or know how to solve it?[/color]


    Comment

    • Dave

      #3
      Re: More problems communicating between flash and vb.net

      Hi Bishoy,

      Thank you for your response. Do you know any way that I can get around
      this problem? Is there an update for the library or possibly a way to
      roll back to an earlier library?

      Thanks

      "Bishoy Ghaly" <delphistandard @yahoo.co.uk> wrote in message news:<#MSOnF1sE HA.3564@tk2msft ngp13.phx.gbl>. ..[color=blue]
      > Hi Dave,
      > I used flash with some other languages like VB6 and Delphi and i (((
      > think ))) with the info you provided that the problem is in the .net
      > Framework translation of the Type Library. this is not a problrm of your
      > coding this is with the framework.
      >
      > "Dave" <goldhors64@aol .com> wrote in message
      > news:3cb859f7.0 410151126.7e662 eb@posting.goog le.com...[color=green]
      > > Hello everyone, its me again.
      > >
      > > I have been stuck on this problem forever, and cannot find any
      > > documentation or any help to solve it. From what I have seen online,
      > > what I need to do should be pretty simple, but I am running into
      > > problems with everything I read or try.
      > >
      > > I have a flash movie inside of a vb.net application. That part works
      > > fine. The part that I am having problems with is passing information
      > > from the flash movie to the vb application. I have tried using
      > > externalEvent, that has done nothing but waste time. I found a site
      > > that shows how to do it with FSCommand. I have implemented the
      > > function on the site. Here it is:
      > >
      > > Private Sub axShockwaveFlas h1_FSCommand(By Val sender As Object, ByVal
      > > e As _
      > > AxShockwaveFlas hObjects._IShoc kwaveFlashEvent s_FSCommandEven t) _
      > > Handles axShockwaveFlas h1.FSCommand
      > >
      > > ' Use a select case statement to filter the command being passed
      > > through
      > > Select Case e.command
      > >
      > > Case "yourCustomFSCo mmandName"
      > > ' Output the arguments
      > > MessageBox.Show ("The Arguments were: " & e.args)
      > > Case "anotherCustomF SCommandName"
      > > ' etc.
      > > End Select
      > > End Sub
      > >
      > > Now when I try to run my code, I get the following error:
      > >
      > > An unhandled exception of type 'System.TypeLoa dException' occurred in
      > > program.exe
      > >
      > > Additional information: Could not load type
      > > AxShockwaveFlas hObjects._IShoc kwaveFlashEvent s_FSCommandEven tHandler
      > > from assembly AxInterop.Shock waveFlashObject s, Version=1.0.0.0 ,
      > > Culture=neutral , PublicKeyToken= null.
      > >
      > >
      > > arrrrrrrrrrrrgg gggggggghhhhhh
      > >
      > > Has anyone else had this problem, or know how to solve it?[/color][/color]

      Comment

      • Bishoy Ghaly

        #4
        Re: More problems communicating between flash and vb.net

        I think you can try update your version of Flash Player through Macromedia
        web site, www.macromedia.com and try importing the TypeLibrary again to
        refresh the translation or encapsulation.

        --
        Bishoy Ghaly
        Delphi Developer
        bishoy@dev2dev. org


        --
        Bishoy Ghaly
        Delphi Developer
        bishoy@dev2dev. org

        "Dave" <goldhors64@aol .com> wrote in message
        news:3cb859f7.0 410180406.2d9ed ee9@posting.goo gle.com...[color=blue]
        > Hi Bishoy,
        >
        > Thank you for your response. Do you know any way that I can get around
        > this problem? Is there an update for the library or possibly a way to
        > roll back to an earlier library?
        >
        > Thanks
        >
        > "Bishoy Ghaly" <delphistandard @yahoo.co.uk> wrote in message
        > news:<#MSOnF1sE HA.3564@tk2msft ngp13.phx.gbl>. ..[color=green]
        >> Hi Dave,
        >> I used flash with some other languages like VB6 and Delphi and i (((
        >> think ))) with the info you provided that the problem is in the .net
        >> Framework translation of the Type Library. this is not a problrm of your
        >> coding this is with the framework.
        >>
        >> "Dave" <goldhors64@aol .com> wrote in message
        >> news:3cb859f7.0 410151126.7e662 eb@posting.goog le.com...[color=darkred]
        >> > Hello everyone, its me again.
        >> >
        >> > I have been stuck on this problem forever, and cannot find any
        >> > documentation or any help to solve it. From what I have seen online,
        >> > what I need to do should be pretty simple, but I am running into
        >> > problems with everything I read or try.
        >> >
        >> > I have a flash movie inside of a vb.net application. That part works
        >> > fine. The part that I am having problems with is passing information
        >> > from the flash movie to the vb application. I have tried using
        >> > externalEvent, that has done nothing but waste time. I found a site
        >> > that shows how to do it with FSCommand. I have implemented the
        >> > function on the site. Here it is:
        >> >
        >> > Private Sub axShockwaveFlas h1_FSCommand(By Val sender As Object, ByVal
        >> > e As _
        >> > AxShockwaveFlas hObjects._IShoc kwaveFlashEvent s_FSCommandEven t) _
        >> > Handles axShockwaveFlas h1.FSCommand
        >> >
        >> > ' Use a select case statement to filter the command being passed
        >> > through
        >> > Select Case e.command
        >> >
        >> > Case "yourCustomFSCo mmandName"
        >> > ' Output the arguments
        >> > MessageBox.Show ("The Arguments were: " & e.args)
        >> > Case "anotherCustomF SCommandName"
        >> > ' etc.
        >> > End Select
        >> > End Sub
        >> >
        >> > Now when I try to run my code, I get the following error:
        >> >
        >> > An unhandled exception of type 'System.TypeLoa dException' occurred in
        >> > program.exe
        >> >
        >> > Additional information: Could not load type
        >> > AxShockwaveFlas hObjects._IShoc kwaveFlashEvent s_FSCommandEven tHandler
        >> > from assembly AxInterop.Shock waveFlashObject s, Version=1.0.0.0 ,
        >> > Culture=neutral , PublicKeyToken= null.
        >> >
        >> >
        >> > arrrrrrrrrrrrgg gggggggghhhhhh
        >> >
        >> > Has anyone else had this problem, or know how to solve it?[/color][/color][/color]


        Comment

        Working...