Flex
文章平均质量分 90
davyjones2010
生活在这个世界而不知其义,如同徜徉于一座伟大的图书馆而不碰书籍。
展开
-
Flex: How to create a custom Event
1. Create a subclass that extends the flash.events.Event base class2. Add properties to the subclass to hold the data you want to dispatch3. Create the event class's constructor: 3.1 In...原创 2013-03-29 14:01:39 · 99 阅读 · 0 评论 -
Flex4: How to Create Checked List ComboBox?
1. ComboCheck.as/** ComboCheck* v1.2.6* Arcadio Carballares Martín, 2009* http://www.carballares.es/arcadio*/package com.arcadiocarballares { import flash.events.Event; ...原创 2014-03-04 11:23:46 · 118 阅读 · 0 评论 -
Flex4: How to Upload File to Servlet (Part II)
1. In this part, we focus on server side programming: 1) At what format did the data sent from Flex? 2) How did Servlet get data sent from Flex? 3) How did Servlet send response to Fl...原创 2013-04-23 23:00:46 · 114 阅读 · 0 评论 -
Flex4: How to Upload File to Servlet (Part I)
1. Flex<?xml version="1.0" encoding="utf-8"?><s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.原创 2013-04-23 22:11:49 · 97 阅读 · 0 评论 -
Flex: Simple Components Introductions & Examples
1. PopUpWindow<?xml version="1.0" encoding="utf-8"?><s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="librar原创 2013-04-12 15:09:03 · 93 阅读 · 0 评论 -
Flex: How to customize header renderer and column renderer for DataGrid?
1. Main Application<?xml version="1.0" encoding="utf-8"?><s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="l原创 2013-04-09 13:54:39 · 105 阅读 · 0 评论 -
Flex: DataBinding in depth (Part Four)
Flex Data Binding Pitfalls and Common Misuse Mistakes 1. Using [Bindable] When Binding Is Not Necessary<?xml version="1.0" encoding="utf-8"?><s:Application xmlns:fx="http://ns.adobe....原创 2013-04-08 19:11:38 · 95 阅读 · 0 评论 -
Flex: DataBinding in depth (Part Three)
1. Normal Data Binding for VO package vo{ [Bindable] public class Student { public var id:int; public var name:String; public var gender:String; public function Student(id:int...原创 2013-04-08 18:36:39 · 80 阅读 · 0 评论 -
Flex: DataBinding in depth (Part Two)
1. Implicit Data Binding & Explicit Data Binding //The main difference between implicit and explicit is that implicit data binding is //done at run time while explicit data binding is don...原创 2013-04-08 17:15:44 · 95 阅读 · 0 评论 -
Flex: DataBinding in depth (Part One)
1. One-way binding & Two-way binding 1) One-way binding: Source ->Destination, once source changed, destination will change accordingly. 2) Two-way binding: Source<->Destinat...原创 2013-04-08 16:34:30 · 125 阅读 · 0 评论 -
Flex: How to specify DataGrid sortFunction and Code refractor
1. The previous article about data grid sort function that still have problems about code refractor.http://davyjones2010.iteye.com/blog/1840335 2. Below are solutions for a cleaner code with ...原创 2013-04-04 14:03:27 · 90 阅读 · 0 评论 -
Flex: How to specify DataGrid sortFunction and disable default sortFunction
Requirements: 1. Set the first column of the data grid to be checkbox, indicating we can select one or more specific rows. 2. Once we clicked the header, then the data grid can be sorted...原创 2013-04-01 19:44:27 · 124 阅读 · 0 评论 -
Flex: How to use a custom Event
1. Declare a custom Event that extends Event and have some properties for data transfer purpose.2. Declare the custom Event in component/application's metadata block3. In the declared component/a...原创 2013-03-29 18:38:12 · 123 阅读 · 0 评论 -
Flex4: How to Use Validator(Part I)
1. A simple example for static bind validator<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spa...原创 2013-10-08 19:22:32 · 147 阅读 · 0 评论