<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">This is what I am trying to do ... and unfortunately they don't bubble. E.g I wanted to listen to the metadataReceived event to get the duration of my video. I tried to add an eventListener to the videoIcon but the listener won't dispatch (the documentation says that it don't bubbles). Any other possibility to grab the metadata?<div><br></div><div>Peter<br><div><br></div><div><br></div><div><br><div><div>On 24.06.2010, at 11:53, Julian Tenney wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>
<div id="idOWAReplyText65524" dir="ltr">
<div dir="ltr"><font face="Arial" color="#000000" size="2">VideoDisplayIcon inherits from Canvas, and has a public property videoDisplay. For some reason I've missed the VideoDisplay class out of the ASDocs, but I'll add that in. For now, use the Flex 4 docs online.</font></div>
<div dir="ltr"><font face="Arial" size="2"></font> </div>
<div dir="ltr"><font face="Arial" size="2">The one problem I foresee is getting event listeners onto the VideoDisplay itself - but they should bubble, so you can still attch listeners to the icon..?</font></div></div>
<div dir="ltr"><br>
<hr tabindex="-1">
<font face="Tahoma" size="2"><b>From:</b> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a> on behalf of Julian Tenney<br><b>Sent:</b> Thu 24/06/2010 10:30<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> RE: [Xerte] VideoIcon -> playheadTime<br></font><br></div>
<div dir="ltr">
<div id="idOWAReplyText29973" dir="ltr">
<div dir="ltr"><font face="Arial" color="#000000" size="2">You should be able to - what does it say VideoIcon inherits from? UICOmponent? Then it's a UI component. It has a member VideoDisplay - thats the thing doing the actual video presentation. I haven't looked, but unless somethig is wron, tha's how the documentation should be...</font></div></div>
<div dir="ltr"><br>
<hr tabindex="-1">
<font face="Tahoma" size="2"><b>From:</b> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a> on behalf of Peter Huppertz<br><b>Sent:</b> Thu 24/06/2010 09:25<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> Re: [Xerte] VideoIcon -> playheadTime<br></font><br></div>
<div><p><font size="2">I think wrapping is not needed, because it creates a whole lot of more work on your side?!<br><br>But how can I see, regarding the documentation, the difference between properties I can apply directly to the videoicon and the properties that I need to apply to videoicon.videoDisplay?<br><br>myVideoIcon.iconID works, myVideoIcon.playheadTime does not work. But I can't see a difference in the documentation.<br><br>Peter<br><br>On 22.06.2010, at 12:34, Julian Tenney wrote:<br><br>>> At the moment one really thinks it is a property of the VideoIcon.<br>><br>> Because that's what it is. Now you're getting into the OO debate -<br>> should we wrap the VideoDisplay class's methods / properties (there are<br>> a lot), or should the icon itself inherit from VideoDisplay? If you<br>> extend VideoDisplay I don't know if you can still do<br>> addChild(myControls) to build the interface?<br>><br>> Mostly OO good practice says favour composition over inheritance.<br>><br>> In any case, it's a job for another day,<br>><br>><br>><br>> On 22.06.2010, at 11:45, Julian Tenney wrote:<br>><br>>> myIcon.videoDisplay.playheadTime;<br>>><br>>> The icon itself is all the things you see - the video playback, the<br>>> button, slider and so on - you need to reach in there for what you<br>> want.<br>>> Eventually it might be nice to wrap all those methods and expose them<br>>> via myIcon<br>>><br>>> -----Original Message-----<br>>> From: <a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a><br>>> [<a href="mailto:xerte-bounces@lists.nottingham.ac.uk">mailto:xerte-bounces@lists.nottingham.ac.uk</a>] On Behalf Of Peter<br>>> Huppertz<br>>> Sent: 22 June 2010 10:44<br>>> To: Xerte discussion list<br>>> Subject: [Xerte] VideoIcon -> playheadTime<br>>><br>>> Another question: I want to use the property playheadTime to jump to<br>>> various points in my video. But if I enter myVideoIcon.playheadTime =<br>> 30<br>>> it does not jump to 30 seconds in my video. Also regardless of where I<br>>> am in the video if I check debug(myVideoIcon.playheadTime) it always<br>>> displays 0. Any ideas?<br>>><br>>> Peter<br>>><br>>> ==================================<br>>> Peter Huppertz<br>>> E-learning and IT Specialist<br>>> International Centre for Asset Recovery<br>>> Basel Institute on Governance<br>>> Phone: +41 61 205 55 18<br>>> Fax: +41 61 267 55 19<br>>><br>>> _______________________________________________<br>>> Xerte mailing list<br>>> <a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>>> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>>> _______________________________________________<br>>> Xerte mailing list<br>>> <a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>>> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>><br>> ==================================<br>> Peter Huppertz<br>> E-learning and IT Specialist<br>> International Centre for Asset Recovery<br>> Basel Institute on Governance<br>> Phone: +41 61 205 55 18<br>> Fax: +41 61 267 55 19<br>><br>> _______________________________________________<br>> Xerte mailing list<br>> <a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>> _______________________________________________<br>> Xerte mailing list<br>> <a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br><br>==================================<br>Peter Huppertz<br>E-learning and IT Specialist<br>International Centre for Asset Recovery<br>Basel Institute on Governance<br>Phone: +41 61 205 55 18<br>Fax: +41 61 267 55 19<br><br>_______________________________________________<br>Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br></font></p></div></div></div>
_______________________________________________<br>Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>http://lists.nottingham.ac.uk/mailman/listinfo/xerte<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div>==================================</div><div>Peter Huppertz</div><div>E-learning and IT Specialist</div><div>International Centre for Asset Recovery</div><div>Basel Institute on Governance</div><div>Phone: +41 61 205 55 18</div><div>Fax: +41 61 267 55 19</div></span>
</div>
<br></div></div></body></html>