瀏覽代碼

added colorpicker and gradienteditor

ncannasse 12 年之前
父節點
當前提交
aa6c781834
共有 3 個文件被更改,包括 4 次插入2 次删除
  1. 1 2
      samples/comps/Comps.hx
  2. 3 0
      samples/comps/components.html
  3. 二進制
      samples/comps/comps.swf

+ 1 - 2
samples/comps/Comps.hx

@@ -1,4 +1,3 @@
-
 class Comps {
 	
 	var engine : h3d.Engine;
@@ -14,7 +13,7 @@ class Comps {
 	}
 	
 	function init() {
-		flash.Lib.current.stage.addEventListener(flash.events.Event.ENTER_FRAME, function(_) update());
+		h3d.System.setLoop(update);
 		scene = new h2d.Scene();
 		var document = h2d.comp.Parser.fromHtml(h3d.System.getFileContent("components.html"),{ fmt : h3d.FMath.fmt });
 		scene.addChild(document);

+ 3 - 0
samples/comps/components.html

@@ -70,6 +70,9 @@
 			<input value="bla"/>
 			<input/>
 			
+			<colorpicker/>
+			<gradienteditor/>
+			
 			<div class="dock">
 				<div class="panel border" style="dock:top; height:60px"/>
 				<div class="panel border" style="dock:left; width:30px"/>

二進制
samples/comps/comps.swf