17th April 2008:

!7th April 2008: It was Thursday no weekend so going to office was on the hot list.I had a small plan for the evening. I had planned the whole week how to finish my work earlier and leave earlier to go down to meet my college friend Diwakar.
Something about Diwesh Diwakar(DD).I meet him first in the college he was from jharkhand(Jharkhand was previously part of Bihar). He was pursuing mpm and i was in mcm no similarities but still we growed as very good friends. Canteen was the place where we used to meet usually.Shounak Roy (Laddu ) was his close friend. Slowly i came to know everyone in mpm. Amol was also a part of it.

Diwakar:  full of life
So coming back to 17. It was the house warming ceremony of diwakar in dighi. I had never been alone to Dighi. So i wasnt aware how to go there and stuff. I somehow reached diwakars place. Diwakar was surprised to see me there. I meet his parents. A beautiful place to live the building was in a very good location. I meet Laddu, pragya,neel, and Sandeep. Something very unexpected.Sandeep is one of the person whom i used to admire a lot in the college.I never thought that i will meet Sandeep again in my life. It was something very unexpected. We spoke for around 15 min. But those 15 minutes i can never forget. One of the most beautiful moments in my life.

It was a beautiful evening as if i was back to college.Thanks Diwakar for inviting me.

arranging image in a sequence

Pagination logic in short for viewing the images in a sequence 

 ————————————————————————————–

<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” layout=”absolute” creationComplete=”initApp()”>
<mx:Script>
 <![CDATA[
  import mx.controls.Alert;
 public var imageArray:Array;
 public var length:Number;
  public function initApp():void
  {
       imageArray=new Array(); 
       imageArray.push("DSC01770.JPG");
       imageArray.push("DSC01771.JPG");
       imageArray.push("DSC01772.JPG");
       imageArray.push("DSC01773.JPG");
       imageArray.push("DSC01774.JPG");
       imageArray.push("DSC01775.JPG");
       imageArray.push("DSC01776.JPG");
       img.source=imageArray[0];
       length=imageArray.length;
  }
  public function showImage(event:MouseEvent):void
  { 
   if(event.currentTarget.id==”next”)
   {
    for(var i:int=0;i<imageArray.length-1;i++)
    {
     if(img.source.toString()!= imageArray[length-1])
     {
      if(img.source.toString()==imageArray[i])
      {
       img.source=imageArray[i+1];
       break;
      }
     }
     else
     {
      Alert.show(”You viewing the last image”);
      break;
     }
    
    }   
   }
   else
   {
    for(var i:int=0;i<imageArray.length;i++)
    {
     if(img.source.toString()!= imageArray[0])
     {
      if(img.source.toString()==imageArray[i])
      {
       img.source=imageArray[i-1];
       break;
      }
     }
     else
     {
      Alert.show(”You viewing the first image”);
      break;
     }
    }
   }
  }
 ]]>
</mx:Script>

  <mx:Image id=”img”  x=”43″ y=”35″ width=”238″ height=”227″>
   
  </mx:Image>
  <mx:Button id=”prev”  x=”371″ y=”35″ label=”Previous” click=”showImage(event)” />
   
  <mx:Button id=”next”  x=”384″ y=”91″ label=”Next” click=”showImage(event)” />

</mx:Application>

Progress Bar

Progress Bar being loaded as the image being loaded

<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Canvas xmlns:mx=”http://www.adobe.com/2006/mxml” width=”400″ height=”300″>
<mx:Script>
 <![CDATA[
  import mx.controls.Alert;
  public function initApp():void
  {
   img.addEventListener(ProgressEvent.PROGRESS,loadingData);
      img.load("DSC01779.JPG");
  }
  public function loadingData(event:ProgressEvent)
  {
   pb.setProgress(event.bytesLoaded,event.bytesTotal);

  }
 ]]>
</mx:Script>
 <mx:ProgressBar id=”pb” source=”img” mode=”manual” x=”100″ y=”10″>
  
 </mx:ProgressBar>
 <mx:Image id=”img”  x=”120″ y=”120″ />
 <mx:Button click=”initApp()”  y=”80″ x=”160″/>
  <mx:Button click=”pb.setProgress(0,100)”  y=”160″ x=”191″/>
</mx:Canvas>

Remembering the Days in Mumbai

It is great to be back in pune but Mumbai is the place where i started my carrer. I worked very hard and learnt new programming language FLEX.

