package be.nascom.flash10_tests.widgets{ import flash.display.DisplayObject; import flash.display.Sprite; /** * Simple wrapper to make creation of materials easier * Essentially just a list of any display list objects to the SimpleCube * will result in a working cube menu... */ public class graphic_player_10_cube_be_nascom_flash10_tests_widgets_SimpleCubeSide extends Sprite{ public var material:DisplayObject; public function graphic_player_10_cube_be_nascom_flash10_tests_widgets_SimpleCubeSide( cube_size:uint, material:DisplayObject, offset:Offset3d ){ super(); addChild(material); this.material=material; applyOffset(offset); } public function applyOffset(offset:Offset3d):void{ material.x=offset.x; material.y=offset.y; material.z=offset.z; material.rotationX=offset.xrotation; material.rotationY=offset.yrotation; material.rotationZ=offset.zrotation; } } }