• Programming

    Posted on April 11th, 2011

    Written by Geek

    Tags

    , ,

    Take snap shot of chart using flex 3 and php

    Objective: Need to create a snapshot from flex, what would you do. Solution: Make any canvas or vbox or hbox as a base64encodeded string using flex commands, and pass it server script. on server script decode the base64 string that you have received. Image.mxml import mx.graphics.ImageSnapshot; import mx.core.UIComponent; public function getBase64String(component:UIComponent):void { var urlRequest:URLRequest = [...]

  • Programming

    Posted on April 9th, 2011

    Written by Geek

    Tags

    , , , ,

    Datagrid Column Renderer with image arrow

    Datagrid Column Renderer with image arrow Objective: To create a arrow marker on a datagrid column, when we do custom sorting using datagrid component. Solution: using datagrid column class extend a custom class and add a itemrenderer with image and label component. Program Listing: Main.mxml <?xml version=”1.0″?> <mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” initialize=”initDP();” xmlns:local=”*”> <mx:Script> <![CDATA[ import mx.events.DataGridEvent; [...]

  • Programming

    Posted on April 9th, 2011

    Written by Geek

    Tags

    , , , ,

    Flex 3 Tree Control with Radio Button and Checkbox Controls

    Flex 3 Tree Control with Radio Button and Checkbox Controls   Flex 3 Tree Control with Radio and Checkbox Controls Guys, I have created the Flex tree control with radio button and checkbox item renderer. Main File <?xml version=”1.0″ encoding=”iso-8859-1″?> <mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” creationComplete=”init();” > <mx:Script> import mx.controls.Alert; import mx.collections.*; import flash.events.*; import mx.events.*; import mx.controls.*; [...]

Switch to our mobile site

PHVsPjwvdWw+