Playing video - stupid bug :(
Hi
I'm trying to make app play video using VideoPLayer component. I'm using this example:
It works great wehn I add required murkup in MXML directly.
But when I'm trying to add items from code - video is'nt played. Here is my code:
var pnl:Panel=new Panel();
pnl.title = "Spark VideoPlayer Example"
pnl.width=0.75 ;pnl.height=0.75;
pnl.horizontalCenter="0"
pnl.verticalCenter="0"
var gr:VGroup = new VGroup();
gr.left = 10;
gr.right=10;
gr.top=10;
gr.bottom=10;
var l:Label = new Label();
l.text = "Text Text text";
/*l.color = "blue";*
/l.width = .75;
var vid:VideoPlayer = new VideoPlayer();
vid.source = "rtmp://fmsexamples.adobe.com/vod/mp4:_cs4promo_1000.f4v";
vid.width = .75;
vid.height = .75;
vid.autoPlay= false;
pnl.addElement(gr);
gr.addElement(l);
gr.addElement(vid);
stage.addChild(pnl);
Could you help me please?
