Over 10 years of community discussion and knowledge are maintained here as a read-only archive.
// Inject the multitonKeycommandInstance.initializeNotifier(multitonKey);
/** * Calls the undo command setting its note type to * <code>UndoableCommandTypeEnum.NON_RECORDABLE_COMMAND</code> so that it won't get recorded into the history * since it is already in the history */ public function undo():void { if ( undoCmdClass == null ) throw new Error("Undo command not set. Could not undo. Use 'registerUndoCommand' to register an undo command"); /** The type of the notification is used as a flag, * indicating wheather to save the command into the history, or not. * The undo command, shold not be recorded into the history, * and its notification type is set to <code>UndoableCommandEnum.NON_RECORDABLE_COMMAND</code> **/ var oldType:String = _note.getType(); _note.setType( UndoableCommandTypeEnum.NON_RECORDABLE_COMMAND ); try { var commandInstance : ICommand = new undoCmdClass(); // Inject the multitonKey commandInstance.initializeNotifier(multitonKey); commandInstance.execute( _note ); } catch ( err:Error ) { trace("Could not call undo on " + this + ". " + err.getStackTrace() ); } _note.setType( oldType ); }
No, you can only use multicore version in a multicore project, and standard in standard. The project just contains the source of both.