Browse Source

added colorpicker and gradienteditor

ncannasse 12 years ago
parent
commit
aa6c781834
3 changed files with 4 additions and 2 deletions
  1. 1 2
      samples/comps/Comps.hx
  2. 3 0
      samples/comps/components.html
  3. BIN
      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"/>

BIN
samples/comps/comps.swf