[Xerte] Xerte3: dispatchSynchEvents does not work

Julian Tenney Julian.Tenney at nottingham.ac.uk
Tue Jun 29 09:18:47 BST 2010


Good stuff. Remind me what the style sheet issue was?

-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Peter
Huppertz
Sent: 29 June 2010 09:12
To: Xerte discussion list
Subject: Re: [Xerte] Xerte3: dispatchSynchEvents does not work

I needed to change some of my layouts, but now it works well. The
problem with my original layout was:

Play/Pause/Controller are displayed in the upper left of the video. When
I click on the play button the icon changes to the pause button, but the
video did not play. Also the timeslider shortly jumps on top of the play
button, jumps back right to the stop button, but does not move any more.
If I try to drag it it jumps back over the play button and tells 2.00 in
the tooltip?!

I wasn't able to reproduce the problem in my test file. I have mainly
this structure:

Canvas 
--> Viewstack 
---> Canvas
------> Canvas
-------->TextContent
------> VBox
--------> Button
--------> Video
----------> Selectorbox
----------> Listeners

So you don't need to worry about that. I can manage to work with the
solution!! Thank you! Also the synch event now works!

Any news regarding the stylesheet issue? Does it work for you? (this
issue is more or less the last task on my list before I want to release
my first Xerte3 e-learning module)

Peter

On 28.06.2010, at 18:13, Julian Tenney wrote:

