  | |  | mx20004 video addEventListener( "pause ") | mx20004 video addEventListener( "pause ") 2004-03-08 - By Muzak
Back Can't find anything about a 'pause' event in the Help panel. But that also goes for the 'start' event, which does work.
According to the documentation these are the supported media events:
change progress click volume playheadChange
The 'start' event seems to be missing in the docs.
Anyway, to find out if the video has been paused, you can check the .playing property in the change event.
var listenerObject:Object = {owner:this}; listenerObject.change = function(o) { trace("listenerObject ::: change"); trace("listenerObject ::: playing: "+o.target.playing); }; video.addEventListener("change", listenerObject);
regards, Muzak
-- -- Original Message -- -- From: "martin weiser" <weiser.m@(protected)> To: <flashcoders@(protected)> Sent: Monday, March 08, 2004 6:50 PM Subject: [Flashcoders] mx20004 video addEventListener("pause")
> hello > for the mediaPlayback component, i manage to add listeners for events like > start, complete, > playHeadChange etc... > but pause event is not working at all, > why ? > > mw > > > [CODE] > listenerObject = {}; > listenerObject.start = function(evtObj) { > _root.bgr_sound_dim(); > }; > listenerObject.complete = function(evtObj) { > _root.bgr_sound_ini(); > }; > listenerObject.pause = function(evtObj) { > trace("video is paused"); > }; > listenerObject.playheadChange = function(evtObj) { > trace("video is playHeadChange"); > }; > video.video.addEventListener("start", listenerObject); > video.video.addEventListener("complete", listenerObject); > video.video.addEventListener("pause", listenerObject); > video.video.addEventListener("playheadChange", listenerObject); > > [/CODE] >
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:106367 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |