RuntimeClass Sample #CustomDataStructure 9re forked:1favorite:0lines:26license : MIT License modified : 2009-09-16 01:40:06 Embed Tweet package { import Box2D.Common.Math.b2Vec2; import flash.display.BitmapData; import flash.display.Sprite; import flash.geom.Rectangle; public class Runtime_Sample_CustomDataStructure extends Sprite { public function Runtime_Sample_CustomDataStructure() { trace("version 0"); } public function drawBitmap($bitmap:BitmapData, $rect:Rectangle, $color:uint):void { $bitmap.fillRect($rect, $color); } public function getRectangle():Rectangle { return new Rectangle(100, 20, 20, 20); } public function getColor():uint { return 0xff0000ff; } public function getVector():b2Vec2 { return new b2Vec2(100, 20); } } } Code Fullscreen Preview Fullscreen ApplicationDomain class runtime Rectangle b2Vec2 trace uint Sprite sort new page view favorite forked pv268 forked from: RuntimeClass Samp.. 9re forked:0 favorite:0lines:26 (diff:6)