 
         // set up the new media
         willShowNewMedia();
-        if (StringUtil.endsWith(url.toLowerCase(), ".flv")) {
-            setupVideo(url);
-
-        } else {
-            setupSwfOrImage(url);
-        }
+        showNewMedia(url);
         didShowNewMedia();
     }
 

        info.addEventListener(Event.INIT, handleInit);
        info.addEventListener(IOErrorEvent.IO_ERROR, loadError);
        info.addEventListener(ProgressEvent.PROGRESS, loadProgress);

        // start it loading, add it as a child
        loader.load(new URLRequest(url), getContext(url));
        addChildAt(loader, 0);

        try {
            updateContentDimensions(info.width, info.height);
        } catch (err :Error) {
            // an error is thrown trying to access these props before they're
            // ready
        }
    }

    /**

    {
        startedLoading();

        var loader :Loader = initLoader();
        loader.load(new URLRequest(url), getContext(url));

        try {
            var info :LoaderInfo = loader.contentLoaderInfo;
            updateContentDimensions(info.width, info.height);
        } catch (err :Error) {
            // an error is thrown trying to access these props before they're
            // ready
        }
    }

    /**
     * Initialize a Loader as our _media, and configure it however needed to prepare
     * loading user content.
     */
    protected function initLoader () :Loader
    {
        // create our loader and set up some event listeners
        var loader :Loader = new Loader();
        _media = loader;
