I broke Flex Builder

It can't be me. Well, I guess it /could/ be, but I swear this time it can't! Using an example from the ActionScript 3.0 Cookbook, pg 47 under Custom Classes.

This code throws an error:

http://codeshare.everfro.com/feb007fa

The error thrown is:
2 1120: Access of undefined property example. Test.mxml Test line 6 February 26, 2007 12:26:21 PM 12

Can someone else please try this and see if they get an error? And if you don't... any ideas what might be incorrect in my configuration of Flex Builder?

Danke...

Comments
Sean Corfield's Gravatar I'm no Flex expert - I'm barely just a beginner - but don't you have to import the Example class so that the MXML knows about the type?
# Posted By Sean Corfield | 2/26/07 3:46 PM
Critter's Gravatar For this example the class file is in the same directory.. there really wasn't a "package", but even my examples where I have the class files in a sub dir.. and import it.. I get the same error..
# Posted By Critter | 2/26/07 5:49 PM
Critter's Gravatar Scott Stroz was able to assist me with this.

I did not have the code to be executed in a startup function ex: init(). It was just being called when the app loaded, but before the application was /completely/ loaded.

/me kicks self.
Thanks for looking.
# Posted By Critter | 3/12/07 9:57 AM
Sean Corfield's Gravatar Thanx for posting the solution - we're all learning from each other right now :)
# Posted By Sean Corfield | 3/12/07 10:03 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.9.1.001. Contact Blog Owner