Though more and more of us are developing with AS3, certain technologies remain in AS2. This forces us to find fast, simple ways to use these technologies within our projects. One such technology is YouTube.
The current YouTube player is still in AS2 and until it’s updated to AS3, we have to create a wrapper to allow us to load videos into our projects. Remember, stealing the FLV feed is against YouTube’s terms and conditions, so let’s do it the right way using the chromed or chromeless player.
Before we start…
This is a tutorial for intermediate to advanced Actionscripters (but don’t be intimidated if you’re neither, there’s no time like the present to start learning) as we’re going to be using both AS2 and AS3. It’s worth having a quick read of the points below:
- It’s worth checking out the documentation of the YouTube Player API. It’s available on Google Code and it has a good explanation of how to use the Player API and also has examples of AS2 and AS3 implementation.
- This tutorial is going to show how to build a set of components you can use with your AS3 projects in the future. This is much more handy than just showing you how you can bring the player into an application and then leaving you to it.













Leave a reply