I came across this error and am blogging about it so I won’t forget the solution and maybe it will help someone else.
1172: Definition fl.video:VideoEvent could not be found.
In order to access a number of the “fl” packages you need to have a component in your library. In this case I added the FLVPlayback component and all was well. Apparently you can use flash.utils.getDefinitionByName as well.




getDefinitionByName won’t replace putting a component into your FLA.. It has no effect on what classes are compiled into your SWF. What it will do, however, is allow you to sidestep the compile-time error. That way you could use your class even if your FLA didn’t include a component (assuming your class would ever be used without a component).
Comment by matthew — May 14, 2008 @ 4:54 am
you’re a life saver! i’ve been searching for this for hours. kudos to you :)
Comment by Robin Lambell — June 27, 2008 @ 3:09 pm