> Can you download the latest build and give it a whirl: seems to be
> working now, let me know if there are still problems with it,
> 
> J
> 
> -----Original Message-----
> From: xerte-bounces at lists.nottingham.ac.uk
> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian
Tenney
> Sent: 28 June 2010 15:43
> To: Xerte discussion list
> Subject: RE: [Xerte] Xerte3: dispatchSynchEvents does not work
> 
> The videoDisplay object is a member of the class doing the listening,
> it's not trying to listen to itself
> 
> VideoDisplayIcon has a number of properties, one of which is the
actual
> VideoDisplay object. In any case, it does work sometimes... I can't
find
> 'it always fails if...' and 'always works if...' scenarios.
> 
> -----Original Message-----
> From: xerte-bounces at lists.nottingham.ac.uk
> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave
Burnett
> Sent: 28 June 2010 15:39
> To: Xerte list
> Subject: RE: [Xerte] Xerte3: dispatchSynchEvents does not work
> 
> 
> 
>> From some blog:
> 
> A video class cannot listen for it's own MetaData event. Try moving
> your onMetaData listener outside of where the stream is being
> initiated, to your parent class or document class.
> 
> 
> 
> ________________________________
>> Subject: RE: [Xerte] Xerte3: dispatchSynchEvents does not work
>> Date: Mon, 28 Jun 2010 15:34:25 +0100
>> From: Julian.Tenney at nottingham.ac.uk
>> To: xerte at lists.nottingham.ac.uk
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> The problem is the metaData received event is not always firing.
>> It seems to always fire in the Flash Player, most of the time in IE
> and is very
>> problematic in Firefox.
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> By the same token, getting videoDisplay.totalTime seems to
>> follow the same sort of problems, reporting -1 when it fails. The
> upshot of all
>> this is that dragging the slider doesn't show the time accurately in
> the
>> tooltip, nor can it navigate to the right spot in the video by
> dragging the
>> slider.
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> This is a real pain: any flex coders aware of this issue and how
>> to get around it?
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> From:
>> xerte-bounces at lists.nottingham.ac.uk
>> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian
> Tenney
>> 
>> Sent: 28 June 2010 13:10
>> 
>> To: Xerte discussion list
>> 
>> Subject: RE: [Xerte] Xerte3: dispatchSynchEvents does not work
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Likewise. Now I can replicate
>> the problem I can see what's going on,
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> From:
>> xerte-bounces at lists.nottingham.ac.uk
>> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Peter
>> Huppertz
>> 
>> Sent: 28 June 2010 13:09
>> 
>> To: Xerte discussion list
>> 
>> Subject: Re: [Xerte] Xerte3: dispatchSynchEvents does not work
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> I run it locally.
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> I have version 10,1,53,64
>> on Windows 7 and 10,1,53,64 on Mac.
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> On 28.06.2010, at 14:00, Julian
>> Tenney wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Is this locally, or when
>> running form a web server?
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> What's your flash player
>> version?
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> From: xerte-bounces at lists.nottingham.ac.uk
> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Peter
> Huppertz
>> 
>> Sent: 28 June 2010 12:45
>> 
>> To: Xerte discussion list
>> 
>> Subject: Re: [Xerte]
>> Xerte3: dispatchSynchEvents does not work
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> On windows neither IE nor Firefox
>> display the controlbar. Some time ago it was sporadically visible in
> the
>> preview, but it also vanished from there.
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> On Mac (Firefox/Chrome) not even
>> the piece shows up.
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> On 28.06.2010, at 13:16, Julian
>> Tenney wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Hmm. It adds 250k to the
>> runtime, which is about 249k too much...
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Back to your original
>> problem: the controller does not display - is this only in firefox? I
> seem to
>> have the same issue now...
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> From: xerte-bounces at lists.nottingham.ac.uk
> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian
Tenney
>> 
>> Sent: 28 June 2010 11:56
>> 
>> To: Xerte discussion list
>> 
>> Subject: RE: [Xerte] Xerte3:
>> dispatchSynchEvents does not work
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Best of both worlds: this is
>> the spark video player object, rather than the
> mx.controls.VideoDisplay. What I
>> really like about flex is every time I come across a problem, someone
> has already
>> beaten me to a solution... I'll work it in...
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> From: xerte-bounces at lists.nottingham.ac.uk
> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Peter
> Huppertz
>> 
>> Sent: 25 June 2010 19:47
>> 
>> To: Xerte discussion list
>> 
>> Subject: Re: [Xerte]
>> Xerte3: dispatchSynchEvents does not work
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> I'm really a fan of modular
>> solutions and would thus prefer the solution you suggest. So it's up
> to the
>> user how to implement the video controller.
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Peter
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Am 25.06.2010 um 11:39 schrieb
>> Julian Tenney:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Would you prefr it if
>> VideoDisplayIcon simply was a VideoDisplay objct, and it was up to
you
> to
>> create whatever controllers were appropriate? Then VideoDisplayIcon
> could
>> simply extend VideoDisplay. To help, I could make a 'MediaController'
> icon that
>> could be usd to create controllers for use on Sound and Video icons?
> That migt
>> be quite good,as there would be only one controller, rather than very
> similar
>> code in the Sound and Video icons to provide the controller
> functionality..?
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ________________________________
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> From: xerte-bounces at lists.nottingham.ac.uk on behalf of Peter
Huppertz
>> 
>> Sent: Thu 24/06/2010 15:39
>> 
>> To: Xerte discussion list
>> 
>> Subject: Re: [Xerte]
>> Xerte3: dispatchSynchEvents does not work
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> I had a look at the source. So,
>> if I create a new eventListener with the eventName "synch" as a child
>> of my videoicon (property dispatchSynchEvents = true) it should be
> triggered
>> every frame while the video plays, shouldn't it? But nothing happens
> at the
>> moment ... I double checked the spelling of synch ...
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> On 24.06.2010, at 15:47, Julian Tenney
>> wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> see the source:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>
http://code.google.com/p/xerte3/source/browse/trunk/xerte3/src/org/xerte
> /media/VideoDisplayIcon.as
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> It's 'synch'. You can see how we can wrap the
>> other events in there as well.
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ________________________________
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> From: xerte-bounces at lists.nottingham.ac.uk on behalf of Peter
Huppertz
>> 
>> Sent: Thu 24/06/2010 13:59
>> 
>> To: Xerte discussion list
>> 
>> Subject: [Xerte] Xerte3:
>> dispatchSynchEvents does not work
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> as a workaround
>> for another problem I now tried to use the dispatchSynchEvents. So I
> enabled
>> the property using true as a value in my videoicon and set up a
> eventhandler
>> listening for "synch" events. But it either never dispatches or it's
>> not the right event to listen for?!
>> 
>> 
>> 
>> ==================================
>> 
>> Peter Huppertz
>> 
>> E-learning and IT Specialist
>> 
>> International Centre for Asset Recovery
>> 
>> Basel Institute on Governance
>> 
>> Phone: +41 61 205 55 18
>> 
>> Fax: +41 61 267 55 19
>> 
>> 
>> 
>> _______________________________________________
>> 
>> Xerte mailing list
>> 
>> Xerte at lists.nottingham.ac.uk
>> 
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> 
>> Xerte mailing list
>> 
>> Xerte at lists.nottingham.ac.uk
>> 
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ==================================
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Peter Huppertz
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> E-learning and IT Specialist
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> International Centre for Asset Recovery
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Basel Institute on Governance
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Phone: +41 61 205 55 18
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Fax: +41 61 267 55 19
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> 
>> Xerte mailing list
>> 
>> Xerte at lists.nottingham.ac.uk
>> 
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> 
>> Xerte mailing list
>> 
>> Xerte at lists.nottingham.ac.uk
>> 
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ==================================
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Peter Huppertz
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> E-learning and IT Specialist
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> International Centre for
>> Asset Recovery
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Basel Institute on Governance
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Phone: +41 61 205 55 18
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Fax: +41 61 267 55 19
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> 
>> Xerte mailing list
>> 
>> Xerte at lists.nottingham.ac.uk
>> 
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ==================================
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Peter Huppertz
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> E-learning and IT Specialist
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> International Centre for
>> Asset Recovery
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Basel Institute on Governance
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Phone: +41 61 205 55 18
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Fax: +41 61 267 55 19
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
> 		 	   		  
> _________________________________________________________________
> The New Busy is not the too busy. Combine all your e-mail accounts
with
> Hotmail.
>
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PI
>
D28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4___________________________
> ____________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte

==================================
Peter Huppertz
E-learning and IT Specialist
International Centre for Asset Recovery
Basel Institute on Governance
Phone: +41 61 205 55 18
Fax: +41 61 267 55 19

_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte


More information about the Xerte mailing list