4 Replies Latest reply on Nov 27, 2007 9:24 AM by Greg Dove

    ActionScript 2

    groveman
      Hi all,

      I would like to load an external swf into an empty movie clip from an video cue point. The video is one of several loaded from a combo box into a video object and loads ok. I have used the attached script, but nothing loads. Any help greatly appreciated!



      var nc:NetConnection = new NetConnection();
      nc.connect(null);

      var ns :NetStream = new NetStream(nc);
      myVid.attachVideo(ns);


      function playMovie():Void {
      ns.play(videoList.data[videoList.selectedIndex]);
      }

      var listenerObject:Object = new Object ();
      listenerObject.change = function (eventObject:Object):Void{
      ns.close();
      playMovie();
      }

      mcPause.onPress = function() {
      ns.pause (true);
      }

      mcPlay.onPress = function() {
      ns.pause(false);
      }

      videoList.addEventListener ("change",listenerObject);
      playMovie();


      var ourListner:Object = new Object();
      ourListner.cuePoint = function( eventObject: Object):Void {
      var cuePointName = eventObject.info.name;
      if(cuePointName == "SuspensionCuePoint") {
      loadMovie("ECOS_menu_1.swf", emptyMovie_mc);
      }
      }