hi all

i have one button clicking the button draw method wil call , textarea
will  appear in canvas,

how to dynamically apply the styles to multiple textarea obj

i want apply previous textarea also if need any modification


how we need to target current obj...how to call current obj , i have
only one instance of textarea

how to dynamically call the textarea obj.


                 public function draw_text(event:Event):void
                {

                          txt_area1 = new TextArea();
                      txt_area1.text = 'Enter Text Here';
                          txt_area1.x = 250;
                          txt_area1.y = 150;
                          txt_area1.setStyle('textAlign','center');
                          txt_area1.width = 200;
                          txt_area1.name = 'txt_area1'
                          txt_area1.height = 100;
                          txt_area1.setStyle('textAlign','left');
                          txt_area1.selectable = true;
                          txt_area1.doubleClickEnabled=true;

                          //txt_area1.setStyle('backgroundAlpha',0);
                          //txt_area1.setStyle('borderStyle','none');
                          txt_area1.setStyle('fontSize','14');
                          txt_area1.setStyle('fontStyle','normal');
                          Application.application.tabcan.addChild(txt_area1);
                          txt_area1.addEventListener
(MouseEvent.MOUSE_MOVE,mouseMoveHandlertext1);
                          txt_area1.addEventListener
(MouseEvent.DOUBLE_CLICK,texttoolfunction1);
                          
txt_area1.addEventListener(Event.CHANGE,textwidthheight1);
                          txt_area1.addEventListener
(KeyboardEvent.KEY_DOWN ,enterkeydown1);
                }





thank you
yugi

--~--~---------~--~----~------------~-------~--~----~
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