flash on 2012-8-18
/**
* Copyright akhilrane2004 ( http://wonderfl.net/user/akhilrane2004 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/oH9t
*/
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() {
// write as3 code here..
Security.allowDomain("content.oddcast.com");
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);
}
}
}
}