topical media & game development
#graphic-player-10-cube-be-nascom-flash10-tests-AbstractFP10Test.mx
#graphic-player-10-cube-be-nascom-flash10-tests-AbstractFP10Test.mx
[swf]
[flash]
flex
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="900" height="600" horizontalScrollPolicy="off" verticalScrollPolicy="off">
<mx:Script>
<![CDATA[
import be.nascom.flex.component.FlexSimpleTraceBox;
import mx.core.UIComponent;
public function run():void{
FlexSimpleTraceBox.trace("AbstractFP10Test.run() please override in subclass");
}
//this must clear up the stage, and clear up any event listeners etc.
public function destroy():void{
FlexSimpleTraceBox.trace("AbstractFP10Test.destroy() please override in subclass");
}
//possibility for developer to document findings, important items to note etc. Use HTML.
public function getNotes():String{
return "No notes of even remotely interesting nature to be found in this test. Please try another one.";
}
protected function testNullSpriteAndRemove(_parent:Sprite,_child:DisplayObject):void{
if(_child!=null){
if(_parent.contains(_child))_parent.removeChild(_child);
}
}
]]>
</mx:Script>
<mx:UIComponent id="test_holder" y="100" />
</mx:Canvas>
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.