Hi Gerald,

U want to create a component from Flex native component? If yes means create
a custom component extending from Flex native component and then add your
own methods and properties to the custom component.

For example,

public class CustomTextInput extends TextInput
{
        private var _sampleText:String;

        //Constructor (if you needed)
        public function CustomTextInput ()
        {
            super();
        }

        public function get sampleText():String
        {
            return _sampleText;
        }

        public function set sampleText(b:String):void
        {
            //your logic
            _sampleText = b;
        }
}

Likewise you can add methods and can override existing methods.....




-- 

Regards,

Manikandan.S  <http://www.umoldit.com>
<http://www.umoldit.com>

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to