Mathew Easow Jacob’s Blog–India

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

Archive for the ‘Flex’ Category

About adobe Flex

Firebug for Flex 2.0/3.0 applications

Posted by easow83 on June 5, 2008


Check it out a live at: (in the application, click the flexSpy button on the top-right corner)

Flex-Spy allow you to inspect and dynamically change most properties and styles of the visual components in your Flex application. You can – for example – try out a specific width or a background color for your component before changing it in your code.

To install it in your application, follow the InstallationInstructions.


Posted in Flex, Flex 2.0.1 | Leave a Comment »

My flex app:

Posted by easow83 on April 9, 2008

I am building my own flex app…its a website 🙂 ..its going to host on April 20th…then i willl post its link…i know flex is not meant for website development..its for app. purpose..but when i have  to do with photviwer app. yahoo map. and some more like webservices (in future 🙂 )…i choose flex finallyy 🙂

Posted in Flex, GeneralDiscussion | 1 Comment »

Flex 2 and IFrames

Posted by easow83 on April 7, 2008


If you’re looking for a way to get multiple HTML pages in a Flex application without using Apollo, check out this code.

to use multiple iframes check out this code

Posted in Flex, Flex 2.0.1 | Leave a Comment »

Improving Flex application performance using the Flash Player cache

Posted by easow83 on April 7, 2008

First impressions mean a great deal. The first thing someone does when using an application is to download it—and if that process takes too long, it will detract from the user experience. To improve that experience, you need to learn strategies for reducing the download time and improving the startup time of your Flex applications.

This article shows you how to take advantage of the new Adobe Flash Player cache using Adobe Flex 3. I take a look at how to use this approach in both Flex Builder and the Flex SDK command-line tools.

read more

Posted in Flex, Flex 3 | Leave a Comment »

URL Link in Flex Application

Posted by easow83 on April 6, 2008

  You have  a user click on a link ,button, label
  whatever… from within a Flex application and have it take the user to a
  non-Flex, regular web page within their browser.. It’s probably a
  simple answer but I’m still getting up to speed your Flex!!!…….

try this

<mx:Button label=”Click Here” click=”navigateToURL(new
URLRequest(‘htp://’),’_mine)” />

Posted in Flex, Flex 2.0.1, Flex 3 | 4 Comments »

Application Creation Life Cycle Events for FLEX

Posted by easow83 on April 2, 2008

First lets go over what events there are for an application creation life cycle. These include preinitialize, initialize, creationComplete, and applicationComplete. Below is a diagram that explains when each happens and shows the order.  Application Creation Life Cycle Events

Looking at the code below we see that all that is done in the example is that when each event is fired I call a small function. This function, recordEvent, takes in a FlexEvent and adds some text to our report string. Also you see that not only is a little bit of text added, the time from flash.utils.getTimer() is printed. This getTimer() function returns the amount of milliseconds that have gone by since the start of the application. So what we get printed out is event.type and the time at which the event occurred.

<?xml version=“1.0” encoding=“utf-8”?>
<mx:Application xmlns:mx=;
  layout=“absolute” width=“349” height=“319”

      import flash.utils.getTimer;
      private var reportTxt:String = “”;
      private function recordEvent(event:FlexEvent):void
        reportTxt += (event.type + ” event occured at “
          + flash.utils.getTimer() + “ms” + \n);

  <mx:Panel x=“0” y=“0” width=“349” height=“319”
    layout=“absolute” title=“Life Cycle Events”>

    <mx:TextArea x=“10” y=“10” width=“309” height=“259”
      editable=“false” id=“txtReport” text=“{reportTxt}”/>


Now once the last event applicationCreation is fired all other events can start firing, such as click events and so on. Understanding how the application is created is an important aspect to any program but it is especially so in Flex because of its event driven nature.

I hope this quick run through helps you out when trying to figure out what starup event(s) you should hook into. If you would like more info on these check out the Adobe livedocs and a special thanks to Ted Patrick, who has great info on all aspects of Flex.

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

call to .net dll from flex

Posted by easow83 on March 16, 2008

FluorineFx provides an implementation of Flex/Flash Remoting, Flex Data Services and real-time messaging functionality for the .NET framework.
check the following links.
Fluorine Projector is an open source SWF2Exe Framework based upon Fluorine Remoting Gateway, Macromedia Flash® and Microsoft .NET Framework.

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

Difference between Flexsprite and Sprite

Posted by easow83 on March 12, 2008

The Sprite class is a basic display list building block: a display list node that can display graphics and can also contain children.
A Sprite object is similar to a movie clip, but does not have a timeline. Sprite is an appropriate base class for objects that do not require timelines. For example, Sprite would be a logical base class for user interface (UI) components that typically do not use the timeline.

The Sprite class is new in ActionScript 3.0. It provides an alternative to the functionality of the MovieClip class, which retains all the functionality of previous ActionScript releases to provide backward compatibility.

Inheritance: Sprite -> DisplayObjectContainer  ->InteractiveObject->  DisplayObject->  EventDispatcher->  Object
FlexSprite is a subclass of the Player’s Sprite class and the superclass of UIComponent. It overrides the toString() method to return a string indicating the location of the object within the hierarchy of DisplayObjects in the application. This string, such as “MyApp0.HBox5.Button17”, is built by the displayObjectToString() method of the mx.utils.NameUtils class from the name property of the object and its ancestors.
Inheritance :FlexSprite -> Sprite -> DisplayObjectContainer -> InteractiveObject -> DisplayObject -> EventDispatcher -> Object

Posted in Drawing APIs, Flex | Leave a Comment »

Flah tracer in windows vista

Posted by easow83 on March 6, 2008

I was trying to install flash tracer in my windows vista..i was not able to make it up…after going and expirementing ,finally i got it installed….

Follow the steps below.

1.You need the flash player debug version to run this

download flash degug version from here

2.You use the settings in the mm.cfg text file to configure the debugger version of Flash Player.. If this file does not exist, you can create it when you first configure the debugger version of Flash Player.


inside the mm.cfg …paste this

TraceOutPutFileName=C:\Users\{write your user name}\AppData\Roaming\Macromedia\Flash Player\Logs\flashlog.txt

3.. The filename is flashlog.txt, and its location is hard-coded,

C:\Users\username\AppData\Roaming\Macromedia\Flash Player\Logs

inside Logs create a text file  flashlog.txt.

4.restart your firefox

Posted in Flash Player, Flex 2.0.1 | Tagged: | 1 Comment »

How to scale flex application

Posted by easow83 on March 6, 2008

Flex’s underlying Flash Player has various ScaleModes that dictate how the screen should respond when the Flash ‘window’ is resized. By default, Flex apps use the NO_SCALE, which means that the screen area gets larger or smaller and can clip off the right and bottom of the screen. Flex will put up scrollbars in that case. It is the most common way applications respond to changes in screen size.

read the full article by  Alex Harui

Here we can scale the entire application

Posted in Flex, Flex 2.0.1 | Tagged: | Leave a Comment »