Touchwood Presents UI Marker Beta 1
Submitted by ben.bishop on Tue, 11/13/2007 - 04:11.Touchwood is proud to present UI Marker Beta 1. UI Marker is a Flex component that allows users to draw squares, lines, and notes on an AIR application's UI and save the screenshot as a PNG. This tool is valuable for design reviews and/or client input and feedback.
How to implement:
Let's say you want to setup your app to where a user can click F12 and make notations. Here's how you do it.
- Link your AIR application to the UIMarker SWC by right mouse clicking on your project and selecting "Properties -> Flex Build Path -> Library Path -> Add SWC..."
- Next setup setup a key listener that uses the PopupManager to create the component:
public function init():void{
this.addEventListener(KeyboardEvent.KEY_UP, keyClicked);
}
private function keyClicked(evt:KeyboardEvent):void{if(evt.keyCode == 123){
if(sb == null){
sb=SketchBar(PopUpManager.createPopUp( this, SketchBar , false));
sb.target = test_cvs;}else{
sb.visible = !sb.visible;
}
setFocus();}
}
- Viola!
Touchwood would love to hear your feedback for any sort of bugs and/or thoughts on how to improve the component.
SWC and example project are attached to this post
| Attachment | Size |
|---|---|
| UI_Marker_How_To.zip | 380.71 KB |
| UI_Marker.zip | 474.87 KB |
Reply
- Web page addresses and e-mail addresses turn into links automatically.
- Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
- Lines and paragraphs break automatically.
