From: Richard K. <ric...@us...> - 2005-07-06 18:30:28
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27413 Modified Files: ASRootWindowView.as Log Message: got dynamic creation with levels working Index: ASRootWindowView.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASRootWindowView.as,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ASRootWindowView.as 6 Jul 2005 17:28:51 -0000 1.5 --- ASRootWindowView.as 6 Jul 2005 18:30:18 -0000 1.6 *************** *** 78,81 **** --- 78,84 ---- view = view.higherView(); } + if (view.level() > level()) { + view = null; + } return view; } *************** *** 178,183 **** private function createFrameMovieClip() { var self = this; ! m_mcFrame = _root.createEmptyMovieClip("ASRootWindowView"+m_window.windowNumber(), m_targetDepth); _root["ASRootWindowView"+m_window.windowNumber()].window = m_window; m_mcFrame.onEnterFrame = function() { self.m_window.displayIfNeeded(); --- 181,191 ---- private function createFrameMovieClip() { var self = this; ! var depth = m_targetDepth; ! if (_root.getInstanceAtDepth(depth) != null) { ! depth = m_window.windowNumber()+100; ! } ! m_mcFrame = _root.createEmptyMovieClip("ASRootWindowView"+m_window.windowNumber(), depth); _root["ASRootWindowView"+m_window.windowNumber()].window = m_window; + matchDepth(); m_mcFrame.onEnterFrame = function() { self.m_window.displayIfNeeded(); |