TIP #5 | LoadMovie and Alt Text
When using loadMovie to load an external jpg or swf into a holder movieclip, make sure to replace it with the newer MovieClipLoader code. A downside of loadMovie is that it causes any properties of the movieclip to be wiped out when the new content has been loaded, including any alt text that has been assigned.
So replace this code:
holder_mc.loadMovie(”external.swf”);
holder_mc._accProps = new Object();
holder_mc._accPRops.name = “alt text”;
With this:
var mcListener:Object = new Object();
mclListener.onLoadComplete = function() {
// assign alt text here when finished loading
}
var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(mclListener);
Loader.loadClip(”external.swf”, holder_mc);
To read all the tips, select ‘Flash Accessibility Tips’ on the side bar.
