1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

u-stream flash player

Discussion in 'General Programming Chat' started by asdf221, Apr 28, 2010.

  1. asdf221

    asdf221 Registered Member

    Joined:
    Mar 18, 2008
    Messages:
    59
    Likes Received:
    3
    Can anyone create a u-stream flash player like this one

    http://fullsports2009.ucoz.com/sjplayer2.swf

    I ran it through a .swf decoder and it only allows a certain domain to use it
    Code:
     function frame1()
            {
                Security.allowDomain("*");
                stage.scaleMode = StageScaleMode.NO_SCALE;
                stage.align = StageAlign.TOP_LEFT;
                viewerLoader = new Loader();
                viewerLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onRslLoad);
                addChild(viewerLoader);
                applicationDomain = ApplicationDomain.currentDomain;
                loaderContext = new LoaderContext();
                request = new URLRequest("http://www.ustream.tv/flash/viewer.rsl.swf");
                curUrl = String(ExternalInterface.call(" function(){ return document.location.host.toString();}"));
                if (curUrl == "soccerjumbo-hd.blogspot.com" || curUrl == "www.fpleaguehd.com")
                {
                    loaderContext.applicationDomain = applicationDomain;
                    viewerLoader.load(request, loaderContext);
     
  2. asdf221

    asdf221 Registered Member

    Joined:
    Mar 18, 2008
    Messages:
    59
    Likes Received:
    3