【问题标题】:how to display one mxml in another如何在另一个中显示一个 mxml
【发布时间】:2010-10-18 14:18:28
【问题描述】:

我有一个处理 xml 并在面板上显示图形的 mxml 文件。 我需要在另一个 mxml 文件中显示第一个 mxml,在某些区域(HBox,VBox,Panel,不关心)。我该怎么做?

【问题讨论】:

    标签: apache-flex actionscript-3 mxml


    【解决方案1】:

    这个问题听起来太简单了,所以我想知道我是否遗漏了什么?为什么不将第一个 mxml 设置为 HBox/VBox 中的子项?

    <AnotherMXML>
      <VBox>
           <FirstMXMLComponent/>    
      </VBox>
    </AnotherMXML>
    

    【讨论】:

    • 我试过了,但是我遇到了这种错误:ArgumentError: Error #2025: The provided DisplayObject must be a child of the caller.
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-12-08
    • 2011-09-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多