Skip to content

Instantly share code, notes, and snippets.

@kkm
Created June 3, 2015 21:30
Show Gist options
  • Save kkm/61e4602ca159165a68f7 to your computer and use it in GitHub Desktop.
Save kkm/61e4602ca159165a68f7 to your computer and use it in GitHub Desktop.
bitmap source write
<?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>
@kkm
Copy link
Author

kkm commented Jun 3, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment