1 Reply Latest reply on Aug 16, 2011 4:19 PM by kglad

    strange issue using stop() to control a timeline after loadClip

    ziofonta222

      Hello, i have this strange issue:

      i want to control the timeline of a swf loaded with loadClip command.

      i wrote this code

       

      var loader:MovieClipLoader = new MovieClipLoader();

      loader.addListener(this);

      function onLoadComplete(_mc:MovieClip) {

         _mc.play()

      }; 

      loader.loadClip(swfname,_root.holder)

       

      function pause() {

      _root.holder.stop()

      }

       

       

       

      function pause on a button is used to stop the playback of the loaded movieclip.

       

      strange thing is that stop() works when testing the movie by flash application and playing it from the projector. It DOES NOT WORK when running it from swf directly or by html with swf embedded.

      I checked lot of time and the name of the "container" is resolved, but the command is not working for its timeline.

       

      thanx for helping

       

      Daniele