这应该非常简单,但我似乎无法在运行时设置标签的文本。它抛出“1120:未定义属性 lbl_param 的访问”
<?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"
width="398" height="85" minWidth="398" minHeight="85">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:Label id="lbl_param" x="19" y="10" width="105" height="29" text="Paramaters: "/>
<fx:Script>
<![CDATA[
lbl_param.text = "test113";
]]>
</fx:Script>
</s:Application>