Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought

Welcome, Guest. Please login or register.
January 20, 2018, 11:34:44
Home Help Search Login Register
News: Please DM @puremvc on Twitter to gain forum access. Spambots are why we can't have nice things.
Pages: [1]
Author Topic: Problem with MacroCommand  (Read 27921 times)
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..
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.
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.

Pages: [1]
Jump to: