Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Problem with MacroCommand  (Read 34843 times)
Jigz
Newbie
*
Posts: 6


View Profile Email
« on: September 03, 2009, 10:42:12 »

Hi, i just like to ask you how to use the macro command in as2..
i have problems in overriding:
   protected function initializeMacroCommand():void
   {
   }
i dont know how to override this function in as2.
if use override a syntax error shows up..
please need help..
maybe a sample code of macro command will do thanks..
Logged
Tekool
Sr. Member
****
Posts: 192


View Profile WWW Email
« Reply #1 on: September 04, 2009, 12:25:46 »

While having a quick overview of the MacroCommand class in AS2, there seems to be errors in it.

initializeMacroCommand and addSubCommand must be public, as protected doesn't exists in AS2. You'll have to modify it by yourself and ask the author (Pedr Browne <pedr.browne[A]puremvc.org>) of this port to correct the errors ASAP.
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #2 on: September 04, 2009, 06:50:08 »

And to the addSubCommand method we should be passing command class reference not an instance of a class.

-=Cliff>
Logged
Pages: [1]
Print