2 Replies Latest reply on Aug 26, 2010 11:16 AM by Flex harUI

    RegisterClassAlias

    Dave 81 Level 1
      I have defined a custom class:

      public class Chat

      public function Chat (tye:int, date:Date)
      {
      ...
      }
      ...........


      I have to save some object of this class in a SharedObject (or in a file with AIR), so I tried using registerClassAlias("ChatAlias", Chat).

      The problem is: when I try to read the sharedObject or the file, I receive the following error message:
      Error #1063: Argument count mismatch on tcl.mainclasses::Chat(). Expected 2, got 0.

      What can I do to solve this problem? Thanks!!!