Hi,
The example code from the wiki is meant to be compiled using the Flex SDK, so you have to make some minor changes in order to get it to work in Flash Pro. You can't use "package", no private / public modifiers, etc.
I wrote a quick "translation" of the code to work in Flash (tested in CS5), you can find it
here.
Hope it helps!