///////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2010 Wolfgang Kowarschick // // Permission is granted to copy, distribute and/or modify this document // under the terms of the WK License, Version 1.0 (WKL 1.0) or any later // version published by Wolfgang Kowarschick. ///////////////////////////////////////////////////////////////////////////////// package { import flash.events.EventDispatcher; import flash.events.Event; /** * @autor Wolfgang Kowarschick * @category class * @langversion 3.0 */ public class Model extends EventDispatcher { ///////////////////////////////////////////////////////////////////////////// // Constructor ///////////////////////////////////////////////////////////////////////////// public function Model() { trace("Ich bin's, das MVC01-Model!!!"); } ///////////////////////////////////////////////////////////////////////////// // Attributes ///////////////////////////////////////////////////////////////////////////// private var v_value: int = 0; public function get value(): int { return v_value; } public function set value(p_value: int): void { v_value = p_value; dispatchEvent(new Event(Event.CHANGE)); } ///////////////////////////////////////////////////////////////////////////// // End of class ///////////////////////////////////////////////////////////////////////////// } } ///////////////////////////////////////////////////////////////////////////////// // End of File /////////////////////////////////////////////////////////////////////////////////