Check this sample application which highlights all instances of a searched string in an Text area and also find and highlight the searched string with a find and previous button
http://labs.tom-lee.com/Flex/HighlighterDemo/HighlighterDemo.html
This ia a very good example with the viewsource enabled.
Archive for the ‘Flex’ Category
Text Highlighting in Flex
Posted in Flex on November 19, 2008 | Leave a Comment »
Tree control with CheckBox
Posted in Flex on July 16, 2008 | Leave a Comment »
Friends……i found a very good component which Customization the default Flex Tree component.This component simply add a checkbox on every tree item.The checkbox allows 3 states: selected, unselected, partially selected.Then you can control the state of checkbox nodes within the code.
To see the preview visit:http://www.sephiroth.it/test/flex/3/treecheckbox/index.html
Code download: http://www.sephiroth.it/file_detail.php?id=151
Detect when the image source is changed.
Posted in Flex on June 30, 2008 | Leave a Comment »
The following example shows how you can detect when the source property has changed on a Flex Image control using the sourceChanged event.It shows a alertbox when the source is changed.
<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml“
layout=”vertical”
verticalAlign=”middle”
backgroundColor=”white”>
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private function init():void {
img.addEventListener("sourceChanged", image_sourceChanged);
}
private function image_sourceChanged(evt:Event):void {
Alert.show(evt.toString(), evt.type);
}
[...]
Build your own chat application
Posted in Flex on June 11, 2008 | 6 Comments »
Flex supports publish and subscribe messaging through the open source BlazeDS Message Service. The Message Service manages a set of destinations that Flex clients can publish and subscribe to. Flex provides two components, Producer and Consumer, that you use to publish and subscribe to a destination. To subscribe to a destination, you use the subscribe() [...]
Top 10 Mistakes when building Flex Applications
Posted in Flex on April 22, 2008 | Leave a Comment »
I came across an interesting post while reading Raghu’s blog
In this post, Adobe’s James Ward teams up with InfoQ.com to bring you another Flex Top 10 (our most recent Flex Top 10). Flex is an open source application development framework for building rich Internet applications that run in the web with Flash Player, or on [...]