1 Reply Latest reply on Jan 4, 2010 9:05 AM by bringrags

    Pausable TemporalProxyElement

    gregbown Level 1

      Hello all.


      I have a content area that will need to display elements for 10 seconds each(VideoElement, SWFElement, etc) however I need to be able to pause the Temporal elements on mouse over because each element is attached to an exit url.


      I could not find a way to access any of the vaiables like _elapsedTime or _duration however I did discover that I can retrieve a reference to the PlayTrait.

      var pausableTemporalElement:TemporalProxyElement = new TemporalProxyElement(5,new SWFElement(new SWFLoader(), new URLResource(new URL(LOCAL_SWF))));

      _playPauseReference = pausableTemporalElement.getTrait(MediaTraitType.PLAY) as PlayTrait;


      I can then call playPauseReferenc.pause();


      Is this the best practice or method


      Thanks in advance.