0 0

flex问题:Error: Unsupported operation.5

Error: Unsupported operation.
at alternativa.engine3d.core::View/contains()[G:\works\Alternativa3D\src\alternativa\engine3d\core\View.as:658]
at mx.managers::FocusManager/isParent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\FocusManager.as:985]
at mx.managers::FocusManager/removeFocusables()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\FocusManager.as:1689]
at mx.managers::FocusManager/removedHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\FocusManager.as:1670]
at flash.display::DisplayObjectContainer/removeChild()
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$removeChild()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:6953]
at mx.core::UIComponent/removeChild()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:6860]
at sceneview3d::UnitScene/removeListeners()[E:\workFlashBuilder\Robin\src\sceneview3d\UnitScene.as:153]
at sceneview3d::UnitSceneView3D/setUnitConf()[E:\workFlashBuilder\Robin\src\sceneview3d\UnitSceneView3D.as:41]

public function removeListeners():void{
			// Listeners
			frame.stage.removeEventListener(Event.ENTER_FRAME, onEnterFrame);
			frame.stage.removeEventListener(Event.RESIZE, onResize);
			
			frame.stage.removeEventListener(MouseEvent.MOUSE_DOWN, onGbMouseDown);
			frame.stage.removeEventListener(MouseEvent.MOUSE_UP, onGbMouseUp);
			frame.stage.removeEventListener(MouseEvent.MOUSE_OUT, onGbMouseOut);
			frame.stage.removeEventListener(MouseEvent.MOUSE_MOVE, onGbMouseMove);
			frame.stage.removeEventListener(MouseEvent.DOUBLE_CLICK, onGbDoubleClick);
			
			//下面报错语句
			frame.removeChild(camera.view);
		}

作用是删除原有内容,而后建立新内容
2012年12月14日 13:52

1个答案 按时间排序 按投票排序

0 0

你干什么了。把摄像机都删除了
还有
frame 是什么对象 只有这个对象add了才能删除
还有啊。你把摄像机都删了。有多个摄像机?3d 视图中核心组件就是摄像机了。你把这个删了。。能运行吗。

2012年12月14日 14:10

相关推荐

Global site tag (gtag.js) - Google Analytics