-
-
Save marcogomes/22434 to your computer and use it in GitHub Desktop.
This file contains 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
import flash.display.*; | |
import flash.net.URLRequest; | |
// esse codigo é um fork de <http://gist.github.com/22429> by @leandroferreira | |
var loaderzim:Loader = new Loader(); | |
loaderzim.contentLoaderInfo.addEventListener( "complete", onLoaderzimComplete ); | |
loaderzim.load(new URLRequest("arquivo.swf")); | |
addChild(loaderzim); | |
function onLoaderzimComplete( ev:Event ):void | |
{ | |
addChild( ev.target.loader ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment