在我的代码中,我定义了以下内容:
<s:Image id="test" x="50" y="50" width="30" height="30" click="onClick_clickHandler(event)" smooth="true" smoothingQuality="high" source="@Embed('icons/myImage_60_off.png')"/>
我想要的是能够在用户每次单击图像时更改图像的来源——类似于收藏夹在浏览器上的工作方式。我不知道如何从我的代码中更改图像的来源。
谢谢