Created
June 3, 2015 21:30
-
-
Save kkm/61e4602ca159165a68f7 to your computer and use it in GitHub Desktop.
bitmap source write
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" | |
xmlns:s="library://ns.adobe.com/flex/spark" | |
xmlns:mx="library://ns.adobe.com/flex/mx" applicationComplete="init(event)"> | |
<fx:Script> | |
<![CDATA[ | |
import mx.events.FlexEvent; | |
protected function init(event:FlexEvent):void { | |
var bitmapdata:BitmapData = new BitmapData(320, 240, false, 0x000000); | |
img.source = bitmapdata; | |
} | |
]]> | |
</fx:Script> | |
<s:Image id="img"/> | |
</s:WindowedApplication> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
so sieht aus: http://capturei.tikatoy.com/Qe0I