0 Replies Latest reply on Dec 28, 2007 6:33 PM by Shelady

    Calling 3 different movies by one click, One after another.

      I have 9 small movies. I want to make a combo box and, provide 3 options to choose from. But each option should call 3 movies ONE AFTER ANOTHER WITHOUT USER INTERFERENCE. I want movies to stream one by one to save bandwidth and delay. Following is the option for calling one movie by choosing one option but I want to start 2nd and 3rd movie without user interference. How do I do that?

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">

      import mx.collections.ArrayCollection;

      [Bindable] private var swfDP:ArrayCollection = new ArrayCollection([
      {label:"Choose a Movie", data:""},
      {label:"Movie1", data:"myMovie.swf"},
      {label:"Movie2", data:"myMovie2.swf"},
      {label:"Movie3", data:"myMovie3.swf"}]);

      private function onComboChange(event:Event):void {
      // => Check to see if swf location exists, if it does then load the new swf.
      (event.currentTarget.selectedItem.data != "") ? loader.load(event.currentTarget.selectedItem.data) : "";

      <mx:ComboBox dataProvider="{swfDP}" change="onComboChange(event)" />

      <mx:SWFLoader id="loader" width="800" height="600" x="200" y="50" />