I copied an example from a website and for whatever reason I can not get the graphics to show up? No errors and the example runs fine except I don't see the rectangle or the ellipse? What gives?
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"> <fx:Script> <![CDATA[ import mx.core.IUIComponent; import mx.core.DragSource; import mx.events.DragEvent; import mx.managers.DragManager; private function mouseDownHandler(e:MouseEvent):void { DragManager.doDrag(e.currentTarget as IUIComponent, null, e); } private function dragEnterHandler(e:DragEvent):void { DragManager.acceptDragDrop(e.currentTarget as IUIComponent); } private function dragDropHandler(e:DragEvent):void { e.currentTarget.addElement(e.dragInitiator); } ]]> </fx:Script> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> <s:Panel title="src" width="100" minHeight="133" x="10" y="10"> <s:Graphic width="80" height="80" mouseDown="mouseDownHandler(event)"> <s:Rect width="100%" height="100%"> <s:fill> <mx:SolidColor color="#6666FF" /> </s:fill> </s:Rect> </s:Graphic> <s:Graphic width="80" height="80" mouseDown="mouseDownHandler(event)"> <s:Ellipse width="100%" height="100%"> <s:fill> <mx:SolidColor color="#FF66FF" /> </s:fill> </s:Ellipse> </s:Graphic> </s:Panel> <s:Panel title="target" width="100" minHeight="133" x="120" y="10" dragEnter="dragEnterHandler(event);" dragDrop="dragDropHandler(event);"> </s:Panel> </s:Application> Thank You Dan Vega danv...@gmail.com http://www.danvega.org/