ActionScript3如何控制使用htmlText属性嵌入动态文本框中的图像?

从Flash Player7开始,我们就可以通过动态文本框的htmlText属性,使用 <img> 标签来嵌入图像或者swf影片。在Flex的LiveDoc中,可以找到这样一段描述 <img> 标签的“id”属性的文字:

id Specifies the identifier for the imported image. This is useful if you want to control the embedded content with ActionScript.

这说明,可以通过制定id属性,让ActionScript控制嵌入的图像。

但是,怎样控制呢?我在Flex的帮助中并没有找到相关的信息,倒是在Flash CS3的“学习 Adobe Flash 中的 ActionScript 2.0”章节中找到了相关的说明:

Flash 为每个 标签创建一个新的影片剪辑并在 TextField 对象中嵌入该影片剪辑。 标签的 id 属性允许您将实例名称分配到创建的影片剪辑。这允许您使用 ActionScript 控制该影片剪辑。

Flash 创建的影片剪辑作为子级影片剪辑添加到包含该图像的文本字段中。

在帮助中使用这样的代码来控制嵌入TextField中的swf文件:

1this.createTextField("textField_txt", 10, 0, 0, 300, 200);
2textField_txt.html = true;
3textField_txt.htmlText = "Here's an interesting animation: ";
4stop_btn.onRelease = function() {
5    textField_txt.animation_mc.stop();
6};

但是,这毕竟是ActionScript2的方法,在ActionScript3是行不通的。在ActionScript3中如何做呢?有人知道么?

:neutral: