Hello Hissam, When I am using the RichTextEditor within a form tag and adding the progress Bar it is not working, but Text Area and button are adding fine. Now if I am remove the form tag and just use the RichTextEditor, its working absolutely fine.
I can't understand what is the problem of using form tag. *With form tag*: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> <![CDATA[ import mx.containers.*; import mx.controls.*; import flash.display.Sprite; import flash.text.TextField; import flash.text.TextFieldAutoSize; import flash.text.TextFormat; public var pBar:ProgressBar; public function intRt():void{ var tA:TextArea = new TextArea(); var txtFld:TextField = new TextField(); txtFld.text="Working"; tA.width=100; tA.height=20; tA.text="hi all"; tA.editable=false; var but:Button = new Button(); but.label = 'Post News'; pBar=new ProgressBar(); pBar.width=100; rte.toolbar.addChild(but); rte.toolbar.addChild(tA); rte.toolbar.addChild(pBar); } ]]> </mx:Script> <mx:Form width="100%"> <mx:FormItem label="Txt editor" width="100%"> <mx:RichTextEditor id="rte" width="500" height="308" creationComplete="intRt()"/> </mx:FormItem> </mx:Form> </mx:Application> *************************************************************************************************************************************************************** *Without Form tag:* <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> <![CDATA[ import mx.containers.*; import mx.controls.*; import flash.display.Sprite; import flash.text.TextField; import flash.text.TextFieldAutoSize; import flash.text.TextFormat; public var pBar:ProgressBar; public function intRt():void{ var tA:TextArea = new TextArea(); var txtFld:TextField = new TextField(); txtFld.text="Working"; tA.width=100; tA.height=20; tA.text="hi all"; tA.editable=false; var but:Button = new Button(); but.label = 'Post News'; pBar=new ProgressBar(); pBar.width=100; rte.toolbar.addChild(but); rte.toolbar.addChild(tA); rte.toolbar.addChild(pBar); } ]]> </mx:Script> <mx:RichTextEditor id="rte" width="500" height="308" creationComplete="intRt()"/> </mx:Application> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_india@googlegroups.com To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---