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 is always null. If it's flex project it works perfectly. In pure as3 it's not. Anyone know, what i'm doing wrong???

Va1tra
  • 11
  • 1
  • 1
    You're using a Flex Component, so it probably won't work in a non-Flex project because there is no "SystemManager" class to force the component through its lifecycle process. In such a case; I'm surprised it is compiling without errors. – JeffryHouser Jun 27 '13 at 13:00

0 Answers0