Earlier this week I finished a project for one of our clients. The client produces quite lot of video content, and wanted a video player that could be embedded in other websites. This was a rather straight forward project where I got to use a lot of things I already ...
Posted in
AS3,
flexTags:
AS3,
buffering,
custom preloader,
events,
flex,
FLV,
MetadataReceived,
NetConnection,
video,
VideoDisplay
Oh, how I love the sweet animations from PES! Beautifully made, and with lots and lots of charm. Just look at the stuff they used to make KaBoom!, and the witty RoofSex. And it must have been fun making the Human Skateboard.
Be also sure to check out their store, which ...
Interesting (and more than a bit annoying) observation; neither the property totalTime or the event MetadataEvent.METADATA_RECEIVED will trigger unless the buffer is full.I just discovered this as I tried to dynamically set the bufferTime to be 30% of the total playtime (I calculate the bufferTime using totalBytes and bytesLoaded). But ...
A useful little snippet of code for when you want to copy text to the clipboard:
System.setClipboard(source.text);
Where 'source' is the id of e.g. a text field.
Today I stumbled across a handy utility class called ChangeWatcher, which lives inside the mx.binding.utils package. It provides you with a handy way of watching other object's properties.
Here's how it's used:
ChangeWatcher.watch(object, "property", handler);
Object - the object which owns the property
"property" - the property you want to watch
handler - the function ...