Pages

Thursday, November 22, 2007

PurpleTrail deskop - My AIR Project

Yes ...Its MY AIR project..in Air beta2 and flex 3... :) and I am damn happy about it. I got a chance to work in these techs and to build a product...I have craved for this chance all through my carrier and yes I got it thanks to my employer for trusting me...I have been a lot busy with this lately..and could not post anything here..

Completed the first part of our product. have a look at the screen shot..Its the desktop version of the app purpletrail.com. Please have a look at the application..the work is still in progress.. losts of new feature will come in. All that we see on web there will come in desktop :) :) :) ..I am too excited about it..May god help me in the future journey of this.

There is lot more to come.. can not summaries in one screen....
The main feature that i wanted to highlight here is the Smiley Textfield..
Yes its our normal textArea class...extended.. and coustmized to read img tag and anchor tag (text in anchor tag gets the special formatting.) these features are not available with our normal textArea..look at the tooltil also.. ToolTip class is also customized to hold the rich text..with img tag.

There are lot many things not just smiley.. like autorize textArea..clickable field in textArea.. etc. etc. Had lots of fun doing this..more fun is waiting for me. I am too impaitent to make it furnish. Thanks God for everything

Thursday, October 11, 2007

Image as a toolTip

I just dreamed of it now... and yes dream came true.. :) :)
I found a post by Rich Tretola on his blog "blog.everythingflex.com" where he has posted his example in which we can show a image in the tooltip , all we have to provide is the image url ... Everythingflex.com is really about everything in flex !

Thanks Rich....

Wednesday, October 10, 2007

I reported a bug on apollocoder and Mike Chamber forwarded it to their QA team :) :) :)

Anyways, The bug is :
Using ScreenMouseEvent.CLICK , something like :
SystemTrayIcon(Shell.shell.icon).addEventListener(ScreenMouseEvent.CLICK,showScreen)
Gives error:
TypeError: Error #2007: Parameter type must be non-null.
Work arround, Hardcode the "click" string as :
SystemTrayIcon(Shell.shell.icon).addEventListener("click",showScreen)
The problem does not occur in :
ScreenMouseEvent.RIGHT_CLICK
ScreenMouseEvent.RIGHT_MOUSE_DOWN
ScreenMouseEvent.RIGHT_MOUSE_UP

Tuesday, October 9, 2007

Standard chrome of air

D I unnecessarily used standard chrome of air??? ! If I am using the custome chrome, its not letting me set up the native menu option, I get an error like :
" Native menus are supported only in case of standard chrome?? "
what is this??
* Full screen in not supported if we are having the transparent window....??
*Native menus are supported only in case of standard chrome??


Friday, October 5, 2007

Air App in system Tray with menus

Here is the sample code :

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
height="400"
width="500"
creationComplete="init()"
showFlexChrome="false">
<mx:Script>
<![CDATA[
import mx.core.BitmapAsset;
import flash.system.Shell;
import mx.controls.Image;
public var _root:NativeMenu
[Embed(source="icons/AIRApp_16.png")]
[Bindable]
public var imgCls:Class;
function init(){
_root = new NativeMenu()
this.nativeWindow.x = 0
this.nativeWindow.y = 0
trace(Shell.supportsSystemTrayIcon )
var editMenu:NativeMenuItem = _root.addItem(new NativeMenuItem("exit"));
editMenu.addEventListener(Event.SELECT,exitApp)
var imgObj:BitmapAsset = new imgCls() as BitmapAsset;
Shell.shell.icon.bitmaps = [imgObj.bitmapData]
SystemTrayIcon(Shell.shell.icon).menu = _root;

}
public function exitApp(event){
stage.nativeWindow.close()
}
]]>
</mx:Script>
<mx:Canvas height="100%" width="100%" borderStyle="solid" borderColor="#18252E" cornerRadius="20" backgroundColor="#605050">
&ltmx:Button x="54" y="43" label="Close window" click=" stage.nativeWindow.visible=false"/>
</mx:Canvas>
<mx:Image id="myImageRaw" source="{imgCls}" visible="false"/>
</mx:WindowedApplication>

>