Fxcomponent:Flex视频播放器问题

时间:2010-10-21 12:46:57

标签: flex actionscript flex3

我正在使用fxcomponent:Flv video player来播放我的flv / mob文件。

您可以从here获得。

现在,播放器工作完美,如其网站所示,但当我尝试在弹出窗口中使用FXVideo控件时(弹出管理器帮助是here),该组件提供镜像!,奇怪,我没有更改任何代码。

所以任何人都可以帮我解决这个问题,因为我是动作脚本的新手吗?

图像:

alt text

为了快速设置,我将我的代码放在这里:

  1. FXVideo_Example.mxml文件(除变量外无变化)

                 

            [Bindable]
            private var source:String = "http://localhost/greatcatches.flv";
    
            ]]>
    </mx:Script>
    <controls:FXVideo width="480" height="360" source="{source}" autoPlay="false" bufferTime="10" /> 
    

  2. MainPage.mxml:

                 

            import mx.core.IFlexDisplayObject;
            import mx.managers.PopUpManager;
    
            private function showW():void {
                // Create a non-modal TitleWindow container.
                var helpWindow:IFlexDisplayObject =
                    PopUpManager.createPopUp(this, FXVideo_Example, false);
            }
        ]]>
    </mx:Script>
    
    <mx:VBox width="480" height="360">  
        <mx:Button click="showW();" label="Show"/>
    </mx:VBox>
    

1 个答案:

答案 0 :(得分:0)

使用spark组件结束!

<s:VideoPlayer id="videoPlayer"
   source="http://localhost/greatcatches.flv"
   autoRewind="true"
   muted="true"
   horizontalCenter="0"
   verticalCenter="0" />