我正在尝试导入flex组件但不起作用。
mxml导入:
双响炮:
我只需要导入要使用的组件
<flexiframe:IFrame id="googleIFrame"
label="Google"
source="http://www.google.com"
width="80%"
height="80%"/>
如果您尝试在MXML中使用它,则需要将其添加到MXML文件中的命名空间声明中。
xmlns:flexiframe="com.google.code.flexiframe"
它看起来像你的导入部分有错误的值,它应该是com.google.code.flexiframe.IFrame
而不是com.google.com ...如果它将在ActionScript代码中使用它,你只需要它。
我只放了类型swc并正常工作。
<dependency>
<groupId>com.google.code.flex-iframe</groupId>
<artifactId>flex-iframe</artifactId>
<version>1.5.1</version>
<type>swc</type>
</dependency>