1172: Definition fl.video:VideoEvent could not be found.

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.

comments

  • http://exanimo.com matthew

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

  • http://www.themadlandproject.org Robin Lambell

    you’re a life saver! i’ve been searching for this for hours. kudos to you :)

  • rkstar

    THANK YOU! i too have been ripping my hair out and even reinstalled FLASH to try to solve the problem. sheesh.

  • Heavenguard

    Thanks much! I would never have known or figured that out otherwise.

  • Lisa

    Just wanted to add my THANKS to the others. I thought I was going crazy until your post reminded me of what I had to do.

  • Watchdogx

    Coming up on the second anniversary of your original article and it is still helping folks like myself and Lisa, the previous commenter. I was quite frustrated and unproductive trying to figure out what was going on with this error. Thank you for your contribution to the development world!

  • Ryan

    Glad it helped.