From: Richard K. <ric...@us...> - 2005-05-15 04:29:43
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22769/test Modified Files: ASTestView.as Log Message: add background color methods Index: ASTestView.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/test/ASTestView.as,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ASTestView.as 6 May 2005 05:20:48 -0000 1.3 --- ASTestView.as 15 May 2005 04:28:44 -0000 1.4 *************** *** 31,40 **** import org.actionstep.NSView; import org.actionstep.NSRect; class org.actionstep.test.ASTestView extends NSView { public function drawRect(rect:NSRect) { with(m_mcBounds) { lineStyle(0, 0x000000, 0); ! beginFill(0xBEC3C9, 100); moveTo(0,0); lineTo(rect.size.width, 0); --- 31,55 ---- import org.actionstep.NSView; import org.actionstep.NSRect; + import org.actionstep.NSColor; class org.actionstep.test.ASTestView extends NSView { + private var m_backgroundColor:NSColor; + + public function ASTestView() { + m_backgroundColor = new NSColor(0xBEC3C9); + } + + public function setBackgroundColor(color:NSColor) { + m_backgroundColor = color; + } + + public function backgroundColor():NSColor { + return m_backgroundColor; + } + public function drawRect(rect:NSRect) { with(m_mcBounds) { lineStyle(0, 0x000000, 0); ! beginFill(m_backgroundColor.value, 100); moveTo(0,0); lineTo(rect.size.width, 0); |