Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
this.createEmptyMovieClip("tester_mc", 1);
tester_mc.loadMovie("[URL unfurl="true"]http://www.yourserver.com/your_movie.swf");[/URL]
function checkLoaded(target_mc:MovieClip) {
var pctLoaded:Number = target_mc.getBytesLoaded()/target_mc.getBytesTotal()*100;
if (!isNaN(pctLoaded) && (pctLoaded>0)) {
target_mc.onLoad = doOnLoad;
trace("clearing interval");
clearInterval(myInterval);
}
}
var myInterval:Number = setInterval(checkLoaded, 100, tester_mc);
function doOnLoad() {
trace("movie loaded");
}