【问题标题】:Textarea component in flash cs3flash cs3中的Textarea组件
【发布时间】:2013-06-14 12:32:08
【问题描述】:

我有这个 htm 文件,我想在 Flash 应用程序的 textarea 组件中显示它。 但是我在调​​试电影时遇到了这个错误 错误 #2044:未处理的 IOErrorEvent:。 text=错误 #2035:找不到 URL。

var loader:Loader = new Loader();

loader.load(new URLRequest("会议纪要 - 论文 - 1.htm")); addChild(加载器);

请提供任何解决方案!

【问题讨论】:

    标签: actionscript-3 flash-cs3


    【解决方案1】:

    Loader 类用于显示像另一个 swf 一样的视觉内容。文件或图像。 您要使用的是URLLoader 类。

    简单粗暴的例子:

    new URLLoader(new URLRequest("meeting minutes - thesis - 1.htm")).addEventListener(Event.Complete,function(e:Event){
                    yourTextAreaComponentInstance.text = String(e.target.data);
                });
    

    你想看看example 写得很好(处理错误/等等)

    【讨论】:

      猜你喜欢
      • 2010-10-20
      • 2011-01-06
      • 1970-01-01
      • 2010-10-15
      • 2011-04-05
      • 2015-09-14
      • 2011-05-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多