topical media & game development

talk show tell print

#graphic-flex-draw-effects-0.mx

#graphic-flex-draw-effects-0.mx [swf] [flash] flex


  <?xml version="1.0" encoding="utf-8"?>
  <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:cl="clases.*" layout="absolute" 
           backgroundColor="0xffffff" creationComplete="init()"
  >
          <mx:Script>
                  <![CDATA[
  
mylinerider.com/2009/07/18/flex-3-experiment-drawing-curve-with-many-editable-points-at-run-time

import mx.containers.Canvas; // import classes.DrawingGradientFills; import mx.core.UIComponent; // import classes.ChangingPointsOnAPathCurves; import flash.display.Stage; //private var o:graphic_flex_draw_classes_DrawingCurves = new graphic_flex_draw_classes_DrawingCurves; //private var o:graphic_flex_draw_classes_DrawingGradientFills = new graphic_flex_draw_classes_DrawingGradientFills; //private var o:graphic_flex_draw_classes_DrawingSolidFills = new graphic_flex_draw_classes_DrawingSolidFills; //private var o:graphic_flex_draw_classes_DrawingGradientLines = new graphic_flex_draw_classes_DrawingGradientLines; //private var o:graphic_flex_draw_classes_FillingShapesWithBitmaps = new graphic_flex_draw_classes_FillingShapesWithBitmaps; //private var o:graphic_flex_draw_classes_CopyingGraphics; //private var o:graphic_flex_draw_classes_DrawingBitmapStrokes = new graphic_flex_draw_classes_DrawingBitmapStrokes(); //private var o:graphic_flex_draw_classes_PreservingPathData = new graphic_flex_draw_classes_PreservingPathData(); //private var o:graphic_flex_draw_classes_ChangingPointsOnAPath = new graphic_flex_draw_classes_ChangingPointsOnAPath(); //private var o:graphic_flex_draw_classes_DrawTrianglesUVTTest = new graphic_flex_draw_classes_DrawTrianglesUVTTest(); //private var o:graphic_flex_draw_classes_RenderingTriangles = new graphic_flex_draw_classes_RenderingTriangles(); private var o:graphic_flex_draw_classes_ChangingPointsOnAPathCurves = new graphic_flex_draw_classes_ChangingPointsOnAPathCurves(); //private var o:graphic_flex_draw_classes_AddingPoints = new graphic_flex_draw_classes_AddingPoints(); private var UIRef:UIComponent = new UIComponent(); private function init():void { //o = new CopyingGraphics(250,250, canvas); //canvas.addChild(UIRef); canvas.visible = false; addChild(UIRef); UIRef.addChild(o); } ]]> </mx:Script> <mx:Canvas id="canvas" width="500" height="500" backgroundColor="0xffffff" /> </mx:Application>


(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.