7 Replies Latest reply on Nov 26, 2008 2:38 PM by Gregory Lafrance

    VideoDisplay source loaded from a button

      I need help. I'm new to this so bare with me...

      I have 5 buttons with a VBox with different FLV URL references like the one below...

      click="MyVid.source = INTRO_URL;

      and I declared each video as...

      private const INTRO_URL:String = " http://www.mywebsite.com/About-Us/video/video1.flv";

      How do I get the source of the VideoPlayer to change when a button is clicked?

      <mx:VideoDisplay id="MyVid" width="420" height="315" autoPlay="false" source="{}" volume="{Vol.value}"/>