In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

forked from: flash on 2012-8-18

/**
 * Copyright bradsedito ( http://wonderfl.net/user/bradsedito )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/zWTv
 */




package 
{
    import flash.display.Sprite;
    import flash.display.Loader;
    import flash.display.MovieClip;
    import flash.events.*;
    import flash.system.*;
    import flash.net.*;
    

    public class FlashTest extends Sprite 
    {
        
        
        public function FlashTest() 
        {            
            Security.allowDomain("content.oddcast.com");
            // ENTRY POINT:
            
            var ldr:Loader;

            var req:URLRequest;

            

            var vh_player:MovieClip;

            var _example_ui:MovieClip;

            

            req = new URLRequest("http://content.oddcast.com/vhss/vhss_v5.swf?doc=http%3A%2F%2Fvhss-d.oddcast.com%2Fphp%2FplayScene%2Facc%3D1790210%2Fss%3D2098141%2Fsl%3D0&acc=1790210&bgcolor=0x&embedid=69edb1778efce0401af100edc6433cf9");

            ldr = new Loader();

            ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler);

            ldr.load(req);

            addChild(ldr);

            

            function completeHandler($ev: Event):void

            {

               trace("EXAMPLE --- COMPLETE HANDLER "+$ev.target);

               vh_player = MovieClip(ldr.content);

            }            

            

        }

    }

}