Popular Posts

Recent Comments

About

I'm Thomas Viktil. I like to play with all sorts of things. And this is where I write about the things I learn while playing.


Archive for April, 2008:

Making a YouTube-esque video player in Flex

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 ...


Eat PES!

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 ...


totalTime and MetadataReceived from VideoDisplay object in Flex

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 ...


AS3 Snippet #1: Copy text to clipboard

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.

Posted in AS3
Tags: , , , ,

AS3 Snippet #2: Watch for changing properties

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 ...