0 Replies Latest reply on Aug 20, 2009 9:39 PM by megharajdeepak

    How to use Flex Classes for Actionscript 2.0 projects?

    megharajdeepak Level 1

      Hi,

      I'm using webservice and related classes of flex in Flash. It works perfectly in AS 3.0 project as there is an option of using swc files in AS 3.0 settings where I used framework.swc and rpc.swc files. But when I select AS 2.0 in the drop down, the option of using swc files dissappear... and I'm left with something called class path.

       

      I shall be using these classes of flex in my AS 2.0 flash project:

       

      import mx.rpc.soap.LoadEvent;
      import mx.rpc.soap.WebService;
      import mx.rpc.soap.mxml.Operation;
      import mx.rpc.events.ResultEvent;
      import mx.rpc.events.FaultEvent;
      import mx.rpc.AbstractOperation;

       

      And for this, I gave the classpath in AS2.0 settings of my flash project as:

      C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\frameworks\projects\rpc\src\mx

       

      But I get this error messages in flash:

      The class or interface 'mx.rpc.soap.WebService' could not be loaded.

      The class or interface 'mx.rpc.AbstractOperation' could not be loaded.

      The class or interface 'mx.rpc.AbstractOperation' could not be loaded.

      The class or interface 'mx.rpc.events.FaultEvent' could not be loaded.

       

      am I going wrong somewhere in providing the classpath or is it not at all possible to use flex classses in flash AS 2.0? Please let me know about this.....