0 Replies Latest reply on Apr 14, 2008 7:43 PM by chrisjjam

    loading two youtube videos

    chrisjjam
      Recently I'm completely stuck on something again.. was wondering if you could help =)

      It seems like a simple problem. I'm trying to load different youtube videos at runtime as external swfs. But only the first one loads, others just don't get displayed.

      So I have a swfloader and two buttons to switch source.


      public function loadSWF (filename : String) : void {
      swfLoader.source=filename;
      }


      < mx:SWFLoader id="swfLoader" source=" http://www.youtube.com/swf/l.swf?video_id=A72jSPEtOJI">< /mx:SWFLoader>
      < mx:Button x="688" y="505" label="1st" click="loadSWF(' http://www.youtube.com/swf/l.swf?video_id=A72jSPEtOJI')"/>
      < mx:Button x="761" y="505" label="2nd" click="loadSWF(' http://www.youtube.com/swf/l.swf?video_id=InY3SLWORj8')"/>


      It works fine with other swf files that don't involve youtube videos... any ideas... very much appreciated!