1 Reply Latest reply on Apr 6, 2009 6:24 AM by SujitG

    Flex to VB

    ianmi Level 1
      I am trying to use ExternalInterface to pass data between a swf file and VB in Visual Studio 2008. I have the swf file in the vb form.
      This is my actionscript code, initiated by a button click:

      import flash.external.*;
      public function send2VB(txt:String):void
      {
      if (ExternalInterface.available)
      {
      ExternalInterface.call("setvalue",txt);
      }
      }
      Is the above Flex code okay, and what code do I need in VB to receive the string txt?