我试图在Java中编译Bruce思想的第四版中的gui/flex/songs.mxml,并在Flex3.4中得到一个编译错误。
下面是这个示例的简化版本,它提供了相同的错误:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
backgroundColor="#B9CAD2">
<mx:MediaPlayback id="songPlayer"
contentPath=""
mediaType="MP3"
height="70"
width="230"
controllerPolicy="on"
autoPlay="false"
visible="false" />
</mx:Application>下面是调用和错误:
>mxmlc.exe songs.mxml
Loading configuration file C:\javaTools\flex_sdk_3.4\frameworks\flex-config.xml
C:\songs.mxml(5):
Error: Could not resolve <mx:MediaPlayback> to a component implementation.
<mx:MediaPlayback id="songPlayer"我在这里做错什么了?
发布于 2009-10-22 20:27:57
该组件在flex中不再可用,我相信从FLEX3.0开始。有一个内置的视频显示组件,但您必须为它设置控件。如果您想要一个更完整的预构建组件,您需要从闪存导入一个。下面是adobe关于如何做到这一点的一个很好的教程- http://www.adobe.com/devnet/flex/articles/video_flex.html
https://stackoverflow.com/questions/1609639
复制相似问题