Mathew Easow Jacob’s Blog–India

a enthusiast…developer…on technology,RIA,flex,web,startup….

Archive for September, 2008

undrgable flex alert

Posted by easow83 on September 14, 2008

Here is the source for undgragable alert ….set  “isPopUp” property “true” to make it dgragable.

<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application
xmlns:mx=”http://www.adobe.com/2006/mxml
layout=”
vertical”
verticalAlign=”middle”
backgroundColor=”white”>
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private var myAlert:Alert;
private function showAlert():void
{
title =
"Undraggable Alert"
;

myAlert = Alert.show("My undgragable alert!!",title);
myAlert.isPopUp = false;
myAlert.status = Capabilities.version;
}
]]>
</mx:Script>
<mx:Button id=”btn”
label=”Show Alert”
click=”showAlert()”
/>
</mx:Application>

 

 

 

 

 

 

 

 

 

Posted in Flex, Flex 2.0.1, Flex 3 | Leave a Comment »

Flex4 animation: try it out

Posted by easow83 on September 11, 2008

see this demo…some of the animation features thatguys are working on for the next version of Flex

http://graphics-geek.blogspot.com/2008/09/flexy-flexible-as3-animation-library.html

Posted in Flex | Leave a Comment »

Update system time dynamically..

Posted by easow83 on September 11, 2008

Here is the sample code were you can display the system time..its like a digital clock..usually the timer we can use to update the time ,running a an application similar to stop watch ,alarm and lot more ..

<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” layout=”absolute” creationComplete=”init()”>
<mx:Script>
 <![CDATA[
 [Bindable]
 private var sec:String;
 
  private function init():void {
   var ti:Timer = new Timer(1000);
   ti.addEventListener(TimerEvent.TIMER,timerFun);
   ti.start();
  }
  private function timerFun(e:TimerEvent):void{
     var dt:Date = new Date();
   sec = dt.getHours() +’:'+dt.getMinutes()+’:'+dt.getSeconds();
   
  }
 ]]>
</mx:Script>
 <mx:HBox>
  <mx:Label id=”lbl” text=”{sec}”/>
 </mx:HBox>
</mx:Application>

Posted in Flex, Flex 2.0.1, Flex 3 | Leave a Comment »

Tips for Usability in a website

Posted by easow83 on September 11, 2008

By Jessica Hupp

So you’ve got a website, but do you know whether it’s usable or not? The answer to this question can make the difference between a successful site and one that’s just ignored. Go through this checklist to make sure your site is up to snuff.

  1. Do you answer your user’s questions?: Users visit a site because they want answers, so it’s vitally important that your site gives them what they are looking for.
  2. Is your navigation clear and simple?: Make sure that your navigation lets the user know where they have been and where they can go in a clear, consistent manner.
  3. Do you provide anchor text?:   ReadMore

Posted in GeneralDiscussion | Leave a Comment »

Flex custom tooltip speech bubble

Posted by easow83 on September 11, 2008

Here is a sample that should help demonstrate the approach.

click here

Posted in Flex, Flex 2.0.1, Flex 3 | Leave a Comment »

Flex 3 Wins Best of Open Source Award

Posted by easow83 on September 9, 2008

Posted in GeneralDiscussion | Leave a Comment »

How to turn off horizontalScrollPolicy and verticalScrollPolicy for all conatiners

Posted by easow83 on September 9, 2008

 Application.application.scrollPolicy = “no” that can be overrided by individual containers..

Posted in Flex, Flex 2.0.1, Flex 3 | 1 Comment »

What makes a flex app big in size ??

Posted by easow83 on September 9, 2008

Generally what makes a flex app big in size
1.Try to load your assets (images/animations) at runtime.
2. Try not to embed fonts. If you don’t really need a special font, or advanced anti-aliasing and you are not applying any effects and transformations (alpha, rotation etc.) to your text, you don’t need to embed fonts.
3.Another important concept is that of modular applications. Here are the docs:
http://livedocs.adobe.com/flex/3/html/help.html?content=modular_1.html
4.make sure you are looking at a “production” compile and not a debug compile.  There is significant difference in swf size.
5.not forget the Runtime Shared Libraries.  If you can offload the Flex Framework into and RSL that will significantly decrease your swf’s size.  The initial load will be the full 1mb, unless the user has been to another site that loaded the RSLs already into the flash player cache.  Every subsequent load will be reduced by about 500kb if you’re using the full flex framework.

Posted in Flex, Flex 2.0.1, Flex 3, GeneralDiscussion, RIA | Leave a Comment »

Sorry!!! not updated my blog for 2 months

Posted by easow83 on September 9, 2008

I was not able to update my blog for the last 2 months after june 5 th…i was busy in a project..”Audio chat using Flex and FMS(flash media server)”…(   finallyy it released… It is my first time working with FMS..a nice expirence….i could feel how an application fully built in flex  reduces headachee!!….(browser and OS)….

Posted in GeneralDiscussion, RIA | Leave a Comment »