Posted in Flex on January 21, 2008 | 1 Comment »
Try this sample application:
==================================
Application.mxml
==================================
<?xml version=”1.0″?>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” xmlns=”*“>
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;import mx.charts.chartClasses.DataTip
[Bindable]
private var medalsAC:ArrayCollection = new ArrayCollection( [
{ Country: "USA", Gold: 35, Silver:39, Bronze: 29 },{ Country:
"China", Gold: 32, Silver:17, Bronze: 14 },{ Country: "Russia", Gold: 27, Silver:27, Bronze: 38 } ]);
]]>
</mx:Script>
Read Full Post »
Posted in Flex on January 15, 2008 | 9 Comments »
Try this code:
<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml”
layout=”absolute“>
<mx:Script>
<![CDATA[
public function convertToRGB(drawColor:uint):String {
var r:String="";
var b:String="";
var g:String="";
var hexColor:String=drawColor.toString(16);
if (hexColor.length == 1)hexColor=
"000000";
else if (hexColor.length == 4) hexColor=
"00"+hexColor;
r=parseInt(hexColor.substr(0,2),16).toString();
g=parseInt(hexColor.substr(2,2),16).toString();
b=parseInt(hexColor.substr(4,2),16).toString();
return r+","+g+","+b;
}
]]>
</mx:Script>
<mx:Panel x=”106” y=”54” width=”250” height=”200” layout=”absolute” title=”Convert To RGB“>
<mx:ColorPicker x=”81” y=”10” id=”colorPicker” change=”rgbValue.text=convertToRGB(event.target.selectedColor);”/>
<mx:Label x=”20” y=”10” text=”color:“/>
<mx:Label x=”20” y=”57” text=”RGB:“/>
<mx:Text x=”72” y=”57” text=”” width=”101” id=”rgbValue“/>
</mx:Panel>
</mx:Application>
Read Full Post »
Posted in Flex on January 2, 2008 | Leave a Comment »
Hi Friends…….This is the link to a flex article in Adoble flex development center.Hope its help to all.
http://www.adobe.com/devnet/flex/articles/fig_pt7.html
Read Full Post »