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.
Yes, that's the right approach. Note that if you assign the TemporalProxyElement to a MediaPlayer and work with that class instead, then you don't need to get access to the PlayTrait, you can just call MediaPlayer.pause().