Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (30 sloc) 0.98 kb
<?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"
width="200" height="200"
applicationComplete="draw()">
<fx:Script>
<![CDATA[
import flash.external.ExternalInterface;
private function draw(): void {
viewer.graphics.clear();
viewer.graphics.lineStyle();
viewer.graphics.beginFill(0x000000);
viewer.graphics.moveTo(0, 0);
viewer.graphics.lineTo(50.5, 0);
viewer.graphics.lineTo(50.5, 100);
viewer.graphics.lineTo(0, 100);
viewer.graphics.endFill();
viewer.graphics.lineStyle();
viewer.graphics.beginFill(0x000000);
viewer.graphics.moveTo(50.5, 0);
viewer.graphics.lineTo(100, 0);
viewer.graphics.lineTo(100, 100);
viewer.graphics.lineTo(50.5, 100);
viewer.graphics.endFill();
}
]]>
</fx:Script>
<mx:UIComponent id="viewer"></mx:UIComponent>
</s:Application>
Jump to Line
Something went wrong with that request. Please try again.