top-image

Archives for Flex Examples

Flex calendar
This project strives to provided flex components for crating calendar components. (Timeline, day, week, month and agenda view) This projects is still work in progress and is not even at an alpha stage, but please look around and offer help or suggestions. Check out the current status of the code: Sample Calendar Galery of Components ...more»
How to monitor the itemClick in  FlexRadioButtonGroup when RadioButton was clicked
How to monitor the itemClick in FlexRadioButtonGroup when RadioButton was clicked The full codes: ----------------------- layout="vertical" verticalAlign="middle" backgroundColor="white" viewSourceURL="srcview/index.html"> import mx.events.ItemClickEvent; private function radioGroup_itemClick(evt:ItemClickEvent):void { var now:String = new Date().toTimeString(); lbl.text = evt.label + " (" + now + ")"; } ]]> itemClick="radioGroup_itemClick(event);" /> label="Red" group="{radioGroup}" /> label="Orange" group="{radioGroup}" /> label="Yellow" group="{radioGroup}" /> label="Green" group="{radioGroup}" /> label="Blue" group="{radioGroup}" />     ...more»
My xmlutility- here is the code
xmlutility package { public class XMLUtilities { // public static function XMLListToSimpleArrayByDepth(xmlList:XMLList, depthLimit:int=10):Array{ var resultArr:Array=new Array(); for each (var i:XML in xmlList){ resultArr =XMLToSimpleArrayByDepth(i,resultArr, depthLimit+1); } return(resultArr); } private static function XMLToSimpleArrayByDepth(xml:XML, targetArr:Array, depthCur:int=10):Array{ depthCur--; for each (var i in xml.children()){ if (IsTextNode(i)){ targetArr.push(i); }else{ if (depthCur<=0){continue} targetArr=XMLToSimpleArrayByDepth(i,targetArr, depthCur); } } return(targetArr); } // public static function XMLListToSimpleArray(xmlList:XMLList):Array{ var resultArr:Array=new Array(); var textXMLList:XMLList=xmlList..*.(children().length()===0); for each (var i:XML in textXMLList){ resultArr.push(i); } return(resultArr); } // public static function XMLToSimpleArray(xml:XML):Array{ var resultArr:Array=new Array(); var textXMLList:XMLList=xml..*.(children().length()===0); for each (var i:XML in textXMLList){ resultArr.push(i); } return(resultArr); } // public static function XMLListToComplexArray(xmllist:XMLList):Array{ var resultArr:Array=new Array(); for each (var i:XML ...more»
Using an embedded font with the ComboBox control in Flex
The following example shows how you can use an embedded font with the Flex ComboBox control by setting the fontFamily style. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"         layout="vertical"         verticalAlign="top"         backgroundColor="white">     <mx:Style>         @font-face {             src: local("Base 02");             fontFamily: EmbeddedBase02;             fontWeight: bold;         }         @font-face {             src: local("Base 02");             fontFamily: EmbeddedBase02;         }     </mx:Style>     <mx:Array id="arr">         <mx:Object label="One" />         <mx:Object label="Two" />         <mx:Object label="Three" />         <mx:Object label="Four" ...more»
Flex using:Show Your Products In 360 Degree View
It is so cool if show your products in 360 degree view on your website to your customer? In fact it is not difficult to realize after you read the following example. First you need prepair a serial images about your products in different views. The basic principle is by using SliderBar to control the image. Generally, you will meet ...more»
Page 1 of 2:1 2 »
bottom-img