Friday, April 24, 2009



iPhone in Action

Introduction to Web and SDK Development
Christopher Allen and Shannon Appelcline
December, 2008 | 472 pages










Download this book from below link without any File Password.

Iphone_In_Action.PDF

Enjoy Iphoning

I am also updating some more Iphone Cook books with it . For more links Please let me Know from you in the Form of Comments.

Thanks

Below link is Iphone Cook Book link for Download.
Iphone_Developer_Cook_Book.PDF

Tuesday, March 17, 2009



Adobe Integrated Runtime (AIR) revolutionizes the way Rich Internet Applications (RIAs) are deployed and supports two primary technologies Flash and HTML/Ajax in order to make desktop development something that every web developer can do. This book walks you through eleven fully implemented AIR applications with source code that you can use as they currently exist or customize. Each project begins with a discussion of architecture and design, followed by code implementation. You ll get hands-on knowledge of AIR application design and development that you can then use to build dynamic RIAs.


You can download this e-book from this below link without any password.
WroxBeginningAdobeAIRApr2008.pdf

Monday, March 9, 2009

i was posting the post after a long gap due to my busy schedule but i am back and updating post now daily

in this post we discuss how to reduce the build swf size .

there are some good tricks some of them are
1. if you application not have much dependency than split your application in Modules. where you can load and unload module according to your need.In module applications you just have to build a module and use that module swf for your application by providing the module swf url.
like ModuleLoader id='Module1' url='MyModule.swf' so don't think it's take your time.

2. Beside this if your application size increasing again again then you can use the Concept of runtime RSL into your Project, by using this feature you can split your project swf from the flex Framework.swf. where you flex FrameWork takes near about 200 to 400 kb. so by using this feature you can directly remove this 200 to 400 kb from your application swf.
For more study about this topic fo to your flex 3 help contenent and go in the Advanced flex Programming features. your can find step by step process to use RSL Concept in your Project.
But there is one darwback for the first time load it's take some time but after the FrameWork.swf is loaded in Client System then it does not take time to load your flex Application.

3. third very simple if your application size increasing due to the large image Embedation into the Project. then you can use the Concept of runtime css loading. In flex 3 this is very cool feature where you can embed large about images in your flex application without loading them with your flex application. steps to create the runtime swfs are as follows.
1. make a css file in your flex project.
2.embed all images that you like .
3.right click your css file and Choose the load as swf Options . this Option on project build will genrate a swf file of your css file.
4.no you can laod this swf on the Flex intialitions method call
like this

StyleManager.loadStyleDeclarations("../assets/MyStyles.swf");

this simply laod your css swf . even you can put multiple swfs in your Poject
and laod them when you need them.


Saturday, February 7, 2009

Hi Every One .


Many Students just asked me how to send the flex xml data from flex to a JSP Page.
Well it's not so difficult i am writing some of my Codes here.

First start with your flex Code











Here all xml tag can be accesed at the Jsp page .

By simple coding like 
String webmasterid=request.getParameter("webmasteid");
String BImage=request.getParameter("BImage");
String themecolor=request.getParameter("themecolor");
String HeaderText=request.getParameter("HeaderText");
String LImage=request.getParameter("LImage");

you can get Every xml parameter from flex and now you have to send the Xml data back to the Flex application . Your Just page Output Must be text/xml.  just send your xml data and parse the xml data into your Flex application. well after a mine Big Project i will Upload my latest flex Code with java Here.

Monday, November 10, 2008

Sunday, November 9, 2008




















  • Open the General > Workspace > Local History preference page.
  • In the Days to keep files field, type the number of days that you want to keep records for any one Workbench resource. For example, if you type 7, then a history of saved states from the last seven days will be kept.
  • In the Entries per file field, type the number of states to keep for any one Workbench resource. Note that when you exceed the number of entries per file, the oldest changes are discarded to make room for the newer changes.
  • In the Maximum file size (MB) field, type the maximum file size (in MB) of a resource for which a local history should be kept. If the size of the resource exceeds the maximum amount of file size allocated, no local history is kept for that resource.
  • Click OK to set your preferences and close the Local History Preferences page.

  • Yoy Will get this type of Window 






















    By Settings this above parameteres you can set your local flex project history.

    Hi Guys  I recentally Found one Cool Thing in Flex IDE . That is the Flex Local Project History.


    Let me clear you the thing Suppose your are Working on flex Project for 6 or 7 days but due some reason you need you code that you write before 6 0r 7 days ago than if you didn't took your Project backup than how will you reconize that what chagnes you have did at last 6 days , May be that you just forgot all the things or Code that you have did,
     than don't worry Flex has the fasility of maintaing his own local History where you can Comapre your last One month Code files with Current Code files . 


  • In one of the navigation views, select the file that you want to compare with a local history state.
  • From the resource's pop-up menu, select Compare With > Local History. The Compare with Local History page opens.
  • Select a state in the Local History list. The Text Compare editor opens.
  • Click the Select Next Change and Select Previous Change buttons to browse the changes made between the state in the local history and the Workbench resource.
  • Click OK when you are finished























  • Than you Will see this type of window 






    Wednesday, November 5, 2008

    Hi Guys , I recentally found a cool trick. the trick is How you will call external method from datagrid itemrender that do some action on your current datagrid.


    I am posting a simple Example that is the Answer of this Question. By using this Code your can perform any action on datagrid from that own datagrid ItemRenderButton or Image.

    Code is as Follows

         mx:Script
    import mx.collections.ArrayCollection;
             import mx.controls.Alert;
                [Bindable]private var myDP:ArrayCollection = new ArrayCollection([
                   {label1:"Order #2314", quant:3, Sent:true},
                   {label1:"Order #2315", quant:3, Sent:false} ]);               
                public function showRowID():void{
                 Alert.show("My selected row is"+myDG.selectedIndex.toString());
                }
            
        mx:Script

        mx:DataGrid id="myDG" dataProvider="{myDP}" variableRowHeight="true"
           mx:columns
              mx:DataGridColumn dataField="label1" headerText="Order #"
              mx:DataGridColumn dataField="quant" headerText="Qty"
                mx:itemRenderer
                  mx:Component
    mx:Button label="{'Click me'+data.quant}" click="{outerDocument.showRowID();}"
          mx:Component
                mx:itemRenderer
                mx:DataGridColumn
           mx:columns 
        mx:DataGrid

    Hi Guys I hope every body doing great things in Flex. We all know that FLEX 3.0 has the feature of module. By Using module you can make your application in parts , I will discuss this concept later in my blog . right now i am awaring you about how to reload your module in Flex 3.0 , technically module reloading module is not possible but you can reload it each time at the time of Loading.

    When you unload your module and again when you load your module you just have to add one random number with the module url. By Using the ramdom number each time module loads its data as Freash or wiht new swf. 
    The Code is as follows Right now i am not posting the live example but soon i will post.

    yeh!  code is 

    ModuleLoader id="Mymodule" ready='somefunction'

    when your assign the url to Module set url like this 

    Mymodule.url='somepath/mymodule.swf?'+math.random();

    this code load freash module or swf each time when you load the module or swf.




    Tuesday, November 4, 2008

    Hi Guys Well every one Know how to use Hand Cursor in LinkButton and a Simple Button but if You want to make a Label or Text as Button than you can easily do that like add some click event on Click of that Label or TextField but by buttonMode true or by useHandCursor  property set to true  you can't get HandCursor Over a Label or TextField than at Last Use This Property as Well.


    Label text='Searching' buttonMode='true' mouseChildren='false' useHandCursor='true'

    By setting the mouseChildren property false you get handCursor Over a Label.