As the person who wrote that sample, I can tell you that it does work. Here's me running in the Arcade Playground just now:
Have you modified the code in any particular way? If so, can you post what those modifications are?
- Josh Carlson
Kendall County GIS