We can import various file types as long as the browser supports the file type either natively or through a plugin. In this next example, let's bring in some flash using the same technique as the image example that was just presented. Please note that in this next example, I am going to load a 108k flash file.

View Example

Starting to get the picture? By using these methods we effectively are extending xhtml to not only use existing technology that is already supported but also bring in the new dimension of using xml with html. And best of all we aren't breaking W3C standards.

One more important thing to learn before we turn our attention back to the building of the image gallery widget and that is how to import JavaScript dynamically. This is a key concept so we will look at that next.