Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
mx20004 video addEventListener( "pause ")

mx20004 video addEventListener( "pause ")

2004-03-08       - By Muzak

 Back
Reply:     1     2     3     4  

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.