Apache flex 在Flex上追加textarea文本字段
由于私有变量ta:TextArea是mx组件,actionscript3文件中是否存在spark TextArea删除?是:Apache flex 在Flex上追加textarea文本字段,apache-flex,actionscript-3,textarea,Apache Flex,Actionscript 3,Textarea,由于私有变量ta:TextArea是mx组件,actionscript3文件中是否存在spark TextArea删除?是: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx=
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<s:TextArea id="textArea">This is a spark TextArea component</s:TextArea>
</s:Application>
或:
既然私有变量ta:TextArea是mx组件?那是什么意思?
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
creationComplete="init(event)">
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
import spark.components.TextArea;
private var _textArea:TextArea;
private function init(e:FlexEvent):void
{
_textArea = new TextArea();
_textArea.text = "This is a spark TextArea component";
addElement(_textArea);
}// end function
]]>
</fx:Script>
</s:Application>