On Fri, Jan 2, 2009 at 11:06 PM, Venkat Viswanathan
<[email protected]>wrote:
> Hi Yugi,
>
> What exactly are you doing to attach the event listeners. Ideally it should
> listen to all the components. Can you share your code? It will help us
> figure out the issue.
>
> Regards,
> Venkat
> www.venkatv.com
>
thank for sharing.
am written like clicking one button this *draw_text() function* will call
private function draw_text(event:MouseEvent):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 = false;
txt_area1.setStyle("backgroundAlpha","0");
txt_area1.setStyle("borderStyle","none");
txt_area1.setStyle("fontSize","14");
txt_area1.setStyle("fontStyle","normal");
tabcan.addChild(txt_area1);
txt_area1.addEventListener(MouseEvent.MOUSE_DOWN,texttoolfunction1);
public function texttoolfunction1(event:MouseEvent):void
{
txt_area1.setSelection(0,txt_area1.length);
properities_viewstack.selectedIndex = 1;
textSelection1 = new TextRange(txt_area1,true);
Application.application.tool.target = event.currentTarget;
}
this text area have the functionality to dragging also
when clicking button am creating creating txt_area1
if created 3 txt_area1 components . recent one only listing
texttoolfunction1
if any modifications on previous it is not working .
to apply styles i have another some buttons like text styles
thank you
yugi.
>
>
> On Fri, Jan 2, 2009 at 10:23 AM, yuga <[email protected]> wrote:
>
>>
>> hi
>>
>> how to listen runtime component actions like mouse click
>>
>> i created runtime multiple components but the previous component is
>> not listening .
>>
>> my actions working only current component .
>>
>>
>> help me out
>>
>>
>> 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
-~----------~----~----~----~------~----~------~--~---