1
package
{
    import flash.display.Sprite;

    import spark.components.VideoDisplay;
    import spark.components.VideoPlayer;

    [SWF(width="850", height="630")]
    public class mainApp extends Sprite
    {
        public var com:VideoPlayer;

        public function mainApp()
        {
            var d:VideoDisplay = new VideoDisplay();
            addChild(d);

            d.addEventListener("creationComplete", function(event:*):void {
                d.videoObject.attachCamera(null);
            }
        }

    }
}

videoObject 始终为空。如果它是弹性项目,它可以完美运行。在纯 as3 中不是。任何人都知道,我做错了什么???

4

0 回答 0