Remembering those days when i used to work for more than 12 hrs a day. There was something which used to motivate me t0 work and give my best. After finishing the work i used to go down to find some food for myself as the time i used to leave there were hardly any resturant open near by.

Life brought  in new dimensions and lessons for me.

I will never forget my days in mumbai

Radha 07/08/07

Skinning a ToolTip progamatically in flex

The class allow you to create a skin for the tooltip which can be further used as border skin of tooltip .

 /* ToolTipSkin.mxml*/

package 
{
 import mx.skins.ProgrammaticSkin;
 import mx.controls.Alert;

    public class ToolTipSkin extends ProgrammaticSkin {
     
        public static var _widthToApply:Number;
       
        public function ToolTipSkin() {}

        override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
            super.updateDisplayList(unscaledWidth, unscaledHeight)
            if(_widthToApply<60)
            _widthToApply=60;
            graphics.clear();
            graphics.lineStyle(0, 0, 0);
            graphics.beginFill(0xf4f400,1);
            graphics.moveTo(0,10)
            graphics.lineTo(0,25);
            graphics.lineTo(_widthToApply,25);
            graphics.lineTo(_widthToApply,10);
            graphics.lineTo(20,10);
            graphics.lineTo(10,2);
            graphics.lineTo(10,10);
            graphics.lineTo(0,10);
            graphics.endFill();  
        }

    }
}

ToolTipSkin can be used in the application style sheet as a class reference

 borderSkin: ClassReference(”ToolTipSkin”);

SWC File

A SWC file is an archive file for Flex components and other assets. SWC files contain a SWF file and a catalog.xml file. The SWF file inside the SWC file implements the compiled component or group of components and includes embedded resources as symbols. Flex applications extract the SWF file from a SWC file, and use the SWF file’s contents when the application refers to resources in that SWC file. The catalog.xml file lists of the contents of the component package and its individual components.

You compile SWC files by using the component compilers. These include the compc command-line compiler and the Flex Builder Library Project compiler. SWC files can be component libraries, RSLs, theme files, and resource bundles.

To include a SWC file in your application at compile time, it must be located in the library path.

SWF Files

The SWF graphic file format is a version of the Macromedia Flash Player vector-based graphics format introduced in 1997. The SWF file format is ideal for presenting vector-based interactive and animated graphics with sound for the Web. Vector images are ideal for graphics with solid areas of color and distinct object definitions. Because a SWF file is vector-based, its graphics are scalable and play back smoothly on any screen size and across multiple platforms. A vector animation usually has a smaller file size than a bitmap animation.

The power of self-confidence

          The business executive was deep in debt and could see no way out. Creditors were closing in on him. Suppliers were demanding payment. He sat on the park bench, head in hands, wondering if anything could save his company from bankruptcy. Suddenly an old man appeared before him. “I can see that something is troubling you,” he said.

After listening to the executive’s woes, the old man said, “I believe I can help you.” He asked the man his name, wrote out a check, and pushed it into his hand saying, “Take this money. Meet me here exactly one year from today, and you can pay me back at that time.” Then he turned and disappeared as quickly as he had come. The business executive saw in his hand a check for $500,000, signed by John D. Rockefeller, then one of the richest men in the world! “I can erase my money worries in an instant!” he realized. But instead, the executive decided to put the uncashed check in his safe. Just knowing it was there might give him the strength to work out a way to save his business, he thought. With renewed optimism, he negotiated better deals and extended terms of payment. He closed several big sales.

Within a few months, he was out of debt and making money once again. Exactly one year later, he returned to the park with the uncashed check. At the agreed-upon time, the old man appeared. But just as the executive was about to hand back the check and share his success story, a nurse came running up and grabbed the old man. “I’m so glad I caught him!” she cried. “I hope he hasn’t been bothering you. He’s always escaping from the rest home and telling people he’s John D. Rockefeller.” And she led the old man away by the arm.

The astonished executive just stood there, stunned. All year long he’d been wheeling and dealing, buying and selling, convinced he had half a million dollars behind him. Suddenly, he realized that it wasn’t the money, real or imagined, that had turned his life around. It was his newfound self-confidence that gave him the power to achieve anything he went after.

Todays Resolution

By worrying about things they cant be better

There is one or the other thing to be happy about.So keep Rocking

If i work hard i can satisfy myself.

Every morning brings in new ray of hope and challenges for you