Created
February 4, 2013 16:00
-
-
Save cbranch101/4707645 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function loadImage(img:String):void { | |
securityArray = img.split("/"); | |
securityPath = securityArray[0] + "//" + securityArray[2] + "/crossdomain.xml"; | |
Security.loadPolicyFile(securityPath); | |
var imageLoader:Loader = new Loader(); | |
//imageLoader.holder = "test"; | |
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete); | |
imageLoader.load(new URLRequest(img)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment